-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][E2E][Joint Matrix] update performance test to add SLM (#15229)
- Loading branch information
Showing
6 changed files
with
217 additions
and
51 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
sycl/test-e2e/Matrix/SG32/joint_matrix_bf16_fill_k_cache_SLM.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//==--- joint_matrix_bf16_fill_k_cache_SLM.cpp - DPC++ joint_matrix--------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// SG size = 32 is not currently supported for SYCL Joint Matrix by IGC on DG2 | ||
// UNSUPPORTED: gpu-intel-dg2 | ||
// REQUIRES: aspect-ext_intel_matrix, gpu | ||
|
||
// RUN: %{build} -o %t_gpu_vnni.out -ffp-model=precise -DSLM -DVNNI | ||
// RUN: %{run} %t_gpu_vnni.out | ||
|
||
// TODO: add row major compilation and run once Sub-group size 32 | ||
// support becomes available in IGC for row major | ||
|
||
// -ffp-model=precise is added to not depend on compiler defaults. | ||
|
||
#include "../common.hpp" | ||
#define SG_SZ 32 | ||
|
||
#include "../joint_matrix_bf16_fill_k_cache_impl.hpp" |
23 changes: 23 additions & 0 deletions
23
sycl/test-e2e/Matrix/SPVCooperativeMatrix/SG32/joint_matrix_bf16_fill_k_cache_SLM.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//==--- joint_matrix_bf16_fill_k_cache_SLM.cpp - DPC++ joint_matrix--------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// SG size = 32 is not currently supported for SYCL Joint Matrix by IGC on DG2 | ||
// UNSUPPORTED: gpu-intel-dg2 | ||
// REQUIRES: aspect-ext_intel_matrix, gpu | ||
|
||
// RUN: %{build} -D__SPIRV_USE_COOPERATIVE_MATRIX -o %t_gpu_vnni.out -ffp-model=precise -DSLM -DVNNI | ||
// RUN: %{run} %t_gpu_vnni.out | ||
|
||
// TODO: add row major compilation and run once Sub-group size 32 | ||
// support becomes available in IGC for row major | ||
|
||
// -ffp-model=precise is added to not depend on compiler defaults. | ||
|
||
#include "../../common.hpp" | ||
#define SG_SZ 32 | ||
|
||
#include "../../joint_matrix_bf16_fill_k_cache_impl.hpp" |
19 changes: 19 additions & 0 deletions
19
sycl/test-e2e/Matrix/SPVCooperativeMatrix/joint_matrix_bf16_fill_k_cache_SLM.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//==--- joint_matrix_bf16_fill_k_cache_SLM.cpp - DPC++ joint_matrix--------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// REQUIRES: aspect-ext_intel_matrix, gpu | ||
|
||
// RUN: %{build} -D__SPIRV_USE_COOPERATIVE_MATRIX -o %t_gpu_vnni.out -ffp-model=precise -DSLM -DVNNI | ||
// RUN: %{run} %t_gpu_vnni.out | ||
|
||
// RUN: %{build} -D__SPIRV_USE_COOPERATIVE_MATRIX -o %t_gpu.out -ffp-model=precise -DSLM | ||
// RUN: %{run} %t_gpu.out | ||
|
||
// -ffp-model=precise is added to not depend on compiler defaults. | ||
|
||
#include "../common.hpp" | ||
#include "../joint_matrix_bf16_fill_k_cache_impl.hpp" |
19 changes: 19 additions & 0 deletions
19
sycl/test-e2e/Matrix/joint_matrix_bf16_fill_k_cache_SLM.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//==--- joint_matrix_bf16_fill_k_cache_SLM.cpp - DPC++ joint_matrix--------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// REQUIRES: aspect-ext_intel_matrix, gpu | ||
|
||
// RUN: %{build} -o %t_gpu_vnni.out -ffp-model=precise -DSLM -DVNNI | ||
// RUN: %{run} %t_gpu_vnni.out | ||
|
||
// RUN: %{build} -o %t_gpu.out -ffp-model=precise -DSLM | ||
// RUN: %{run} %t_gpu.out | ||
|
||
// -ffp-model=precise is added to not depend on compiler defaults. | ||
|
||
#include "common.hpp" | ||
#include "joint_matrix_bf16_fill_k_cache_impl.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.