Skip to content

Commit ec16df7

Browse files
author
Denis Khalikov
committed
[mlir][vulkan-runner] Fix testsuite.
Summary: Fix testsuite after D78542. Differential Revision: https://reviews.llvm.org/D78639
1 parent 72a9e7c commit ec16df7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

mlir/test/mlir-vulkan-runner/addf.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module attributes {
1010
} {
1111
gpu.module @kernels {
1212
gpu.func @kernel_add(%arg0 : memref<8xf32>, %arg1 : memref<8xf32>, %arg2 : memref<8xf32>)
13-
attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32>} } kernel {
13+
kernel attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32> }} {
1414
%0 = "gpu.block_id"() {dimension = "x"} : () -> index
1515
%1 = load %arg0[%0] : memref<8xf32>
1616
%2 = load %arg1[%0] : memref<8xf32>
@@ -39,7 +39,7 @@ module attributes {
3939

4040
%cst1 = constant 1 : index
4141
%cst8 = constant 8 : index
42-
gpu.launch_func"(%cst8, %cst1, %cst1, %cst1, %cst1, %cst1, %arg0, %arg1, %arg2) { kernel = @kernels::@kernel_add }
42+
"gpu.launch_func"(%cst8, %cst1, %cst1, %cst1, %cst1, %cst1, %arg0, %arg1, %arg2) { kernel = @kernels::@kernel_add }
4343
: (index, index, index, index, index, index, memref<8xf32>, memref<8xf32>, memref<8xf32>) -> ()
4444
%arg6 = memref_cast %arg5 : memref<?xf32> to memref<*xf32>
4545
call @print_memref_f32(%arg6) : (memref<*xf32>) -> ()

mlir/test/mlir-vulkan-runner/mulf.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module attributes {
1010
} {
1111
gpu.module @kernels {
1212
gpu.func @kernel_mul(%arg0 : memref<4x4xf32>, %arg1 : memref<4x4xf32>, %arg2 : memref<4x4xf32>)
13-
attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32>} } kernel {
13+
kernel attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32> }} {
1414
%x = "gpu.block_id"() {dimension = "x"} : () -> index
1515
%y = "gpu.block_id"() {dimension = "y"} : () -> index
1616
%1 = load %arg0[%x, %y] : memref<4x4xf32>

mlir/test/mlir-vulkan-runner/subf.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module attributes {
1010
} {
1111
gpu.module @kernels {
1212
gpu.func @kernel_sub(%arg0 : memref<8x4x4xf32>, %arg1 : memref<4x4xf32>, %arg2 : memref<8x4x4xf32>)
13-
attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32>} } kernel {
13+
kernel attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32> }} {
1414
%x = "gpu.block_id"() {dimension = "x"} : () -> index
1515
%y = "gpu.block_id"() {dimension = "y"} : () -> index
1616
%z = "gpu.block_id"() {dimension = "z"} : () -> index

mlir/test/mlir-vulkan-runner/time.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module attributes {
1313
} {
1414
gpu.module @kernels {
1515
gpu.func @kernel_add(%arg0 : memref<16384xf32>, %arg1 : memref<16384xf32>, %arg2 : memref<16384xf32>)
16-
attributes { spv.entry_point_abi = {local_size = dense<[128, 1, 1]>: vector<3xi32>} } kernel {
16+
kernel attributes { spv.entry_point_abi = {local_size = dense<[128, 1, 1]>: vector<3xi32> }} {
1717
%bid = "gpu.block_id"() {dimension = "x"} : () -> index
1818
%tid = "gpu.thread_id"() {dimension = "x"} : () -> index
1919
%cst = constant 128 : index

0 commit comments

Comments
 (0)