Skip to content

Commit 378689f

Browse files
authored
[L0 Runtime Wrapper][SIMT] Adding upstream L0 runtime wrapper usage in SIMT cases (#1113)
Since Level Zero runtime wrappers have been upstreamed and we decided to move forward using them and not SYCL runtime ones this PR switches SIMT tests from one to another
1 parent 1547fe8 commit 378689f

25 files changed

+56
-37
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ if(NOT DEFINED MLIR_ENABLE_SYCL_RUNNER)
218218
set(MLIR_ENABLE_SYCL_RUNNER 0)
219219
endif()
220220

221+
if(NOT DEFINED MLIR_ENABLE_LEVELZERO_RUNNER)
222+
set(MLIR_ENABLE_LEVELZERO_RUNNER 0)
223+
endif()
224+
221225
if (IMEX_ENABLE_L0_RUNTIME)
222226
set(IMEX_ENABLE_L0_RUNTIME 1)
223227
else ()

test/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ if(MLIR_ENABLE_SYCL_RUNNER)
5353
)
5454
endif()
5555

56+
if(MLIR_ENABLE_LEVELZERO_RUNNER)
57+
list(APPEND IMEX_TEST_DEPENDS
58+
mlir_levelzero_runtime
59+
)
60+
endif()
61+
5662
if(IMEX_ENABLE_SYCL_RUNTIME)
5763
list(APPEND IMEX_TEST_DEPENDS
5864
sycl-runtime

test/Integration/Dialect/XeGPU/SG/gemm_4kx4kx4k_f16_f16_f16.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %python_executable %imex_runner --requires=mlir-sycl-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
1+
// RUN: %python_executable %imex_runner --requires=mlir-levelzero-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
22
// RUN: --runner mlir-runner -e main \
33
// RUN: --entry-point-result=void \
4-
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_sycl_runtime --filecheck
4+
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_levelzero_runtime --filecheck
55
module @gemm attributes {gpu.container_module} {
66
func.func @test(%A: memref<4096x4096xf16>, %B: memref<4096x4096xf16>, %C: memref<4096x4096xf16>) -> memref<4096x4096xf16> attributes {llvm.emit_c_interface} {
77
%c1 = arith.constant 1 : index
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
if(not config.mlir_enable_sycl_runtime):
1+
if(not config.mlir_enable_levelzero_runtime):
22
config.unsupported = True

test/Integration/Dialect/XeGPU/SG/simple_gemm.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %python_executable %imex_runner --requires=mlir-sycl-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
1+
// RUN: %python_executable %imex_runner --requires=mlir-levelzero-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
22
// RUN: --runner mlir-runner -e main \
33
// RUN: --entry-point-result=void \
4-
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_sycl_runtime --filecheck
4+
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_levelzero_runtime --filecheck
55

66

77
module @gemm attributes {gpu.container_module} {

test/Integration/Dialect/XeGPU/SIMT/col_reduce_16x16xf16.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %python_executable %imex_runner --requires=mlir-sycl-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
1+
// RUN: %python_executable %imex_runner --requires=mlir-levelzero-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
22
// RUN: --runner mlir-runner -e main \
33
// RUN: --entry-point-result=void \
4-
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_sycl_runtime --filecheck
4+
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_levelzero_runtime --filecheck
55
module @gemm attributes {gpu.container_module} {
66
gpu.module @kernel {
77
gpu.func @col_reduce(%in: memref<16x16xf16>, %c: memref<1x16xf16>) kernel attributes {intel_reqd_sub_group_size = 16 : i32} {

test/Integration/Dialect/XeGPU/SIMT/gemm_4kx4kx4k_f16_f16_f16.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %python_executable %imex_runner --requires=mlir-sycl-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
1+
// RUN: %python_executable %imex_runner --requires=mlir-levelzero-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
22
// RUN: --runner mlir-runner -e main \
33
// RUN: --entry-point-result=void \
4-
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_sycl_runtime --filecheck
4+
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_levelzero_runtime --filecheck
55
module @gemm attributes {gpu.container_module} {
66
func.func @test(%A: memref<4096x4096xf16>, %B: memref<4096x4096xf16>, %C: memref<4096x4096xf16>) -> memref<4096x4096xf16> attributes {llvm.emit_c_interface} {
77
%c1 = arith.constant 1 : index

test/Integration/Dialect/XeGPU/SIMT/gemm_4kx4kx4k_transpose_b.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %python_executable %imex_runner --requires=mlir-sycl-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
1+
// RUN: %python_executable %imex_runner --requires=mlir-levelzero-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
22
// RUN: --runner mlir-runner -e main \
33
// RUN: --entry-point-result=void \
4-
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_sycl_runtime --filecheck
4+
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_levelzero_runtime --filecheck
55
module @gemm attributes {gpu.container_module} {
66
func.func @test(%A: memref<4096x4096xf16>, %B: memref<4096x4096xf16>, %C: memref<4096x4096xf16>) -> memref<4096x4096xf16> attributes {llvm.emit_c_interface} {
77
%c1 = arith.constant 1 : index
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
if(not config.mlir_enable_sycl_runtime):
1+
if(not config.mlir_enable_levelzero_runtime):
22
config.unsupported = True

test/Integration/Dialect/XeGPU/SIMT/loadstore_nd.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %python_executable %imex_runner --requires=mlir-sycl-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
1+
// RUN: %python_executable %imex_runner --requires=mlir-levelzero-runtime,spirv-backend -i %s --pass-pipeline-file=%p/xegpu-to-llvm.pp \
22
// RUN: --runner mlir-runner -e main \
33
// RUN: --entry-point-result=void \
4-
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_sycl_runtime --filecheck
4+
// RUN: --shared-libs=%irunner_utils,%mlir_runner_utils,%mlir_c_runner_utils,%mlir_levelzero_runtime --filecheck
55

66
module @gemm attributes {gpu.container_module} {
77
gpu.module @kernel {

0 commit comments

Comments
 (0)