Skip to content

Commit abb9545

Browse files
committed
Fix parallel to gpu tests
1 parent 9597ff8 commit abb9545

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

test/polygeist-opt/paralleltogpu.mlir

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ module {
4040
// CHECK-DAG: %[[VAL_3:.*]] = arith.constant 10000000 : index
4141
// CHECK: gpu.launch blocks(%[[VAL_4:.*]], %[[VAL_5:.*]], %[[VAL_6:.*]]) in (%[[VAL_7:.*]] = %[[VAL_2]], %[[VAL_8:.*]] = %[[VAL_0]], %[[VAL_9:.*]] = %[[VAL_0]]) threads(%[[VAL_10:.*]], %[[VAL_11:.*]], %[[VAL_12:.*]]) in (%[[VAL_13:.*]] = %[[VAL_1]], %[[VAL_14:.*]] = %[[VAL_0]], %[[VAL_15:.*]] = %[[VAL_0]]) {
4242
// CHECK: %[[VAL_16:.*]] = gpu.block_id x
43-
// CHECK: %[[VAL_17:.*]] = gpu.block_dim x
4443
// CHECK: %[[VAL_18:.*]] = gpu.thread_id x
45-
// CHECK: %[[VAL_19:.*]] = arith.muli %[[VAL_16]], %[[VAL_17]] : index
44+
// CHECK: %[[VAL_19:.*]] = arith.muli %[[VAL_16]], %[[VAL_1]] : index
4645
// CHECK: %[[VAL_20:.*]] = arith.addi %[[VAL_19]], %[[VAL_18]] : index
4746
// CHECK: %[[VAL_21:.*]] = arith.cmpi ult, %[[VAL_20]], %[[VAL_3]] : index
4847
// CHECK: scf.if %[[VAL_21]] {
@@ -150,11 +149,10 @@ module {
150149
// CHECK: gpu.launch blocks(%[[VAL_165:.*]], %[[VAL_166:.*]], %[[VAL_167:.*]]) in (%[[VAL_168:.*]] = %[[VAL_0]], %[[VAL_169:.*]] = %[[VAL_163]], %[[VAL_170:.*]] = %[[VAL_10]]) threads(%[[VAL_171:.*]], %[[VAL_172:.*]], %[[VAL_173:.*]]) in (%[[VAL_174:.*]] = %[[VAL_7]], %[[VAL_175:.*]] = %[[VAL_9]], %[[VAL_176:.*]] = %[[VAL_8]]) {
151150
// CHECK: %[[VAL_177:.*]] = gpu.block_id x
152151
// CHECK: %[[VAL_178:.*]] = gpu.block_id y
153-
// CHECK: %[[VAL_179:.*]] = gpu.block_dim x
154152
// CHECK: %[[VAL_180:.*]] = gpu.thread_id x
155153
// CHECK: %[[VAL_181:.*]] = gpu.thread_id y
156154
// CHECK: %[[VAL_182:.*]] = gpu.thread_id z
157-
// CHECK: %[[VAL_183:.*]] = arith.muli %[[VAL_178]], %[[VAL_179]] : index
155+
// CHECK: %[[VAL_183:.*]] = arith.muli %[[VAL_178]], %[[VAL_7]] : index
158156
// CHECK: %[[VAL_184:.*]] = arith.addi %[[VAL_183]], %[[VAL_180]] : index
159157
// CHECK: %[[VAL_185:.*]] = arith.cmpi ult, %[[VAL_184]], %[[VAL_1]] : index
160158
// CHECK: scf.if %[[VAL_185]] {

test/polygeist-opt/paralleltogpu2.mlir

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ module {
3333
// CHECK: %[[VAL_10:.*]] = arith.addi %[[VAL_9]], %[[VAL_3]] : index
3434
// CHECK: gpu.launch blocks(%[[VAL_11:.*]], %[[VAL_12:.*]], %[[VAL_13:.*]]) in (%[[VAL_14:.*]] = %[[VAL_10]], %[[VAL_15:.*]] = %[[VAL_3]], %[[VAL_16:.*]] = %[[VAL_3]]) threads(%[[VAL_17:.*]], %[[VAL_18:.*]], %[[VAL_19:.*]]) in (%[[VAL_20:.*]] = %[[VAL_5]], %[[VAL_21:.*]] = %[[VAL_3]], %[[VAL_22:.*]] = %[[VAL_3]]) {
3535
// CHECK: %[[VAL_23:.*]] = gpu.block_id x
36-
// CHECK: %[[VAL_24:.*]] = gpu.block_dim x
3736
// CHECK: %[[VAL_25:.*]] = gpu.thread_id x
38-
// CHECK: %[[VAL_26:.*]] = arith.muli %[[VAL_23]], %[[VAL_24]] : index
37+
// CHECK: %[[VAL_26:.*]] = arith.muli %[[VAL_23]], %[[VAL_5]] : index
3938
// CHECK: %[[VAL_27:.*]] = arith.addi %[[VAL_26]], %[[VAL_25]] : index
4039
// CHECK: %[[VAL_28:.*]] = arith.cmpi ult, %[[VAL_27]], %[[VAL_2]] : index
4140
// CHECK: scf.if %[[VAL_28]] {

test/polygeist-opt/wrapperifparallel.mlir

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ module {
3636
// CHECK: %[[VAL_144:.*]] = "polygeist.gpu_error"() ({
3737
// CHECK: gpu.launch blocks(%[[VAL_145:.*]], %[[VAL_146:.*]], %[[VAL_147:.*]]) in (%[[VAL_148:.*]] = %[[VAL_143]], %[[VAL_149:.*]] = %[[VAL_7]], %[[VAL_150:.*]] = %[[VAL_7]]) threads(%[[VAL_151:.*]], %[[VAL_152:.*]], %[[VAL_153:.*]]) in (%[[VAL_154:.*]] = %[[VAL_6]], %[[VAL_155:.*]] = %[[VAL_7]], %[[VAL_156:.*]] = %[[VAL_7]]) {
3838
// CHECK: %[[VAL_157:.*]] = gpu.block_id x
39-
// CHECK: %[[VAL_158:.*]] = gpu.block_dim x
4039
// CHECK: %[[VAL_159:.*]] = gpu.thread_id x
41-
// CHECK: %[[VAL_160:.*]] = arith.muli %[[VAL_157]], %[[VAL_158]] : index
40+
// CHECK: %[[VAL_160:.*]] = arith.muli %[[VAL_157]], %[[VAL_6]] : index
4241
// CHECK: %[[VAL_161:.*]] = arith.addi %[[VAL_160]], %[[VAL_159]] : index
4342
// CHECK: %[[VAL_162:.*]] = arith.cmpi ult, %[[VAL_161]], %[[VAL_1]] : index
4443
// CHECK: scf.if %[[VAL_162]] {

0 commit comments

Comments
 (0)