diff --git a/cub/cub/cub.cuh b/cub/cub/cub.cuh index 0563f5c0fe0..d3bac242ce4 100644 --- a/cub/cub/cub.cuh +++ b/cub/cub/cub.cuh @@ -12,12 +12,12 @@ // Static configuration #include -#ifndef CCCL_DISABLE_CUB_NVRTC_COMPATIBILITY_CHECK +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK # if _CCCL_COMPILER(NVRTC) # error \ - "Including is not supported when compiling with NVRTC. Include the specific device header instead (e.g. ). You can define CCCL_DISABLE_CUB_NVRTC_COMPATIBILITY_CHECK to disable this warning." + "Including is not supported when compiling with NVRTC. Include the specific device header instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." # endif // _CCCL_COMPILER(NVRTC) -#endif // CCCL_DISABLE_CUB_NVRTC_COMPATIBILITY_CHECK +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header diff --git a/cub/cub/device/device_adjacent_difference.cuh b/cub/cub/device/device_adjacent_difference.cuh index c1125c947ee..33ff8347980 100644 --- a/cub/cub/device/device_adjacent_difference.cuh +++ b/cub/cub/device/device_adjacent_difference.cuh @@ -5,6 +5,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_copy.cuh b/cub/cub/device/device_copy.cuh index 7958d7b18c1..c6a9feee166 100644 --- a/cub/cub/device/device_copy.cuh +++ b/cub/cub/device/device_copy.cuh @@ -8,6 +8,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_for.cuh b/cub/cub/device/device_for.cuh index a564a1178d4..3568d2afc30 100644 --- a/cub/cub/device/device_for.cuh +++ b/cub/cub/device/device_for.cuh @@ -5,6 +5,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_histogram.cuh b/cub/cub/device/device_histogram.cuh index 8a4b0faa786..8d8997d6314 100644 --- a/cub/cub/device/device_histogram.cuh +++ b/cub/cub/device/device_histogram.cuh @@ -10,6 +10,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_memcpy.cuh b/cub/cub/device/device_memcpy.cuh index dec3d66d4e8..dddf2288f92 100644 --- a/cub/cub/device/device_memcpy.cuh +++ b/cub/cub/device/device_memcpy.cuh @@ -8,6 +8,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_merge.cuh b/cub/cub/device/device_merge.cuh index 95daef75be0..33019508b68 100644 --- a/cub/cub/device/device_merge.cuh +++ b/cub/cub/device/device_merge.cuh @@ -5,6 +5,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_merge_sort.cuh b/cub/cub/device/device_merge_sort.cuh index d4e2774964a..1bf4e2c5a8e 100644 --- a/cub/cub/device/device_merge_sort.cuh +++ b/cub/cub/device/device_merge_sort.cuh @@ -5,6 +5,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_partition.cuh b/cub/cub/device/device_partition.cuh index 407db6ee2d9..2a8446b9bcf 100644 --- a/cub/cub/device/device_partition.cuh +++ b/cub/cub/device/device_partition.cuh @@ -10,6 +10,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_radix_sort.cuh b/cub/cub/device/device_radix_sort.cuh index da28decec62..5934c2e9774 100644 --- a/cub/cub/device/device_radix_sort.cuh +++ b/cub/cub/device/device_radix_sort.cuh @@ -10,6 +10,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_reduce.cuh b/cub/cub/device/device_reduce.cuh index 6d9470292b9..9bc1bfa73a9 100644 --- a/cub/cub/device/device_reduce.cuh +++ b/cub/cub/device/device_reduce.cuh @@ -10,6 +10,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_run_length_encode.cuh b/cub/cub/device/device_run_length_encode.cuh index 45d56e4251a..17c479a4480 100644 --- a/cub/cub/device/device_run_length_encode.cuh +++ b/cub/cub/device/device_run_length_encode.cuh @@ -12,6 +12,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_scan.cuh b/cub/cub/device/device_scan.cuh index 656cc922113..8e76dd9948e 100644 --- a/cub/cub/device/device_scan.cuh +++ b/cub/cub/device/device_scan.cuh @@ -10,6 +10,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_segmented_radix_sort.cuh b/cub/cub/device/device_segmented_radix_sort.cuh index 626eeddc515..61a7bc90c83 100644 --- a/cub/cub/device/device_segmented_radix_sort.cuh +++ b/cub/cub/device/device_segmented_radix_sort.cuh @@ -10,6 +10,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_segmented_reduce.cuh b/cub/cub/device/device_segmented_reduce.cuh index cf522bbfa82..b6f1f0aa11e 100644 --- a/cub/cub/device/device_segmented_reduce.cuh +++ b/cub/cub/device/device_segmented_reduce.cuh @@ -10,6 +10,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_segmented_scan.cuh b/cub/cub/device/device_segmented_scan.cuh index 9dc25d72556..a4fa1ea4f7b 100644 --- a/cub/cub/device/device_segmented_scan.cuh +++ b/cub/cub/device/device_segmented_scan.cuh @@ -9,6 +9,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_segmented_sort.cuh b/cub/cub/device/device_segmented_sort.cuh index 0ceb478e83d..d72f9bc02de 100644 --- a/cub/cub/device/device_segmented_sort.cuh +++ b/cub/cub/device/device_segmented_sort.cuh @@ -9,6 +9,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_select.cuh b/cub/cub/device/device_select.cuh index 58702c47098..282c3fda1be 100644 --- a/cub/cub/device/device_select.cuh +++ b/cub/cub/device/device_select.cuh @@ -10,6 +10,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_topk.cuh b/cub/cub/device/device_topk.cuh index 1a612560562..631c4d871b0 100644 --- a/cub/cub/device/device_topk.cuh +++ b/cub/cub/device/device_topk.cuh @@ -9,6 +9,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/device/device_transform.cuh b/cub/cub/device/device_transform.cuh index 994670c9d33..1bc7eb479dd 100644 --- a/cub/cub/device/device_transform.cuh +++ b/cub/cub/device/device_transform.cuh @@ -5,6 +5,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC. Include block-, warp-, or thread-level primitives instead (e.g. ). You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) diff --git a/cub/cub/util_allocator.cuh b/cub/cub/util_allocator.cuh index 35720a9180b..934239e1582 100644 --- a/cub/cub/util_allocator.cuh +++ b/cub/cub/util_allocator.cuh @@ -11,6 +11,13 @@ #include +#ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK +# if _CCCL_COMPILER(NVRTC) +# error \ + "Including is not supported when compiling with NVRTC, which supports device code only. You can define CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK to disable this warning." +# endif // _CCCL_COMPILER(NVRTC) +#endif // CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK + #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) # pragma GCC system_header #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)