diff --git a/cub/benchmarks/bench/histogram/histogram_common.cuh b/cub/benchmarks/bench/histogram/histogram_common.cuh index 607551250f9..ca4d95a12ab 100644 --- a/cub/benchmarks/bench/histogram/histogram_common.cuh +++ b/cub/benchmarks/bench/histogram/histogram_common.cuh @@ -29,6 +29,8 @@ #include +#include + #if !TUNE_BASE #if TUNE_LOAD == 0 @@ -37,7 +39,7 @@ #define TUNE_LOAD_MODIFIER cub::LOAD_LDG #else // TUNE_LOAD == 2 #define TUNE_LOAD_MODIFIER cub::LOAD_CA -#endif // TUNE_LOAD +#endif // TUNE_LOAD #define TUNE_VEC_SIZE (1 << TUNE_VEC_SIZE_POW) @@ -51,11 +53,11 @@ constexpr cub::BlockHistogramMemoryPreference MEM_PREFERENCE = cub::BLEND; #if TUNE_LOAD_ALGORITHM_ID == 0 #define TUNE_LOAD_ALGORITHM cub::BLOCK_LOAD_DIRECT -#elif TUNE_LOAD_ALGORITHM_ID == 1 +#elif TUNE_LOAD_ALGORITHM_ID == 1 #define TUNE_LOAD_ALGORITHM cub::BLOCK_LOAD_WARP_TRANSPOSE -#else +#else #define TUNE_LOAD_ALGORITHM cub::BLOCK_LOAD_STRIPED -#endif // TUNE_LOAD_ALGORITHM_ID +#endif // TUNE_LOAD_ALGORITHM_ID template struct policy_hub_t diff --git a/cub/cub/agent/agent_reduce.cuh b/cub/cub/agent/agent_reduce.cuh index e959ce860d8..967906f8de8 100644 --- a/cub/cub/agent/agent_reduce.cuh +++ b/cub/cub/agent/agent_reduce.cuh @@ -53,7 +53,9 @@ #include #include +_CCCL_DIAG_SUPPRESS_DEPRECATED_PUSH #include +_CCCL_DIAG_SUPPRESS_DEPRECATED_POP CUB_NAMESPACE_BEGIN diff --git a/cub/cub/agent/agent_three_way_partition.cuh b/cub/cub/agent/agent_three_way_partition.cuh index 86bcb75ecfb..8feec0127f7 100644 --- a/cub/cub/agent/agent_three_way_partition.cuh +++ b/cub/cub/agent/agent_three_way_partition.cuh @@ -48,6 +48,7 @@ #include #include +#include CUB_NAMESPACE_BEGIN diff --git a/cub/cub/block/block_radix_rank.cuh b/cub/cub/block/block_radix_rank.cuh index 320ba849088..ff32c7f324f 100644 --- a/cub/cub/block/block_radix_rank.cuh +++ b/cub/cub/block/block_radix_rank.cuh @@ -47,9 +47,9 @@ #include #include -#include #include - +#include +#include CUB_NAMESPACE_BEGIN diff --git a/cub/cub/block/radix_rank_sort_operations.cuh b/cub/cub/block/radix_rank_sort_operations.cuh index c6e388b6148..a23130a6b98 100644 --- a/cub/cub/block/radix_rank_sort_operations.cuh +++ b/cub/cub/block/radix_rank_sort_operations.cuh @@ -50,6 +50,7 @@ #include +#include #include #include diff --git a/cub/cub/detail/type_traits.cuh b/cub/cub/detail/type_traits.cuh index b2002519dd6..943b786b5e4 100644 --- a/cub/cub/detail/type_traits.cuh +++ b/cub/cub/detail/type_traits.cuh @@ -45,9 +45,11 @@ #include #include +_CCCL_DIAG_SUPPRESS_DEPRECATED_PUSH +#include +_CCCL_DIAG_SUPPRESS_DEPRECATED_POP #include - CUB_NAMESPACE_BEGIN namespace detail { diff --git a/cub/cub/detail/uninitialized_copy.cuh b/cub/cub/detail/uninitialized_copy.cuh index 5972e3a9660..660011b2e4f 100644 --- a/cub/cub/detail/uninitialized_copy.cuh +++ b/cub/cub/detail/uninitialized_copy.cuh @@ -37,8 +37,8 @@ # pragma system_header #endif // no system header - #include +#include CUB_NAMESPACE_BEGIN diff --git a/cub/cub/device/device_select.cuh b/cub/cub/device/device_select.cuh index 1292f04ad19..664f5cc95f7 100644 --- a/cub/cub/device/device_select.cuh +++ b/cub/cub/device/device_select.cuh @@ -47,6 +47,8 @@ #include #include +#include + #include #include diff --git a/cub/cub/device/dispatch/dispatch_reduce.cuh b/cub/cub/device/dispatch/dispatch_reduce.cuh index 14d892dc250..348fe9e0675 100644 --- a/cub/cub/device/dispatch/dispatch_reduce.cuh +++ b/cub/cub/device/dispatch/dispatch_reduce.cuh @@ -58,7 +58,9 @@ #include +_CCCL_DIAG_SUPPRESS_DEPRECATED_PUSH #include +_CCCL_DIAG_SUPPRESS_DEPRECATED_POP #include diff --git a/cub/cub/util_device.cuh b/cub/cub/util_device.cuh index a981d22c159..e711d9bf8a4 100644 --- a/cub/cub/util_device.cuh +++ b/cub/cub/util_device.cuh @@ -56,6 +56,7 @@ #include #include +#include #include diff --git a/cub/cub/util_ptx.cuh b/cub/cub/util_ptx.cuh index 03b317283e9..a93796480df 100644 --- a/cub/cub/util_ptx.cuh +++ b/cub/cub/util_ptx.cuh @@ -465,6 +465,7 @@ unsigned int WarpMask(unsigned int warp_id) { member_mask <<= warp_id * LOGICAL_WARP_THREADS; } + (void)warp_id; return member_mask; } diff --git a/cub/cub/util_type.cuh b/cub/cub/util_type.cuh index 9a982c2bb85..b688a3ef790 100644 --- a/cub/cub/util_type.cuh +++ b/cub/cub/util_type.cuh @@ -68,6 +68,8 @@ #include #include +#include +#include #if !defined(_LIBCUDACXX_COMPILER_NVRTC) # include diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/functional b/libcudacxx/include/cuda/std/detail/libcxx/include/functional index 9410a839f53..1d26f2d1b21 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/functional +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/functional @@ -505,7 +505,6 @@ POLICY: For non-variadic implementations, the number of arguments is limited #endif // _LIBCUDACXX_COMPILER_NVRTC #endif // __cuda_std__ - #include "__functional_base" #include "__functional/binary_function.h" #include "__functional/binary_negate.h" @@ -535,10 +534,7 @@ POLICY: For non-variadic implementations, the number of arguments is limited #include "__functional/unwrap_ref.h" #include "__functional/weak_result_type.h" -#include "chrono" -#include "climits" -#include "iterator" -#include "type_traits" +#include "iosfwd" // for forward declarations of vector and string. #include "version" #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) diff --git a/libcudacxx/test/libcudacxx/std/utilities/meta/meta.rel/is_nothrow_invocable.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/meta/meta.rel/is_nothrow_invocable.pass.cpp index 10f8d953cf1..c1e79e7a8a6 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/meta/meta.rel/is_nothrow_invocable.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/meta/meta.rel/is_nothrow_invocable.pass.cpp @@ -95,12 +95,14 @@ int main(int, char**) { static_assert(!cuda::std::is_nothrow_invocable::value, ""); static_assert(!cuda::std::is_nothrow_invocable::value, ""); +#ifdef _LIBCUDACXX_HAS_VECTOR static_assert(!cuda::std::is_nothrow_invocable >::value, ""); static_assert(!cuda::std::is_nothrow_invocable >::value, ""); static_assert(!cuda::std::is_nothrow_invocable >::value, ""); +#endif // _LIBCUDACXX_HAS_VECTOR #if TEST_STD_VER >= 2017 static_assert(!cuda::std::is_nothrow_invocable::value, ""); @@ -138,12 +140,14 @@ int main(int, char**) { static_assert(!cuda::std::is_nothrow_invocable_r::value, ""); static_assert(!cuda::std::is_nothrow_invocable_r::value, ""); +#ifdef _LIBCUDACXX_HAS_VECTOR static_assert(!cuda::std::is_nothrow_invocable_r >::value, ""); static_assert(!cuda::std::is_nothrow_invocable_r >::value, ""); static_assert(!cuda::std::is_nothrow_invocable_r >::value, ""); +#endif // _LIBCUDACXX_HAS_VECTOR #if TEST_STD_VER >= 2017 static_assert(!cuda::std::is_nothrow_invocable_r::value, ""); diff --git a/thrust/thrust/detail/allocator/allocator_traits.h b/thrust/thrust/detail/allocator/allocator_traits.h index b41e986e06d..2e111f486cf 100644 --- a/thrust/thrust/detail/allocator/allocator_traits.h +++ b/thrust/thrust/detail/allocator/allocator_traits.h @@ -29,6 +29,7 @@ #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC) # pragma system_header #endif // no system header + #include #include #include @@ -80,6 +81,8 @@ template typedef thrust::detail::integral_constant type; }; +_CCCL_DIAG_SUPPRESS_DEPRECATED_PUSH + // The following fields of std::allocator have been deprecated (since C++17). // There's no way to detect it other than explicit specialization. #if _CCCL_STD_VER >= 2017 @@ -186,6 +189,8 @@ template static const bool value = type::value; }; +_CCCL_DIAG_SUPPRESS_DEPRECATED_POP + template::value> struct rebind_alloc {