Skip to content

Commit 5e6c6f5

Browse files
committed
Add test for reading attached target
1 parent 9b2b51e commit 5e6c6f5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: mlir-opt %s -convert-gpu-to-rocdl -split-input-file | FileCheck %s
2+
3+
// CHECK: @test_module [#rocdl.target<O = 3, chip = "gfx90a">] attributes {llvm.data_layout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-p7:160:256:256:32-p8:128:128-p9:192:256:256:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5-G1-ni:7:8:9"} {
4+
gpu.module @test_module [#rocdl.target<O = 3, chip = "gfx90a">] {
5+
// CHECK-LABEL: @kernel_func
6+
// CHECK: attributes
7+
// CHECK: gpu.kernel
8+
// CHECK: rocdl.kernel
9+
gpu.func @kernel_func() kernel {
10+
gpu.return
11+
}
12+
}

0 commit comments

Comments
 (0)