Skip to content

Commit d930212

Browse files
committed
Do not query NVRTC for cuda runtime header
This may fail as discussed in #2095 Fixes 2095
1 parent 8a185fe commit d930212

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cub/cub/detail/detect_cuda_runtime.cuh

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@
4444
# pragma system_header
4545
#endif // no system header
4646

47-
#include <cuda_runtime_api.h>
47+
// CUDA headers might not be present when using NVRTC, see NVIDIA/cccl#2095 for detail
48+
#if !defined(_CCCL_COMPILER_NVRTC)
49+
# include <cuda_runtime_api.h>
50+
#endif // !_CCCL_COMPILER_NVRTC
4851

4952
#ifdef DOXYGEN_SHOULD_SKIP_THIS // Only parse this during doxygen passes:
5053

0 commit comments

Comments
 (0)