@@ -18,8 +18,8 @@ __device__ void testDevice(const int *K) {
1818 // CHECK:void testDevice1(const int *K) { int t = K[0]; }
1919__device__ void testDevice1 (const int *K) { int t = K[0 ]; }
2020
21- // CHECK:void testKernelPtr(const int *L, const int *M, int N,
22- // CHECK-NEXT: cl::sycl::nd_item<3> item_ct1) {
21+ // CHECK:void testKernelPtr(const int *L, const int *M, int N,
22+ // CHECK-NEXT: const cl::sycl::nd_item<3> & item_ct1) {
2323// CHECK-NEXT: testDevice(L);
2424// CHECK-NEXT: int gtid = item_ct1.get_group(2) * item_ct1.get_local_range(2) +
2525// CHECK-NEXT: item_ct1.get_local_id(2);
@@ -107,8 +107,8 @@ typedef struct
107107// CHECK-NEXT: const float g_ewald, const float qqrd2e,
108108// CHECK-NEXT: const float denom_lj_inv,
109109// CHECK-NEXT: const int loop_trip,
110- // CHECK-NEXT: cl::sycl::nd_item<3> item_ct1, float *sp_lj ,
111- // CHECK-NEXT: float *sp_coul, int *ljd,
110+ // CHECK-NEXT: const cl::sycl::nd_item<3> & item_ct1,
111+ // CHECK-NEXT: float *sp_lj, float * sp_coul, int *ljd,
112112// CHECK-NEXT: cl::sycl::local_accessor<double, 2> la) {
113113template <int EFLAG>
114114__global__ void k_mdppp_outer_nn (const int * __restrict__ pos,
@@ -152,7 +152,7 @@ void test() {
152152
153153
154154
155- // CHECK:void k_mdppp_outer_n0(cl::sycl::nd_item<3> item_ct1, float *sp_lj,
155+ // CHECK:void k_mdppp_outer_n0(const cl::sycl::nd_item<3> & item_ct1, float *sp_lj,
156156// CHECK-NEXT: float *sp_coul, int *ljd,
157157// CHECK-NEXT: cl::sycl::local_accessor<double, 2> la) {
158158__global__ void k_mdppp_outer_n0 () {
@@ -164,7 +164,7 @@ __global__ void k_mdppp_outer_n0() {
164164}
165165
166166 // CHECK:void k_mdppp_outer_n1(const int * __restrict__ pos,
167- // CHECK-NEXT: cl::sycl::nd_item<3> item_ct1, float *sp_lj,
167+ // CHECK-NEXT: const cl::sycl::nd_item<3> & item_ct1, float *sp_lj,
168168// CHECK-NEXT: float *sp_coul, int *ljd,
169169// CHECK-NEXT: cl::sycl::local_accessor<double, 2> la) {
170170__global__ void k_mdppp_outer_n1 (const int * __restrict__ pos) {
@@ -177,7 +177,7 @@ __global__ void k_mdppp_outer_n1(const int * __restrict__ pos) {
177177
178178 // CHECK:void k_mdppp_outer_22(const int * __restrict__ pos,
179179// CHECK-NEXT: const float * __restrict__ q,
180- // CHECK-NEXT: cl::sycl::nd_item<3> item_ct1,
180+ // CHECK-NEXT: const cl::sycl::nd_item<3> & item_ct1,
181181// CHECK-NEXT: float *sp_lj,
182182// CHECK-NEXT: float *sp_coul,
183183// CHECK-NEXT: int *ljd,
@@ -193,7 +193,7 @@ __global__ void k_mdppp_outer_22(const int * __restrict__ pos,
193193
194194
195195 // CHECK:void k_mdppp_outer_n2(const int * __restrict__ pos, const float * __restrict__ q,
196- // CHECK-NEXT: cl::sycl::nd_item<3> item_ct1, float *sp_lj,
196+ // CHECK-NEXT: const cl::sycl::nd_item<3> & item_ct1, float *sp_lj,
197197// CHECK-NEXT: float *sp_coul, int *ljd,
198198// CHECK-NEXT: cl::sycl::local_accessor<double, 2> la) {
199199void __device__ k_mdppp_outer_n2 (const int * __restrict__ pos, const float * __restrict__ q) {
@@ -207,7 +207,7 @@ void __device__ k_mdppp_outer_n2(const int * __restrict__ pos, const float * __r
207207
208208
209209 // CHECK:void k_mdppp_outer_n3(const int * __restrict__ pos, const float * __restrict__ q,
210- // CHECK-NEXT: cl::sycl::nd_item<3> item_ct1, float *sp_lj,
210+ // CHECK-NEXT: const cl::sycl::nd_item<3> & item_ct1, float *sp_lj,
211211// CHECK-NEXT: float *sp_coul, int *ljd,
212212// CHECK-NEXT: cl::sycl::local_accessor<double, 2> la) {
213213__device__
@@ -222,8 +222,8 @@ void k_mdppp_outer_n3(const int * __restrict__ pos, const float * __restrict__ q
222222#define AAA const int * __restrict__ pos
223223#define BBB const float * __restrict__ q
224224
225- // CHECK:void foo1(AAA, BBB, cl::sycl::nd_item<3> item_ct1, float *sp_lj, float *sp_coul ,
226- // CHECK-NEXT: int *ljd, cl::sycl::local_accessor<double, 2> la) {
225+ // CHECK:void foo1(AAA, BBB, const cl::sycl::nd_item<3> & item_ct1, float *sp_lj,
226+ // CHECK-NEXT: float *sp_coul, int *ljd, cl::sycl::local_accessor<double, 2> la) {
227227__device__ void foo1 (AAA, BBB) {
228228 __shared__ float sp_lj[4 ];
229229 __shared__ float sp_coul[4 ];
@@ -232,9 +232,9 @@ __device__ void foo1(AAA, BBB) {
232232 const int tid = threadIdx .x ;
233233}
234234
235- // CHECK:void foo2(const int * __restrict__ pos, BBB, cl::sycl::nd_item<3> item_ct1,
236- // CHECK-NEXT: float *sp_lj , float *sp_coul, int *ljd ,
237- // CHECK-NEXT: cl::sycl::local_accessor<double, 2> la) {
235+ // CHECK:void foo2(const int * __restrict__ pos, BBB,
236+ // CHECK-NEXT: const cl::sycl::nd_item<3> &item_ct1 , float *sp_lj, float *sp_coul ,
237+ // CHECK-NEXT: int *ljd, cl::sycl::local_accessor<double, 2> la) {
238238__device__ void foo2 (const int * __restrict__ pos, BBB) {
239239 __shared__ float sp_lj[4 ];
240240 __shared__ float sp_coul[4 ];
@@ -243,9 +243,9 @@ __device__ void foo2(const int * __restrict__ pos, BBB) {
243243 const int tid = threadIdx .x ;
244244}
245245
246- // CHECK:void foo3(AAA, const float * __restrict__ q, cl::sycl::nd_item<3> item_ct1,
247- // CHECK-NEXT: float *sp_lj , float *sp_coul, int *ljd ,
248- // CHECK-NEXT: cl::sycl::local_accessor<double, 2> la) {
246+ // CHECK:void foo3(AAA, const float * __restrict__ q,
247+ // CHECK-NEXT: const cl::sycl::nd_item<3> &item_ct1 , float *sp_lj, float *sp_coul ,
248+ // CHECK-NEXT: int *ljd, cl::sycl::local_accessor<double, 2> la) {
249249__device__ void foo3 (AAA, const float * __restrict__ q) {
250250 __shared__ float sp_lj[4 ];
251251 __shared__ float sp_coul[4 ];
@@ -254,7 +254,7 @@ __device__ void foo3(AAA, const float * __restrict__ q) {
254254 const int tid = threadIdx .x ;
255255}
256256
257- // CHECK:#define FFFFF(aaa,bbb) void foo4(const int * __restrict__ aaa, const float * __restrict__ bbb, cl::sycl::nd_item<3> item_ct1, float *sp_lj, float *sp_coul, int *ljd, cl::sycl::local_accessor<double, 2> la)
257+ // CHECK:#define FFFFF(aaa,bbb) void foo4(const int * __restrict__ aaa, const float * __restrict__ bbb, const cl::sycl::nd_item<3> & item_ct1, float *sp_lj, float *sp_coul, int *ljd, cl::sycl::local_accessor<double, 2> la)
258258#define FFFFF (aaa,bbb ) __device__ void foo4 (const int * __restrict__ aaa, const float * __restrict__ bbb)
259259
260260FFFFF(pos, q)
0 commit comments