We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a185fe commit d930212Copy full SHA for d930212
cub/cub/detail/detect_cuda_runtime.cuh
@@ -44,7 +44,10 @@
44
# pragma system_header
45
#endif // no system header
46
47
-#include <cuda_runtime_api.h>
+// 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
51
52
#ifdef DOXYGEN_SHOULD_SKIP_THIS // Only parse this during doxygen passes:
53
0 commit comments