@@ -141,8 +141,8 @@ TEST_F(CudaKernelsTest, PICreateProgramAndKernel) {
141
141
pi_int32 binary_status = PI_SUCCESS;
142
142
ASSERT_EQ (
143
143
(plugin->call_nocheck <detail::PiApiKind::piProgramCreateWithBinary>(
144
- context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource,
145
- 0 , nullptr , &binary_status, &prog)),
144
+ context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource, 0 ,
145
+ nullptr , &binary_status, &prog)),
146
146
PI_SUCCESS);
147
147
148
148
ASSERT_EQ ((plugin->call_nocheck <detail::PiApiKind::piProgramBuild>(
@@ -185,23 +185,23 @@ TEST_F(CudaKernelsTest, PICreateProgramAndKernelWithMetadata) {
185
185
pi_program prog;
186
186
pi_int32 binary_status = PI_SUCCESS;
187
187
ASSERT_EQ (
188
- (plugin. call_nocheck <detail::PiApiKind::piProgramCreateWithBinary>(
189
- context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource,
190
- 1 , &reqdWorkGroupSizeMDPropPointer, &binary_status, &prog)),
188
+ (plugin-> call_nocheck <detail::PiApiKind::piProgramCreateWithBinary>(
189
+ context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource, 1 ,
190
+ &reqdWorkGroupSizeMDPropPointer, &binary_status, &prog)),
191
191
PI_SUCCESS);
192
192
193
- ASSERT_EQ ((plugin. call_nocheck <detail::PiApiKind::piProgramBuild>(
193
+ ASSERT_EQ ((plugin-> call_nocheck <detail::PiApiKind::piProgramBuild>(
194
194
prog, 1 , &device_, " " , nullptr , nullptr )),
195
195
PI_SUCCESS);
196
196
197
197
pi_kernel kern;
198
- ASSERT_EQ ((plugin. call_nocheck <detail::PiApiKind::piKernelCreate>(
198
+ ASSERT_EQ ((plugin-> call_nocheck <detail::PiApiKind::piKernelCreate>(
199
199
prog, " _Z8myKernelPi" , &kern)),
200
200
PI_SUCCESS);
201
201
ASSERT_NE (kern, nullptr );
202
202
203
203
size_t compileWGSize[3 ] = {0 };
204
- ASSERT_EQ ((plugin. call_nocheck <detail::PiApiKind::piKernelGetGroupInfo>(
204
+ ASSERT_EQ ((plugin-> call_nocheck <detail::PiApiKind::piKernelGetGroupInfo>(
205
205
kern, device_, PI_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE,
206
206
sizeof (size_t ) * 3 , compileWGSize, nullptr )),
207
207
PI_SUCCESS);
@@ -219,8 +219,8 @@ TEST_F(CudaKernelsTest, PIKernelArgumentSimple) {
219
219
pi_int32 binary_status = PI_SUCCESS;
220
220
ASSERT_EQ (
221
221
(plugin->call_nocheck <detail::PiApiKind::piProgramCreateWithBinary>(
222
- context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource,
223
- 0 , nullptr , &binary_status, &prog)),
222
+ context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource, 0 ,
223
+ nullptr , &binary_status, &prog)),
224
224
PI_SUCCESS);
225
225
ASSERT_EQ (binary_status, PI_SUCCESS);
226
226
@@ -249,8 +249,8 @@ TEST_F(CudaKernelsTest, PIKernelArgumentSetTwice) {
249
249
pi_int32 binary_status = PI_SUCCESS;
250
250
ASSERT_EQ (
251
251
(plugin->call_nocheck <detail::PiApiKind::piProgramCreateWithBinary>(
252
- context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource,
253
- 0 , nullptr , &binary_status, &prog)),
252
+ context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource, 0 ,
253
+ nullptr , &binary_status, &prog)),
254
254
PI_SUCCESS);
255
255
ASSERT_EQ (binary_status, PI_SUCCESS);
256
256
@@ -288,8 +288,8 @@ TEST_F(CudaKernelsTest, PIKernelSetMemObj) {
288
288
pi_int32 binary_status = PI_SUCCESS;
289
289
ASSERT_EQ (
290
290
(plugin->call_nocheck <detail::PiApiKind::piProgramCreateWithBinary>(
291
- context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource,
292
- 0 , nullptr , &binary_status, &prog)),
291
+ context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource, 0 ,
292
+ nullptr , &binary_status, &prog)),
293
293
PI_SUCCESS);
294
294
ASSERT_EQ (binary_status, PI_SUCCESS);
295
295
@@ -324,8 +324,8 @@ TEST_F(CudaKernelsTest, PIkerneldispatch) {
324
324
pi_int32 binary_status = PI_SUCCESS;
325
325
ASSERT_EQ (
326
326
(plugin->call_nocheck <detail::PiApiKind::piProgramCreateWithBinary>(
327
- context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource,
328
- 0 , nullptr , &binary_status, &prog)),
327
+ context_, 1 , &device_, nullptr , (const unsigned char **)&ptxSource, 0 ,
328
+ nullptr , &binary_status, &prog)),
329
329
PI_SUCCESS);
330
330
ASSERT_EQ (binary_status, PI_SUCCESS);
331
331
@@ -368,8 +368,8 @@ TEST_F(CudaKernelsTest, PIkerneldispatchTwo) {
368
368
pi_int32 binary_status = PI_SUCCESS;
369
369
ASSERT_EQ (
370
370
(plugin->call_nocheck <detail::PiApiKind::piProgramCreateWithBinary>(
371
- context_, 1 , &device_, nullptr , (const unsigned char **)&twoParams,
372
- 0 , nullptr , &binary_status, &prog)),
371
+ context_, 1 , &device_, nullptr , (const unsigned char **)&twoParams, 0 ,
372
+ nullptr , &binary_status, &prog)),
373
373
PI_SUCCESS);
374
374
ASSERT_EQ (binary_status, PI_SUCCESS);
375
375
0 commit comments