File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 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}}
You can’t perform that action at this time.
0 commit comments