Skip to content

Commit ab1c6e7

Browse files
authored
[SYCL][CUDA] Fix no assertions build (#5152)
Fix two unused variables warnings with --no-assertions, that cause build failure.
1 parent 5c9f7c3 commit ab1c6e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/plugins/cuda/pi_cuda.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ struct _pi_kernel {
668668
pi_result retError = cuda_piKernelGetGroupInfo(
669669
this, ctxt->get_device(), PI_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE,
670670
sizeof(reqdThreadsPerBlock_), reqdThreadsPerBlock_, nullptr);
671+
(void)retError;
671672
assert(retError == PI_SUCCESS);
672673
}
673674

@@ -678,6 +679,7 @@ struct _pi_kernel {
678679
pi_result retError = cuda_piKernelGetGroupInfo(
679680
this, ctxt->get_device(), PI_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE,
680681
sizeof(reqdThreadsPerBlock_), reqdThreadsPerBlock_, nullptr);
682+
(void)retError;
681683
assert(retError == PI_SUCCESS);
682684
}
683685

0 commit comments

Comments
 (0)