From ec16df706682c064a3e38e01068d5b2512971aa4 Mon Sep 17 00:00:00 2001 From: Denis Khalikov Date: Wed, 22 Apr 2020 17:39:39 +0300 Subject: [PATCH] [mlir][vulkan-runner] Fix testsuite. Summary: Fix testsuite after D78542. Differential Revision: https://reviews.llvm.org/D78639 --- mlir/test/mlir-vulkan-runner/addf.mlir | 4 ++-- mlir/test/mlir-vulkan-runner/mulf.mlir | 2 +- mlir/test/mlir-vulkan-runner/subf.mlir | 2 +- mlir/test/mlir-vulkan-runner/time.mlir | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mlir/test/mlir-vulkan-runner/addf.mlir b/mlir/test/mlir-vulkan-runner/addf.mlir index 3ba86ef89119..73622e37ade5 100644 --- a/mlir/test/mlir-vulkan-runner/addf.mlir +++ b/mlir/test/mlir-vulkan-runner/addf.mlir @@ -10,7 +10,7 @@ module attributes { } { gpu.module @kernels { gpu.func @kernel_add(%arg0 : memref<8xf32>, %arg1 : memref<8xf32>, %arg2 : memref<8xf32>) - attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32>} } kernel { + kernel attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32> }} { %0 = "gpu.block_id"() {dimension = "x"} : () -> index %1 = load %arg0[%0] : memref<8xf32> %2 = load %arg1[%0] : memref<8xf32> @@ -39,7 +39,7 @@ module attributes { %cst1 = constant 1 : index %cst8 = constant 8 : index - gpu.launch_func"(%cst8, %cst1, %cst1, %cst1, %cst1, %cst1, %arg0, %arg1, %arg2) { kernel = @kernels::@kernel_add } + "gpu.launch_func"(%cst8, %cst1, %cst1, %cst1, %cst1, %cst1, %arg0, %arg1, %arg2) { kernel = @kernels::@kernel_add } : (index, index, index, index, index, index, memref<8xf32>, memref<8xf32>, memref<8xf32>) -> () %arg6 = memref_cast %arg5 : memref to memref<*xf32> call @print_memref_f32(%arg6) : (memref<*xf32>) -> () diff --git a/mlir/test/mlir-vulkan-runner/mulf.mlir b/mlir/test/mlir-vulkan-runner/mulf.mlir index 89175e803d98..be0bd5afb425 100644 --- a/mlir/test/mlir-vulkan-runner/mulf.mlir +++ b/mlir/test/mlir-vulkan-runner/mulf.mlir @@ -10,7 +10,7 @@ module attributes { } { gpu.module @kernels { gpu.func @kernel_mul(%arg0 : memref<4x4xf32>, %arg1 : memref<4x4xf32>, %arg2 : memref<4x4xf32>) - attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32>} } kernel { + kernel attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32> }} { %x = "gpu.block_id"() {dimension = "x"} : () -> index %y = "gpu.block_id"() {dimension = "y"} : () -> index %1 = load %arg0[%x, %y] : memref<4x4xf32> diff --git a/mlir/test/mlir-vulkan-runner/subf.mlir b/mlir/test/mlir-vulkan-runner/subf.mlir index b41094653d97..5fc7e0a91d29 100644 --- a/mlir/test/mlir-vulkan-runner/subf.mlir +++ b/mlir/test/mlir-vulkan-runner/subf.mlir @@ -10,7 +10,7 @@ module attributes { } { gpu.module @kernels { gpu.func @kernel_sub(%arg0 : memref<8x4x4xf32>, %arg1 : memref<4x4xf32>, %arg2 : memref<8x4x4xf32>) - attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32>} } kernel { + kernel attributes { spv.entry_point_abi = {local_size = dense<[1, 1, 1]>: vector<3xi32> }} { %x = "gpu.block_id"() {dimension = "x"} : () -> index %y = "gpu.block_id"() {dimension = "y"} : () -> index %z = "gpu.block_id"() {dimension = "z"} : () -> index diff --git a/mlir/test/mlir-vulkan-runner/time.mlir b/mlir/test/mlir-vulkan-runner/time.mlir index ffa8985d488f..9a96d7f819fd 100644 --- a/mlir/test/mlir-vulkan-runner/time.mlir +++ b/mlir/test/mlir-vulkan-runner/time.mlir @@ -13,7 +13,7 @@ module attributes { } { gpu.module @kernels { gpu.func @kernel_add(%arg0 : memref<16384xf32>, %arg1 : memref<16384xf32>, %arg2 : memref<16384xf32>) - attributes { spv.entry_point_abi = {local_size = dense<[128, 1, 1]>: vector<3xi32>} } kernel { + kernel attributes { spv.entry_point_abi = {local_size = dense<[128, 1, 1]>: vector<3xi32> }} { %bid = "gpu.block_id"() {dimension = "x"} : () -> index %tid = "gpu.thread_id"() {dimension = "x"} : () -> index %cst = constant 128 : index