Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Fix bad cast in util_device.
Browse files Browse the repository at this point in the history
Fixes #286.
  • Loading branch information
alliepiper committed Nov 10, 2021
1 parent 99c2931 commit ba1e07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cub/util_device.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ CUB_RUNTIME_FUNCTION inline cudaError_t PtxVersionUncached(int& ptx_version)

// This is necessary for unused variable warnings in host compilers. The
// usual syntax of (void)empty_kernel; was not sufficient on MSVC2015.
(void)reinterpret_cast<void*>(empty_kernel);
(void)reinterpret_cast<void*>(&empty_kernel);

cudaError_t result = cudaSuccess;
if (CUB_IS_HOST_CODE) {
Expand Down

0 comments on commit ba1e07c

Please sign in to comment.