Skip to content

Commit 28e2004

Browse files
committed
[clang][CUDA] Clean up tests from device-side kernel call support. NFC
- Remove unused 'CHECK' from the CUDASema test
1 parent da1a887 commit 28e2004

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

clang/test/SemaCUDA/device-kernel-call.cu

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@
88

99
__global__ void g2(int x) {}
1010

11-
// CHECK-LABEL: define{{.*}}g1
1211
__global__ void g1(void) {
13-
// CHECK: [[CONFIG:%.*]] = call{{.*}}_Z22cudaGetParameterBuffermm(i64{{.*}}64, i64{{.*}}4)
14-
// CHECK-NEXT: [[FLAG:%.*]] = icmp ne ptr [[CONFIG]], null
15-
// CHECK-NEXT: br i1 [[FLAG]], label %[[THEN:.*]], label %[[ENDIF:.*]]
16-
// CHECK: [[THEN]]:
17-
// CHECK-NEXT: [[PPTR:%.*]] = getelementptr{{.*}}i8, ptr [[CONFIG]], i64 0
18-
// CHECK-NEXT: store i32 42, ptr [[PPTR]]
19-
// CHECK: = call{{.*}} i32 @_Z16cudaLaunchDevicePvS_4dim3S0_jP10cudaStream(ptr{{.*}} @_Z2g2i, ptr{{.*}} [[CONFIG]],
2012
g2<<<1, 1>>>(42);
2113
// nordc-error@-1 {{kernel launch from __device__ or __global__ function requires relocatable device code (i.e. requires -fgpu-rdc)}}
2214
// hip-error@-2 {{device-side kernel call/launch is not supported}}

0 commit comments

Comments
 (0)