Skip to content

Commit

Permalink
[SYCL][CUDA] Fix no assertions build (#5152)
Browse files Browse the repository at this point in the history
Fix two unused variables warnings with --no-assertions, that cause build failure.
  • Loading branch information
alexbatashev authored Dec 15, 2021
1 parent 5c9f7c3 commit ab1c6e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sycl/plugins/cuda/pi_cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ struct _pi_kernel {
pi_result retError = cuda_piKernelGetGroupInfo(
this, ctxt->get_device(), PI_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE,
sizeof(reqdThreadsPerBlock_), reqdThreadsPerBlock_, nullptr);
(void)retError;
assert(retError == PI_SUCCESS);
}

Expand All @@ -678,6 +679,7 @@ struct _pi_kernel {
pi_result retError = cuda_piKernelGetGroupInfo(
this, ctxt->get_device(), PI_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE,
sizeof(reqdThreadsPerBlock_), reqdThreadsPerBlock_, nullptr);
(void)retError;
assert(retError == PI_SUCCESS);
}

Expand Down

0 comments on commit ab1c6e7

Please sign in to comment.