From b9c21e424101deafb984714ec54f85cff022d4e5 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Wed, 8 Jan 2025 21:02:21 +0100 Subject: [PATCH] Drop ICC support in code (#3279) * Drop ICC from code Fixes: #3278 Co-authored-by: Michael Schellenberger Costa --- CMakePresets.json | 1 - cmake/CCCLBuildCompilerTargets.cmake | 15 ----- cub/cub/detail/fast_modulo_division.cuh | 3 - cub/cub/util_macro.cuh | 6 -- cub/cub/util_type.cuh | 4 +- .../catch2_test_device_for_each_in_extents.cu | 4 +- .../cuda/experimental/__detail/config.cuh | 12 +--- docs/repo.toml | 3 - libcudacxx/cmake/DetermineGCCCompatible.cmake | 2 - libcudacxx/include/cuda/std/__cccl/assert.h | 12 +--- libcudacxx/include/cuda/std/__cccl/compiler.h | 9 ++- .../include/cuda/std/__cccl/diagnostic.h | 29 ++------- libcudacxx/include/cuda/std/__cccl/rtti.h | 9 --- .../include/cuda/std/__cccl/system_header.h | 4 +- .../include/cuda/std/__cccl/visibility.h | 8 +-- .../include/cuda/std/__mdspan/submdspan.h | 64 ++++++++----------- .../cuda/std/detail/libcxx/include/__config | 4 +- .../cuda/std/detail/libcxx/include/climits | 8 +-- .../cuda/std/detail/libcxx/include/cmath | 12 ---- .../test/internal_headers/CMakeLists.txt | 3 - libcudacxx/test/libcudacxx/CMakeLists.txt | 8 --- .../test/libcudacxx/cuda/type_list.pass.cpp | 2 +- .../atomics/libcpp-has-no-threads.fail.cpp | 4 +- ...atomic_flag_test_and_set_explicit.pass.cpp | 4 -- .../atomics.flag/test_and_set.pass.cpp | 4 -- .../sequences/array/iterators.pass.cpp | 16 ++--- .../iterator.cust.move/iter_move.pass.cpp | 12 +--- .../move.iter.nonmember/iter_move.pass.cpp | 4 -- .../move.iter.nonmember/iter_swap.pass.cpp | 12 ++-- .../difference_type.pass.cpp | 2 - .../difference_type.pass.cpp | 4 -- .../reverse.iter.nonmember/iter_move.pass.cpp | 4 -- .../reverse.iter.nonmember/iter_swap.pass.cpp | 6 -- .../std/ranges/range.access/begin.pass.cpp | 4 -- .../std/ranges/range.access/empty.pass.cpp | 2 +- .../std/ranges/range.access/end.pass.cpp | 4 -- .../std/ranges/range.access/rbegin.pass.cpp | 8 --- .../std/ranges/range.access/rend.pass.cpp | 8 --- .../range.subrange/lwg3470.pass.cpp | 1 - .../view.interface/view.interface.pass.cpp | 2 +- .../assign/assign.U.pass.cpp | 2 - .../assign/assign.copy.pass.cpp | 2 - .../assign/assign.move.pass.cpp | 4 -- .../assign/assign.unexpected.copy.pass.cpp | 2 - .../assign/assign.unexpected.move.pass.cpp | 2 - .../assign/emplace.intializer_list.pass.cpp | 4 -- .../expected.expected/assign/emplace.pass.cpp | 2 - .../expected.expected/ctor/ctor.move.pass.cpp | 2 - .../expected.expected/swap/free.swap.pass.cpp | 4 -- .../swap/member.swap.pass.cpp | 4 -- .../swap/swap.free.pass.cpp | 2 - .../swap/swap.member.pass.cpp | 2 - .../expected.void/assign/assign.move.pass.cpp | 2 - .../assign/assign.unexpected.move.pass.cpp | 2 - .../expected.void/ctor/ctor.move.pass.cpp | 2 - .../expected.void/swap/free.swap.pass.cpp | 2 - .../expected.void/swap/member.swap.pass.cpp | 2 - .../func.bind_front/bind_front.pass.cpp | 22 +++---- .../func.not_fn/not_fn.pass.cpp | 6 +- .../make_unique.sizezero.pass.cpp | 1 - .../meta.rel/is_nothrow_invocable.pass.cpp | 8 --- .../is_nothrow_swappable.pass.cpp | 2 - .../is_nothrow_swappable_with.pass.cpp | 4 -- .../is_trivially_copyable_volatile.pass.cpp | 1 - .../optional.object.assign/move.pass.cpp | 2 - .../optional.object.ctor/default.pass.cpp | 2 - .../optional.object.ctor/in_place_t.pass.cpp | 2 - .../optional.object.ctor/move.pass.cpp | 2 - .../optional.object.ctor/nullopt_t.pass.cpp | 2 - .../optional.object.observe/value.pass.cpp | 2 - .../value_const.pass.cpp | 2 - .../value_const_rvalue.pass.cpp | 2 - .../value_rvalue.pass.cpp | 2 - .../optional.object.swap/swap.pass.cpp | 10 --- .../optional.object/special_members.pass.cpp | 2 - .../optional.object/triviality.pass.cpp | 2 - .../optional/optional.specalg/swap.pass.cpp | 10 --- .../bitset.cons/char_ptr_ctor.pass.cpp | 12 ---- .../bitset.cons/default.pass.cpp | 3 - .../bitset.cons/ull_ctor.pass.cpp | 3 - .../bitset.members/count.pass.cpp | 3 - .../bitset.members/flip_all.pass.cpp | 3 - .../bitset.members/left_shift_eq.pass.cpp | 3 - .../bitset.members/not_all.pass.cpp | 3 - .../bitset.members/op_and_eq.pass.cpp | 3 - .../bitset.members/op_or_eq.pass.cpp | 3 - .../bitset.members/op_xor_eq.pass.cpp | 3 - .../bitset.members/reset_all.pass.cpp | 3 - .../bitset.members/right_shift_eq.pass.cpp | 3 - .../bitset.members/set_all.pass.cpp | 3 - .../decrement.pass.cpp | 2 - .../plus_minus_equal.pass.cpp | 2 - .../minus.pass.cpp | 2 - .../utility/exchange/exchange.pass.cpp | 2 - .../variant/variant.get/get_index.pass.cpp | 18 ++---- .../variant/variant.get/get_type.pass.cpp | 18 ++---- .../variant.variant/variant.assign/T.pass.cpp | 2 - .../variant.assign/copy.pass.cpp | 6 +- .../variant.assign/move.pass.cpp | 2 - .../variant.variant/variant.ctor/T.pass.cpp | 2 - .../variant.ctor/default.pass.cpp | 2 - .../variant.ctor/move.pass.cpp | 2 - .../variant.swap/swap.pass.cpp | 6 -- libcudacxx/test/public_headers/CMakeLists.txt | 3 - .../public_headers_host_only/CMakeLists.txt | 3 - libcudacxx/test/support/test_macros.h | 8 +-- libcudacxx/test/utils/libcudacxx/compiler.py | 5 -- .../test/utils/libcudacxx/dumpversion.cpp | 5 -- .../test/utils/libcudacxx/test/config.py | 4 -- thrust/testing/async_copy.cu | 5 -- thrust/testing/scan.cu | 12 ---- thrust/thrust/complex.h | 12 +--- thrust/thrust/detail/config/compiler.h | 3 - thrust/thrust/detail/preprocessor.h | 3 +- thrust/thrust/system/cuda/detail/future.inl | 1 - 115 files changed, 95 insertions(+), 534 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 2519ca09adf..089f9b81798 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -22,7 +22,6 @@ "CCCL_ENABLE_TESTING": false, "CCCL_ENABLE_EXAMPLES": false, "CCCL_ENABLE_C": false, - "CCCL_SUPPRESS_ICC_DEPRECATION_WARNING": true, "CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING": true, "libcudacxx_ENABLE_INSTALL_RULES": true, "CUB_ENABLE_INSTALL_RULES": true, diff --git a/cmake/CCCLBuildCompilerTargets.cmake b/cmake/CCCLBuildCompilerTargets.cmake index 906e287e439..98644b69779 100644 --- a/cmake/CCCLBuildCompilerTargets.cmake +++ b/cmake/CCCLBuildCompilerTargets.cmake @@ -23,7 +23,6 @@ set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded) option(CCCL_ENABLE_EXCEPTIONS "Enable exceptions within CCCL libraries." ON) option(CCCL_ENABLE_RTTI "Enable RTTI within CCCL libraries." ON) option(CCCL_ENABLE_WERROR "Treat warnings as errors for CCCL targets." ON) -option(CCCL_SUPPRESS_ICC_DEPRECATION_WARNING "Suppress Intel Compiler deprecation warnings" OFF) option(CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING "Suppress Visual Studio 2017 deprecation warnings" OFF) function(cccl_build_compiler_interface interface_target cuda_compile_options cxx_compile_options compile_defs) @@ -69,10 +68,6 @@ function(cccl_build_compiler_targets) list(APPEND cxx_compile_definitions "CCCL_DISABLE_RTTI") endif() - if (CCCL_SUPPRESS_ICC_DEPRECATION_WARNING) - list(APPEND cxx_compile_definitions "CCCL_SUPPRESS_ICC_DEPRECATION_WARNING") - endif() - if (CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) list(APPEND cxx_compile_definitions "CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING") endif() @@ -160,16 +155,6 @@ function(cccl_build_compiler_targets) endif() endif() - if ("Intel" STREQUAL "${CMAKE_CXX_COMPILER_ID}") - # Do not flush denormal floats to zero - append_option_if_available("-no-ftz" cxx_compile_options) - # Disable warning that inlining is inhibited by compiler thresholds. - append_option_if_available("-diag-disable=11074" cxx_compile_options) - append_option_if_available("-diag-disable=11076" cxx_compile_options) - # Disable warning about deprecated classic compiler - append_option_if_available("-diag-disable=10441" cxx_compile_options) - endif() - cccl_build_compiler_interface(cccl.compiler_interface "${cuda_compile_options}" "${cxx_compile_options}" diff --git a/cub/cub/detail/fast_modulo_division.cuh b/cub/cub/detail/fast_modulo_division.cuh index 2ae65400e71..4a5f2048e32 100644 --- a/cub/cub/detail/fast_modulo_division.cuh +++ b/cub/cub/detail/fast_modulo_division.cuh @@ -109,8 +109,6 @@ multiply_extract_higher_bits(T value, R multiplier) { static_assert(supported_integral::value, "unsupported type"); static_assert(supported_integral::value, "unsupported type"); - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) // pointless comparison of unsigned integer with zero _CCCL_IF_CONSTEXPR (_CCCL_TRAIT(::cuda::std::is_signed, T)) { _CCCL_ASSERT(value >= 0, "value must be non-negative"); @@ -119,7 +117,6 @@ multiply_extract_higher_bits(T value, R multiplier) { _CCCL_ASSERT(multiplier >= 0, "multiplier must be non-negative"); } - _CCCL_DIAG_POP static constexpr int NumBits = sizeof(DivisorType) * CHAR_BIT; using unsigned_t = unsigned_implicit_prom_t; using larger_t = larger_unsigned_type_t; diff --git a/cub/cub/util_macro.cuh b/cub/cub/util_macro.cuh index ae42e5fe875..c58d90682e1 100644 --- a/cub/cub/util_macro.cuh +++ b/cub/cub/util_macro.cuh @@ -112,12 +112,6 @@ _CCCL_DIAG_SUPPRESS_CLANG("-Wattributes") # if !_CCCL_CUDA_COMPILER(NVHPC) _CCCL_DIAG_SUPPRESS_NVHPC(attribute_requires_external_linkage) # endif // !_CCCL_CUDA_COMPILER(NVHPC) -# if _CCCL_COMPILER(ICC) -# pragma nv_diag_suppress 1407 // the "__visibility__" attribute can only appear on functions and - // variables with external linkage' -# pragma warning(disable : 1890) // the "__visibility__" attribute can only appear on functions and - // variables with external linkage' -# endif // _CCCL_COMPILER(ICC) #endif // !CUB_DISABLE_KERNEL_VISIBILITY_WARNING_SUPPRESSION #ifndef CUB_DEFINE_KERNEL_GETTER diff --git a/cub/cub/util_type.cuh b/cub/cub/util_type.cuh index c6be2a5209f..4d1db99a821 100644 --- a/cub/cub/util_type.cuh +++ b/cub/cub/util_type.cuh @@ -82,9 +82,9 @@ CUB_NAMESPACE_BEGIN # endif // !defined(__CUDACC_RTC_INT128__) # else // !defined(__CUDACC_RTC__) # if _CCCL_CUDACC_AT_LEAST(11, 5) -# if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(CLANG) || _CCCL_COMPILER(ICC) || _CCCL_COMPILER(NVHPC) +# if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(CLANG) || _CCCL_COMPILER(NVHPC) # define CUB_IS_INT128_ENABLED 1 -# endif // GCC || CLANG || ICC || NVHPC +# endif // GCC || CLANG || NVHPC # endif // _CCCL_CUDACC_AT_LEAST(11, 5) # endif // !defined(__CUDACC_RTC__) #endif // !defined(CUB_IS_INT128_ENABLED) diff --git a/cub/test/catch2_test_device_for_each_in_extents.cu b/cub/test/catch2_test_device_for_each_in_extents.cu index 6f11810101c..8ad75a1d0cb 100644 --- a/cub/test/catch2_test_device_for_each_in_extents.cu +++ b/cub/test/catch2_test_device_for_each_in_extents.cu @@ -55,7 +55,7 @@ static auto fill_linear_impl(c2h::host_vector& vector, const ExtentType&, siz _CCCL_TRAILING_REQUIRES(void)((Rank == ExtentType::rank())) { vector[pos++] = {indices...}; - return void(); // Intel and nvc++ require a return statement + return void(); // nvc++ requires a return statement } template @@ -67,7 +67,7 @@ static auto fill_linear_impl(c2h::host_vector& vector, const ExtentType& ext, { fill_linear_impl(vector, ext, pos, indices..., i); } - return void(); // Intel and nvc++ require a return statement + return void(); // nvc++ requires a return statement } template diff --git a/cudax/include/cuda/experimental/__detail/config.cuh b/cudax/include/cuda/experimental/__detail/config.cuh index 632e689f564..2ac25eb0a3b 100644 --- a/cudax/include/cuda/experimental/__detail/config.cuh +++ b/cudax/include/cuda/experimental/__detail/config.cuh @@ -35,15 +35,9 @@ // two attributes: // - `_CUDAX_API` declares the function host/device and hides the symbol from the ABI // - `_CUDAX_TRIVIAL_API` does the same while also forcing inlining and hiding the function from debuggers -#if _CCCL_COMPILER(ICC) // ICC has issues with visibility attributes on symbols with internal linkage -# define _CUDAX_API _CCCL_HOST_DEVICE -# define _CUDAX_HOST_API _CCCL_HOST -# define _CUDAX_DEVICE_API _CCCL_DEVICE -#else // ^^^ _CCCL_COMPILER(ICC) ^^^ / vvv !_CCCL_COMPILER(ICC) vvv -# define _CUDAX_API _CCCL_HOST_DEVICE _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION -# define _CUDAX_HOST_API _CCCL_HOST _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION -# define _CUDAX_DEVICE_API _CCCL_DEVICE _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION -#endif // !_CCCL_COMPILER(ICC) +#define _CUDAX_API _CCCL_HOST_DEVICE _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION +#define _CUDAX_HOST_API _CCCL_HOST _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION +#define _CUDAX_DEVICE_API _CCCL_DEVICE _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION // _CUDAX_TRIVIAL_API force-inlines a function, marks its visibility as hidden, and causes debuggers to skip it. // This is useful for trivial internal functions that do dispatching or other plumbing work. It is particularly diff --git a/docs/repo.toml b/docs/repo.toml index 87655b3c65d..f7a1198d766 100644 --- a/docs/repo.toml +++ b/docs/repo.toml @@ -157,7 +157,6 @@ doxygen_predefined = [ "_CCCL_DIAG_POP=", "_CCCL_DIAG_SUPPRESS_CLANG(x)=", "_CCCL_DIAG_SUPPRESS_GCC(x)=", - "_CCCL_DIAG_SUPPRESS_ICC(x)=", "_CCCL_DIAG_SUPPRESS_MSVC(x)=", "_CCCL_DIAG_SUPPRESS_NVHPC(x)=", "_CCCL_DOXYGEN_INVOKED", @@ -270,7 +269,6 @@ doxygen_predefined = [ "_CCCL_DIAG_POP=", "_CCCL_DIAG_SUPPRESS_CLANG(x)=", "_CCCL_DIAG_SUPPRESS_GCC(x)=", - "_CCCL_DIAG_SUPPRESS_ICC(x)=", "_CCCL_DIAG_SUPPRESS_MSVC(x)=", "_CCCL_DIAG_SUPPRESS_NVHPC(x)=", "CUDASTF_HOST=", @@ -435,7 +433,6 @@ doxygen_predefined = [ "_CCCL_DIAG_POP=", "_CCCL_DIAG_SUPPRESS_CLANG(x)=", "_CCCL_DIAG_SUPPRESS_GCC(x)=", - "_CCCL_DIAG_SUPPRESS_ICC(x)=", "_CCCL_DIAG_SUPPRESS_MSVC(x)=", "_CCCL_DIAG_SUPPRESS_NVHPC(x)=", "_CCCL_REQUIRES(x)= ::cuda::std::enable_if_t = 0>", diff --git a/libcudacxx/cmake/DetermineGCCCompatible.cmake b/libcudacxx/cmake/DetermineGCCCompatible.cmake index 1369ebe9d0e..1bf15fcba72 100644 --- a/libcudacxx/cmake/DetermineGCCCompatible.cmake +++ b/libcudacxx/cmake/DetermineGCCCompatible.cmake @@ -7,7 +7,5 @@ if(NOT DEFINED LLVM_COMPILER_IS_GCC_COMPATIBLE) set(LLVM_COMPILER_IS_GCC_COMPATIBLE OFF) elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" ) set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON) - elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel" ) - set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON) endif() endif() diff --git a/libcudacxx/include/cuda/std/__cccl/assert.h b/libcudacxx/include/cuda/std/__cccl/assert.h index 35b4fb6d2f7..5ef9314f310 100644 --- a/libcudacxx/include/cuda/std/__cccl/assert.h +++ b/libcudacxx/include/cuda/std/__cccl/assert.h @@ -79,15 +79,9 @@ _CCCL_HOST_DEVICE __attribute__((__noreturn__)); } # endif // NDEBUG -// ICC cannot deal with `__builtin_expect` in the constexpr evaluator, so just drop it -# if _CCCL_COMPILER(ICC) -# define _CCCL_ASSERT_IMPL_HOST(expression, message) \ - static_cast(expression) ? (void) 0 : __assert_fail(message, __FILE__, __LINE__, __func__); -# else // ^^^ _CCCL_COMPILER(ICC) ^^^ / vvv !_CCCL_COMPILER(ICC) vvv -# define _CCCL_ASSERT_IMPL_HOST(expression, message) \ - _CCCL_BUILTIN_EXPECT(static_cast(expression), 1) \ - ? (void) 0 : __assert_fail(message, __FILE__, __LINE__, __func__) -# endif // !_CCCL_COMPILER(ICC) +# define _CCCL_ASSERT_IMPL_HOST(expression, message) \ + _CCCL_BUILTIN_EXPECT(static_cast(expression), 1) \ + ? (void) 0 : __assert_fail(message, __FILE__, __LINE__, __func__) #endif // !MSVC STL //! Use custom implementations with nvcc on device and the host ones with clang-cuda and nvhpc diff --git a/libcudacxx/include/cuda/std/__cccl/compiler.h b/libcudacxx/include/cuda/std/__cccl/compiler.h index ed0ab5af3ac..166450fd84e 100644 --- a/libcudacxx/include/cuda/std/__cccl/compiler.h +++ b/libcudacxx/include/cuda/std/__cccl/compiler.h @@ -42,11 +42,10 @@ // Determine the host compiler and its version #if defined(__INTEL_COMPILER) -# define _CCCL_COMPILER_ICC 1 -# ifndef CCCL_SUPPRESS_ICC_DEPRECATION_WARNING +# ifndef CCCL_IGNORE_DEPRECATED_COMPILER # warning \ - "Support for the Intel C++ Compiler Classic is deprecated and will eventually be removed. Define CCCL_SUPPRESS_ICC_DEPRECATION_WARNING to suppress this warning" -# endif // CCCL_SUPPRESS_ICC_DEPRECATION_WARNING + "The Intel C++ Compiler Classic (icc/icpc) is not supported by CCCL. Define CCCL_IGNORE_DEPRECATED_COMPILER to suppress this message." +# endif // !CCCL_IGNORE_DEPRECATED_COMPILER #elif defined(__NVCOMPILER) # define _CCCL_COMPILER_NVHPC _CCCL_COMPILER_MAKE_VERSION(__NVCOMPILER_MAJOR__, __NVCOMPILER_MINOR__) #elif defined(__clang__) @@ -59,7 +58,7 @@ # if _CCCL_COMPILER_MSVC2017 && !defined(CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) # pragma message( \ "Support for the Visual Studio 2017 (MSC_VER < 1920) is deprecated and will eventually be removed. Define CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING to suppress this warning") -# endif // CCCL_SUPPRESS_ICC_DEPRECATION_WARNING +# endif # define _CCCL_COMPILER_MSVC2019 \ (_CCCL_COMPILER_MSVC >= _CCCL_COMPILER_MAKE_VERSION(19, 20) \ && _CCCL_COMPILER_MSVC < _CCCL_COMPILER_MAKE_VERSION(19, 30)) diff --git a/libcudacxx/include/cuda/std/__cccl/diagnostic.h b/libcudacxx/include/cuda/std/__cccl/diagnostic.h index f1c1ec8c0fb..acb9064493c 100644 --- a/libcudacxx/include/cuda/std/__cccl/diagnostic.h +++ b/libcudacxx/include/cuda/std/__cccl/diagnostic.h @@ -30,7 +30,6 @@ # define _CCCL_DIAG_SUPPRESS_GCC(str) # define _CCCL_DIAG_SUPPRESS_NVHPC(str) # define _CCCL_DIAG_SUPPRESS_MSVC(str) -# define _CCCL_DIAG_SUPPRESS_ICC(str) #elif _CCCL_COMPILER(GCC) # define _CCCL_DIAG_PUSH _CCCL_PRAGMA(GCC diagnostic push) # define _CCCL_DIAG_POP _CCCL_PRAGMA(GCC diagnostic pop) @@ -38,15 +37,6 @@ # define _CCCL_DIAG_SUPPRESS_GCC(str) _CCCL_PRAGMA(GCC diagnostic ignored str) # define _CCCL_DIAG_SUPPRESS_NVHPC(str) # define _CCCL_DIAG_SUPPRESS_MSVC(str) -# define _CCCL_DIAG_SUPPRESS_ICC(str) -#elif _CCCL_COMPILER(ICC) -# define _CCCL_DIAG_PUSH _CCCL_PRAGMA(GCC diagnostic push) -# define _CCCL_DIAG_POP _CCCL_PRAGMA(GCC diagnostic pop) -# define _CCCL_DIAG_SUPPRESS_CLANG(str) -# define _CCCL_DIAG_SUPPRESS_GCC(str) _CCCL_PRAGMA(GCC diagnostic ignored str) -# define _CCCL_DIAG_SUPPRESS_NVHPC(str) -# define _CCCL_DIAG_SUPPRESS_MSVC(str) -# define _CCCL_DIAG_SUPPRESS_ICC(str) _CCCL_PRAGMA(warning disable str) #elif _CCCL_COMPILER(NVHPC) # define _CCCL_DIAG_PUSH _CCCL_PRAGMA(diagnostic push) # define _CCCL_DIAG_POP _CCCL_PRAGMA(diagnostic pop) @@ -54,7 +44,6 @@ # define _CCCL_DIAG_SUPPRESS_GCC(str) # define _CCCL_DIAG_SUPPRESS_NVHPC(str) _CCCL_PRAGMA(diag_suppress str) # define _CCCL_DIAG_SUPPRESS_MSVC(str) -# define _CCCL_DIAG_SUPPRESS_ICC(str) #elif _CCCL_COMPILER(MSVC) # define _CCCL_DIAG_PUSH _CCCL_PRAGMA(warning(push)) # define _CCCL_DIAG_POP _CCCL_PRAGMA(warning(pop)) @@ -62,7 +51,6 @@ # define _CCCL_DIAG_SUPPRESS_GCC(str) # define _CCCL_DIAG_SUPPRESS_NVHPC(str) # define _CCCL_DIAG_SUPPRESS_MSVC(str) _CCCL_PRAGMA(warning(disable : str)) -# define _CCCL_DIAG_SUPPRESS_ICC(str) #else # define _CCCL_DIAG_PUSH # define _CCCL_DIAG_POP @@ -70,7 +58,6 @@ # define _CCCL_DIAG_SUPPRESS_GCC(str) # define _CCCL_DIAG_SUPPRESS_NVHPC(str) # define _CCCL_DIAG_SUPPRESS_MSVC(str) -# define _CCCL_DIAG_SUPPRESS_ICC(str) #endif // Convenient shortcuts to silence common warnings @@ -80,12 +67,6 @@ _CCCL_DIAG_SUPPRESS_CLANG("-Wdeprecated") \ _CCCL_DIAG_SUPPRESS_CLANG("-Wdeprecated-declarations") # define _CCCL_SUPPRESS_DEPRECATED_POP _CCCL_DIAG_POP -#elif _CCCL_COMPILER(ICC) -# define _CCCL_SUPPRESS_DEPRECATED_PUSH \ - _CCCL_DIAG_PUSH \ - _CCCL_DIAG_SUPPRESS_ICC(1478) \ - _CCCL_DIAG_SUPPRESS_ICC(1786) -# define _CCCL_SUPPRESS_DEPRECATED_POP _CCCL_DIAG_POP #elif _CCCL_COMPILER(GCC) # define _CCCL_SUPPRESS_DEPRECATED_PUSH \ _CCCL_DIAG_PUSH \ @@ -103,23 +84,21 @@ _CCCL_DIAG_PUSH \ _CCCL_DIAG_SUPPRESS_MSVC(4996) # define _CCCL_SUPPRESS_DEPRECATED_POP _CCCL_DIAG_POP -#else // !_CCCL_COMPILER(CLANG) && !_CCCL_COMPILER(ICC) && && !_CCCL_COMPILER(GCC) && !_CCCL_COMPILER(NVHPC) && - // !_CCCL_COMPILER(MSVC) +#else // !_CCCL_COMPILER(CLANG) && !_CCCL_COMPILER(GCC) && !_CCCL_COMPILER(NVHPC) && !_CCCL_COMPILER(MSVC) # define _CCCL_SUPPRESS_DEPRECATED_PUSH # define _CCCL_SUPPRESS_DEPRECATED_POP -#endif // !_CCCL_COMPILER(CLANG) && !_CCCL_COMPILER(ICC) && && !_CCCL_COMPILER(GCC) && !_CCCL_COMPILER(NVHPC) && - // !_CCCL_COMPILER(MSVC) +#endif // !_CCCL_COMPILER(CLANG) && !_CCCL_COMPILER(GCC) && !_CCCL_COMPILER(NVHPC) && !_CCCL_COMPILER(MSVC) // Enable us to selectively silence cuda compiler warnings #if _CCCL_HAS_CUDA_COMPILER # if _CCCL_CUDA_COMPILER(CLANG) # define _CCCL_NV_DIAG_SUPPRESS(_WARNING) # define _CCCL_NV_DIAG_DEFAULT(_WARNING) -# elif defined(__NVCC_DIAG_PRAGMA_SUPPORT__) || _CCCL_COMPILER(ICC) +# elif defined(__NVCC_DIAG_PRAGMA_SUPPORT__) # if _CCCL_COMPILER(MSVC) # define _CCCL_NV_DIAG_SUPPRESS(_WARNING) _CCCL_PRAGMA(nv_diag_suppress _WARNING) # define _CCCL_NV_DIAG_DEFAULT(_WARNING) _CCCL_PRAGMA(nv_diag_default _WARNING) -# else // ^^^ _CCCL_COMPILER_{MSVC,ICC}^^^ / vvv !_CCCL_COMPILER_{MSVC,ICC} vvv +# else // ^^^ _CCCL_COMPILER_{MSVC}^^^ / vvv !_CCCL_COMPILER_{MSVC} vvv # define _CCCL_NV_DIAG_SUPPRESS(_WARNING) _CCCL_PRAGMA(nv_diagnostic push) _CCCL_PRAGMA(nv_diag_suppress _WARNING) # define _CCCL_NV_DIAG_DEFAULT(_WARNING) _CCCL_PRAGMA(nv_diagnostic pop) # endif // !_CCCL_COMPILER(MSVC) diff --git a/libcudacxx/include/cuda/std/__cccl/rtti.h b/libcudacxx/include/cuda/std/__cccl/rtti.h index 174b6313d87..14ce5dc5c6f 100644 --- a/libcudacxx/include/cuda/std/__cccl/rtti.h +++ b/libcudacxx/include/cuda/std/__cccl/rtti.h @@ -32,10 +32,6 @@ # define _CCCL_NO_RTTI # elif defined(__CUDA_ARCH__) # define _CCCL_NO_RTTI // No RTTI in CUDA device code -# elif _CCCL_COMPILER(ICC) -# if __RTTI == 0 && __INTEL_RTTI__ == 0 && __GXX_RTTI == 0 && _CPPRTTI == 0 -# define _CCCL_NO_RTTI -# endif # elif _CCCL_COMPILER(NVRTC) # define _CCCL_NO_RTTI # elif _CCCL_COMPILER(MSVC) @@ -58,11 +54,6 @@ # define _CCCL_NO_TYPEID # elif defined(__CUDA_ARCH__) # define _CCCL_NO_TYPEID // No typeid in CUDA device code -# elif _CCCL_COMPILER(ICC) -// when emulating MSVC, typeid is available even when RTTI is disabled -# if !defined(_MSC_VER) && __RTTI == 0 && __INTEL_RTTI__ == 0 && __GXX_RTTI == 0 && _CPPRTTI == 0 -# define _CCCL_NO_TYPEID -# endif # elif _CCCL_COMPILER(NVRTC) # define _CCCL_NO_TYPEID # elif _CCCL_COMPILER(MSVC) diff --git a/libcudacxx/include/cuda/std/__cccl/system_header.h b/libcudacxx/include/cuda/std/__cccl/system_header.h index d557dc88682..3d2d1ac6a78 100644 --- a/libcudacxx/include/cuda/std/__cccl/system_header.h +++ b/libcudacxx/include/cuda/std/__cccl/system_header.h @@ -15,7 +15,7 @@ #include // IWYU pragma: export // Enforce that cccl headers are treated as system headers -#if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(NVHPC) || _CCCL_COMPILER(ICC) +#if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(NVHPC) # define _CCCL_FORCE_SYSTEM_HEADER_GCC #elif _CCCL_COMPILER(CLANG) # define _CCCL_FORCE_SYSTEM_HEADER_CLANG @@ -26,7 +26,7 @@ // Potentially enable that cccl headers are treated as system headers #if !defined(_CCCL_NO_SYSTEM_HEADER) && !(_CCCL_COMPILER(MSVC) && defined(_LIBCUDACXX_DISABLE_PRAGMA_MSVC_WARNING)) \ && !_CCCL_COMPILER(NVRTC) && !defined(_LIBCUDACXX_DISABLE_PRAGMA_GCC_SYSTEM_HEADER) -# if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(NVHPC) || _CCCL_COMPILER(ICC) +# if _CCCL_COMPILER(GCC) || _CCCL_COMPILER(NVHPC) # define _CCCL_IMPLICIT_SYSTEM_HEADER_GCC # elif _CCCL_COMPILER(CLANG) # define _CCCL_IMPLICIT_SYSTEM_HEADER_CLANG diff --git a/libcudacxx/include/cuda/std/__cccl/visibility.h b/libcudacxx/include/cuda/std/__cccl/visibility.h index af3eb9ec6ef..e994b7f1c2e 100644 --- a/libcudacxx/include/cuda/std/__cccl/visibility.h +++ b/libcudacxx/include/cuda/std/__cccl/visibility.h @@ -72,13 +72,11 @@ # define _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION #endif // !exclude_from_explicit_instantiation -#if _CCCL_COMPILER(ICC) // ICC has issues with visibility attributes on symbols with internal linkage +#if _CCCL_COMPILER(NVHPC) // NVHPC has issues with visibility attributes on symbols with internal linkage # define _CCCL_HIDE_FROM_ABI inline -#elif _CCCL_COMPILER(NVHPC) // NVHPC has issues with visibility attributes on symbols with internal linkage -# define _CCCL_HIDE_FROM_ABI inline -#else // ^^^ _CCCL_COMPILER(ICC) ^^^ / vvv !_CCCL_COMPILER(ICC) vvv +#else // ^^^ _CCCL_COMPILER(NVHPC) ^^^ / vvv !_CCCL_COMPILER(NVHPC) vvv # define _CCCL_HIDE_FROM_ABI _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION inline -#endif // !_CCCL_COMPILER(ICC) +#endif // !_CCCL_COMPILER(NVHPC) //! Defined here to suppress any warnings from the definition #define _LIBCUDACXX_HIDE_FROM_ABI _CCCL_HIDE_FROM_ABI _CCCL_HOST_DEVICE diff --git a/libcudacxx/include/cuda/std/__mdspan/submdspan.h b/libcudacxx/include/cuda/std/__mdspan/submdspan.h index aac6f43c85d..74bf1f79943 100644 --- a/libcudacxx/include/cuda/std/__mdspan/submdspan.h +++ b/libcudacxx/include/cuda/std/__mdspan/submdspan.h @@ -287,12 +287,11 @@ struct __assign_op_slice_handler< __MDSPAN_FORCE_INLINE_FUNCTION // NOLINT (misc-unconventional-assign-operator) constexpr auto operator=(__slice_wrap<_OldStaticExtent, _OldStaticStride, size_t>&& __slice) noexcept - -> __assign_op_slice_handler< - _IndexT, - typename _PreserveLayoutAnalysis::encounter_scalar, - __partially_static_sizes<_IndexT, size_t, _Offsets..., dynamic_extent>, - __partially_static_sizes<_IndexT, size_t, _Exts...>, - __partially_static_sizes<_IndexT, size_t, _Strides...> /* intentional space here to work around ICC bug*/> + -> __assign_op_slice_handler<_IndexT, + typename _PreserveLayoutAnalysis::encounter_scalar, + __partially_static_sizes<_IndexT, size_t, _Offsets..., dynamic_extent>, + __partially_static_sizes<_IndexT, size_t, _Exts...>, + __partially_static_sizes<_IndexT, size_t, _Strides...>> { return {__partially_static_sizes<_IndexT, size_t, _Offsets..., dynamic_extent>( __construct_psa_from_all_exts_values_tag, __offsets.template __get_n<_OffsetIdxs>()..., __slice.slice), @@ -307,12 +306,11 @@ struct __assign_op_slice_handler< __MDSPAN_FORCE_INLINE_FUNCTION // NOLINT (misc-unconventional-assign-operator) constexpr auto operator=(__slice_wrap<_OldStaticExtent, _OldStaticStride, integral_constant<_IntegerType, _Value0>>&&) noexcept - -> __assign_op_slice_handler< - _IndexT, - typename _PreserveLayoutAnalysis::encounter_scalar, - __partially_static_sizes<_IndexT, size_t, _Offsets..., _Value0>, - __partially_static_sizes<_IndexT, size_t, _Exts...>, - __partially_static_sizes<_IndexT, size_t, _Strides...> /* intentional space here to work around ICC bug*/> + -> __assign_op_slice_handler<_IndexT, + typename _PreserveLayoutAnalysis::encounter_scalar, + __partially_static_sizes<_IndexT, size_t, _Offsets..., _Value0>, + __partially_static_sizes<_IndexT, size_t, _Exts...>, + __partially_static_sizes<_IndexT, size_t, _Strides...>> { # if __MDSPAN_HAS_CXX_17 if constexpr (_CUDA_VSTD::is_signed_v<_IntegerType>) @@ -331,15 +329,11 @@ struct __assign_op_slice_handler< __MDSPAN_FORCE_INLINE_FUNCTION // NOLINT (misc-unconventional-assign-operator) constexpr auto operator=(__slice_wrap<_OldStaticExtent, _OldStaticStride, full_extent_t>&& __slice) noexcept - -> __assign_op_slice_handler< - _IndexT, - typename _PreserveLayoutAnalysis::encounter_all, - __partially_static_sizes<_IndexT, size_t, _Offsets..., 0>, - __partially_static_sizes<_IndexT, size_t, _Exts..., _OldStaticExtent>, - __partially_static_sizes<_IndexT, - size_t, - _Strides..., - _OldStaticStride> /* intentional space here to work around ICC bug*/> + -> __assign_op_slice_handler<_IndexT, + typename _PreserveLayoutAnalysis::encounter_all, + __partially_static_sizes<_IndexT, size_t, _Offsets..., 0>, + __partially_static_sizes<_IndexT, size_t, _Exts..., _OldStaticExtent>, + __partially_static_sizes<_IndexT, size_t, _Strides..., _OldStaticStride>> { return { __partially_static_sizes<_IndexT, size_t, _Offsets..., 0>( @@ -355,15 +349,11 @@ struct __assign_op_slice_handler< __MDSPAN_FORCE_INLINE_FUNCTION // NOLINT (misc-unconventional-assign-operator) constexpr auto operator=(__slice_wrap<_OldStaticExtent, _OldStaticStride, tuple>&& __slice) noexcept - -> __assign_op_slice_handler< - _IndexT, - typename _PreserveLayoutAnalysis::encounter_pair, - __partially_static_sizes<_IndexT, size_t, _Offsets..., dynamic_extent>, - __partially_static_sizes<_IndexT, size_t, _Exts..., dynamic_extent>, - __partially_static_sizes<_IndexT, - size_t, - _Strides..., - _OldStaticStride> /* intentional space here to work around ICC bug*/> + -> __assign_op_slice_handler<_IndexT, + typename _PreserveLayoutAnalysis::encounter_pair, + __partially_static_sizes<_IndexT, size_t, _Offsets..., dynamic_extent>, + __partially_static_sizes<_IndexT, size_t, _Exts..., dynamic_extent>, + __partially_static_sizes<_IndexT, size_t, _Strides..., _OldStaticStride>> { return { __partially_static_sizes<_IndexT, size_t, _Offsets..., dynamic_extent>( @@ -393,15 +383,11 @@ struct __assign_op_slice_handler< _OldStaticStride, tuple, integral_constant<_IntegerType1, _Value1>>>&& __slice) noexcept - -> __assign_op_slice_handler< - _IndexT, - typename _PreserveLayoutAnalysis::encounter_pair, - __partially_static_sizes<_IndexT, size_t, _Offsets..., size_t(_Value0)>, - __partially_static_sizes<_IndexT, size_t, _Exts..., size_t(_Value1 - _Value0)>, - __partially_static_sizes<_IndexT, - size_t, - _Strides..., - _OldStaticStride> /* intentional space here to work around ICC bug*/> + -> __assign_op_slice_handler<_IndexT, + typename _PreserveLayoutAnalysis::encounter_pair, + __partially_static_sizes<_IndexT, size_t, _Offsets..., size_t(_Value0)>, + __partially_static_sizes<_IndexT, size_t, _Exts..., size_t(_Value1 - _Value0)>, + __partially_static_sizes<_IndexT, size_t, _Strides..., _OldStaticStride>> { static_assert(_Value1 >= _Value0, "Invalid slice specifier"); return { diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__config b/libcudacxx/include/cuda/std/detail/libcxx/include/__config index 91569efb6ae..1706bd2937c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__config +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__config @@ -258,9 +258,7 @@ typedef unsigned int char32_t; // TODO: Support C11 Atomics? // #if _CCCL_HAS_FEATURE(cxx_atomic) || __has_extension(c_atomic) || _CCCL_HAS_KEYWORD(_Atomic) // # define _LIBCUDACXX_HAS_C_ATOMIC_IMP -# if _CCCL_COMPILER(ICC) -# define _LIBCUDACXX_HAS_GCC_ATOMIC_IMP -# elif _CCCL_COMPILER(CLANG) +# if _CCCL_COMPILER(CLANG) # define _LIBCUDACXX_HAS_GCC_ATOMIC_IMP # elif _CCCL_COMPILER(GCC) # define _LIBCUDACXX_HAS_GCC_ATOMIC_IMP diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/climits b/libcudacxx/include/cuda/std/detail/libcxx/include/climits index 985ce4b718c..a80cd27db50 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/climits +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/climits @@ -55,13 +55,9 @@ _CCCL_PUSH_MACROS # include #endif // _CCCL_COMPILER(MSVC) -// ICC defines __CHAR_BIT__ by default -// accept that, but assert it is what we expect -#ifdef __CHAR_BIT__ -static_assert(__CHAR_BIT__ == 8, ""); -#else +#ifndef __CHAR_BIT__ # define __CHAR_BIT__ 8 -#endif +#endif // !__CHAR_BIT__ _CCCL_POP_MACROS diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cmath b/libcudacxx/include/cuda/std/detail/libcxx/include/cmath index a258dc31710..a3ef375cb10 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cmath +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cmath @@ -654,11 +654,7 @@ _LIBCUDACXX_HIDE_FROM_ABI _A1 __constexpr_fmax(_A1 __x, _A1 __y) noexcept _LIBCUDACXX_HIDE_FROM_ABI _CCCL_CONSTEXPR_CXX14_COMPLEX float __constexpr_fmax(float __x, float __y) noexcept { # if defined(_CCCL_BUILTIN_IS_CONSTANT_EVALUATED) && !defined(_LIBCUDACXX_HAS_NO_CONSTEXPR_COMPLEX_OPERATIONS) -# if _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) - if (false) -# else // _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) if (_CCCL_BUILTIN_IS_CONSTANT_EVALUATED()) -# endif // _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) { if (_CUDA_VSTD::isnan(__x)) { @@ -677,11 +673,7 @@ _LIBCUDACXX_HIDE_FROM_ABI _CCCL_CONSTEXPR_CXX14_COMPLEX float __constexpr_fmax(f _LIBCUDACXX_HIDE_FROM_ABI _CCCL_CONSTEXPR_CXX14_COMPLEX double __constexpr_fmax(double __x, double __y) noexcept { # if defined(_CCCL_BUILTIN_IS_CONSTANT_EVALUATED) && !defined(_LIBCUDACXX_HAS_NO_CONSTEXPR_COMPLEX_OPERATIONS) -# if _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) - if (false) -# else // _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) if (_CCCL_BUILTIN_IS_CONSTANT_EVALUATED()) -# endif // _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) { if (_CUDA_VSTD::isnan(__x)) { @@ -702,11 +694,7 @@ _LIBCUDACXX_HIDE_FROM_ABI _CCCL_CONSTEXPR_CXX14_COMPLEX long double __constexpr_fmax(long double __x, long double __y) noexcept { # if defined(_CCCL_BUILTIN_IS_CONSTANT_EVALUATED) && !defined(_LIBCUDACXX_HAS_NO_CONSTEXPR_COMPLEX_OPERATIONS) -# if _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) - if (false) -# else // _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) if (_CCCL_BUILTIN_IS_CONSTANT_EVALUATED()) -# endif // _CCCL_COMPILER(ICC) && _NV_ISEMPTY(_CCCL_CONSTEXPR_CXX14_COMPLEX) { if (_CUDA_VSTD::isnan(__x)) { diff --git a/libcudacxx/test/internal_headers/CMakeLists.txt b/libcudacxx/test/internal_headers/CMakeLists.txt index cca23ef3575..cbb4ccce057 100644 --- a/libcudacxx/test/internal_headers/CMakeLists.txt +++ b/libcudacxx/test/internal_headers/CMakeLists.txt @@ -58,9 +58,6 @@ function(libcudacxx_create_internal_header_test header_name, headertest_src, fal target_compile_definitions(headertest_${header_name} PRIVATE "-D${fallback}") endif() target_compile_definitions(headertest_${header_name} PRIVATE "-DLIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE") - if (CCCL_SUPPRESS_ICC_DEPRECATION_WARNING) - target_compile_definitions(headertest_${header_name} PRIVATE CCCL_SUPPRESS_ICC_DEPRECATION_WARNING) - endif() if (CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) target_compile_definitions(headertest_${header_name} PRIVATE CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) endif() diff --git a/libcudacxx/test/libcudacxx/CMakeLists.txt b/libcudacxx/test/libcudacxx/CMakeLists.txt index 47a3bbd4458..e6d1754d2ef 100644 --- a/libcudacxx/test/libcudacxx/CMakeLists.txt +++ b/libcudacxx/test/libcudacxx/CMakeLists.txt @@ -54,14 +54,6 @@ if (MSVC) set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded) endif() -# Intel OneAPI compiler has fast math enabled by default which breaks almost all floating point tests -if (${CMAKE_CXX_COMPILER_ID} STREQUAL "IntelLLVM" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel") - string(APPEND LIBCUDACXX_TEST_COMPILER_FLAGS " --compiler-options=-fno-fast-math") -endif() - -if (CCCL_SUPPRESS_ICC_DEPRECATION_WARNING) - string(APPEND LIBCUDACXX_TEST_COMPILER_FLAGS " -DCCCL_SUPPRESS_ICC_DEPRECATION_WARNING") -endif() if (CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) string(APPEND LIBCUDACXX_TEST_COMPILER_FLAGS " -DCCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING") endif() diff --git a/libcudacxx/test/libcudacxx/cuda/type_list.pass.cpp b/libcudacxx/test/libcudacxx/cuda/type_list.pass.cpp index 4b94926e72e..5c5d99755be 100644 --- a/libcudacxx/test/libcudacxx/cuda/type_list.pass.cpp +++ b/libcudacxx/test/libcudacxx/cuda/type_list.pass.cpp @@ -16,7 +16,7 @@ #include #include -#if _CCCL_COMPILER(ICC) || _CCCL_CUDA_COMPILER(NVCC) || _CCCL_COMPILER(NVRTC) || _CCCL_CUDA_COMPILER(CLANG) +#if _CCCL_CUDA_COMPILER(NVCC) || _CCCL_COMPILER(NVRTC) || _CCCL_CUDA_COMPILER(CLANG) // These compilers have trouble making substitution failures during // alias template instantiation non-fatal. # define SKIP_SFINAE_TESTS diff --git a/libcudacxx/test/libcudacxx/libcxx/atomics/libcpp-has-no-threads.fail.cpp b/libcudacxx/test/libcudacxx/libcxx/atomics/libcpp-has-no-threads.fail.cpp index 0ece946d920..1f4c01e3747 100644 --- a/libcudacxx/test/libcudacxx/libcxx/atomics/libcpp-has-no-threads.fail.cpp +++ b/libcudacxx/test/libcudacxx/libcxx/atomics/libcpp-has-no-threads.fail.cpp @@ -14,8 +14,8 @@ // .fail. expects compilation to fail, but this would only fail at runtime with NVRTC // UNSUPPORTED: nvrtc -// nvcc doesn't propagate nvhpc's or icc's preprocessor failures -// UNSUPPORTED: nvhpc, icc +// nvcc doesn't propagate nvhpc's preprocessor failures +// UNSUPPORTED: nvhpc // MODULES_DEFINES: _LIBCUDACXX_HAS_NO_THREADS #ifndef _LIBCUDACXX_HAS_NO_THREADS diff --git a/libcudacxx/test/libcudacxx/std/atomics/atomics.flag/atomic_flag_test_and_set_explicit.pass.cpp b/libcudacxx/test/libcudacxx/std/atomics/atomics.flag/atomic_flag_test_and_set_explicit.pass.cpp index 401e6cff1b3..d9849291883 100644 --- a/libcudacxx/test/libcudacxx/std/atomics/atomics.flag/atomic_flag_test_and_set_explicit.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/atomics/atomics.flag/atomic_flag_test_and_set_explicit.pass.cpp @@ -32,7 +32,6 @@ __host__ __device__ void test() assert(atomic_flag_test_and_set_explicit(&f, cuda::std::memory_order_relaxed) == 0); assert(f.test_and_set() == 1); } -#ifndef TEST_COMPILER_ICC { Selector sel; cuda::std::atomic_flag& f = *sel.construct(); @@ -40,7 +39,6 @@ __host__ __device__ void test() assert(atomic_flag_test_and_set_explicit(&f, cuda::std::memory_order_consume) == 0); assert(f.test_and_set() == 1); } -#endif { Selector sel; cuda::std::atomic_flag& f = *sel.construct(); @@ -76,7 +74,6 @@ __host__ __device__ void test() assert(atomic_flag_test_and_set_explicit(&f, cuda::std::memory_order_relaxed) == 0); assert(f.test_and_set() == 1); } -#ifndef TEST_COMPILER_ICC { Selector sel; volatile cuda::std::atomic_flag& f = *sel.construct(); @@ -84,7 +81,6 @@ __host__ __device__ void test() assert(atomic_flag_test_and_set_explicit(&f, cuda::std::memory_order_consume) == 0); assert(f.test_and_set() == 1); } -#endif { Selector sel; volatile cuda::std::atomic_flag& f = *sel.construct(); diff --git a/libcudacxx/test/libcudacxx/std/atomics/atomics.flag/test_and_set.pass.cpp b/libcudacxx/test/libcudacxx/std/atomics/atomics.flag/test_and_set.pass.cpp index c62a8ec3090..d8375d960a7 100644 --- a/libcudacxx/test/libcudacxx/std/atomics/atomics.flag/test_and_set.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/atomics/atomics.flag/test_and_set.pass.cpp @@ -39,7 +39,6 @@ __host__ __device__ void test() assert(f.test_and_set(cuda::std::memory_order_relaxed) == 0); assert(f.test_and_set(cuda::std::memory_order_relaxed) == 1); } -#ifndef TEST_COMPILER_ICC { Selector sel; cuda::std::atomic_flag& f = *sel.construct(); @@ -47,7 +46,6 @@ __host__ __device__ void test() assert(f.test_and_set(cuda::std::memory_order_consume) == 0); assert(f.test_and_set(cuda::std::memory_order_consume) == 1); } -#endif { Selector sel; cuda::std::atomic_flag& f = *sel.construct(); @@ -90,7 +88,6 @@ __host__ __device__ void test() assert(f.test_and_set(cuda::std::memory_order_relaxed) == 0); assert(f.test_and_set(cuda::std::memory_order_relaxed) == 1); } -#ifndef TEST_COMPILER_ICC { Selector sel; volatile cuda::std::atomic_flag& f = *sel.construct(); @@ -98,7 +95,6 @@ __host__ __device__ void test() assert(f.test_and_set(cuda::std::memory_order_consume) == 0); assert(f.test_and_set(cuda::std::memory_order_consume) == 1); } -#endif { Selector sel; volatile cuda::std::atomic_flag& f = *sel.construct(); diff --git a/libcudacxx/test/libcudacxx/std/containers/sequences/array/iterators.pass.cpp b/libcudacxx/test/libcudacxx/std/containers/sequences/array/iterators.pass.cpp index ee800a4da6c..576a5f90457 100644 --- a/libcudacxx/test/libcudacxx/std/containers/sequences/array/iterators.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/containers/sequences/array/iterators.pass.cpp @@ -78,7 +78,7 @@ __host__ __device__ check_noexcept(array); typename C::iterator i = array.begin(); typename C::const_iterator j = array.cbegin(); -#if !defined(TEST_COMPILER_CUDACC_BELOW_11_3) && !defined(TEST_COMPILER_ICC) // seems there are different nullptr's +#if !defined(TEST_COMPILER_CUDACC_BELOW_11_3) // seems there are different nullptr's assert(i == j); #else // ^^^ !TEST_COMPILER_CUDACC_BELOW_11_3 ^^^ / vvv TEST_COMPILER_CUDACC_BELOW_11_3 vvv assert(i == nullptr); @@ -147,8 +147,7 @@ __host__ __device__ assert(ii1 == ii4); static_assert(cuda::std::is_same_v, ""); static_assert(cuda::std::is_same_v, ""); -# if !defined(TEST_COMPILER_CUDACC_BELOW_11_3) && !defined(TEST_COMPILER_ICC) // old NVCC has issues comparing int* - // with const int* +# if !defined(TEST_COMPILER_CUDACC_BELOW_11_3) // old NVCC has issues comparing int* with const int* assert(ii1 == cii); # else // ^^^ !TEST_COMPILER_CUDACC_BELOW_11_3 ^^^ / vvv TEST_COMPILER_CUDACC_BELOW_11_3 vvv assert(ii1 == nullptr); @@ -156,8 +155,7 @@ __host__ __device__ # endif // TEST_COMPILER_CUDACC_BELOW_11_3 assert(!(ii1 != ii2)); -# if !defined(TEST_COMPILER_CUDACC_BELOW_11_3) && !defined(TEST_COMPILER_ICC) // old NVCC has issues comparing int* - // with const int* +# if !defined(TEST_COMPILER_CUDACC_BELOW_11_3) // old NVCC has issues comparing int* with const int* assert(!(ii1 != cii)); # endif // TEST_COMPILER_CUDACC_BELOW_11_3 @@ -265,11 +263,9 @@ __host__ __device__ int main(int, char**) { tests(); -#ifndef TEST_COMPILER_ICC -# if TEST_STD_VER >= 2014 && defined(_CCCL_BUILTIN_IS_CONSTANT_EVALUATED) \ - && (!defined(TEST_COMPILER_GCC) || __GNUC__ > 8) +#if TEST_STD_VER >= 2014 && defined(_CCCL_BUILTIN_IS_CONSTANT_EVALUATED) \ + && (!defined(TEST_COMPILER_GCC) || __GNUC__ > 8) static_assert(tests(), ""); -# endif // TEST_STD_VER >= 2014 && defined(_CCCL_BUILTIN_IS_CONSTANT_EVALUATED) -#endif // TEST_COMPILER_ICC +#endif // TEST_STD_VER >= 2014 && defined(_CCCL_BUILTIN_IS_CONSTANT_EVALUATED) return 0; } diff --git a/libcudacxx/test/libcudacxx/std/iterators/iterator.requirements/iterator.cust/iterator.cust.move/iter_move.pass.cpp b/libcudacxx/test/libcudacxx/std/iterators/iterator.requirements/iterator.cust/iterator.cust.move/iter_move.pass.cpp index 7d9e1200dca..f86a0b27eed 100644 --- a/libcudacxx/test/libcudacxx/std/iterators/iterator.requirements/iterator.cust/iterator.cust.move/iter_move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/iterators/iterator.requirements/iterator.cust/iterator.cust.move/iter_move.pass.cpp @@ -80,9 +80,7 @@ __host__ __device__ constexpr void unqualified_lookup_move(It first_, It last_, auto result_first = ::check_unqualified_lookup::unqualified_lookup_wrapper{cuda::std::move(result_first_)}; auto result_last = ::check_unqualified_lookup::unqualified_lookup_wrapper{cuda::std::move(result_last_)}; -#ifndef TEST_COMPILER_ICC static_assert(!noexcept(cuda::std::ranges::iter_move(first)), "unqualified-lookup case not being chosen"); -#endif // TEST_COMPILER_ICC for (; first != last && result_first != result_last; (void) ++first, ++result_first) { @@ -98,11 +96,9 @@ __host__ __device__ constexpr void lvalue_move(It first_, It last_, Out result_f auto result_first = iterator_wrapper{cuda::std::move(result_first_)}; auto result_last = iterator_wrapper{cuda::std::move(result_last_)}; -#ifndef TEST_COMPILER_ICC static_assert(!noexcept(cuda::std::ranges::iter_move(first)), "`operator*() const&` is not noexcept, and there's no hidden " "friend iter_move."); -#endif // TEST_COMPILER_ICC for (; first != last && result_first != result_last; (void) ++first, ++result_first) { @@ -226,9 +222,7 @@ __host__ __device__ constexpr bool test() auto unscoped = check_unqualified_lookup::unscoped_enum::a; assert(cuda::std::ranges::iter_move(unscoped) == check_unqualified_lookup::unscoped_enum::a); -#ifndef TEST_COMPILER_ICC assert(!noexcept(cuda::std::ranges::iter_move(unscoped))); -#endif // TEST_COMPILER_ICC auto scoped = check_unqualified_lookup::scoped_enum::a; assert(cuda::std::ranges::iter_move(scoped) == nullptr); @@ -236,18 +230,16 @@ __host__ __device__ constexpr bool test() auto some_union = check_unqualified_lookup::some_union{0}; assert(cuda::std::ranges::iter_move(some_union) == 0); -#ifndef TEST_COMPILER_ICC assert(!noexcept(cuda::std::ranges::iter_move(some_union))); // Check noexcept-correctness static_assert(noexcept(cuda::std::ranges::iter_move(cuda::std::declval>())), ""); static_assert(noexcept(cuda::std::ranges::iter_move(cuda::std::declval>())), ""); // old GCC seems to fall over the chaining of the noexcept clauses here -# if (!defined(TEST_COMPILER_GCC) || __GNUC__ >= 9) +#if (!defined(TEST_COMPILER_GCC) || __GNUC__ >= 9) static_assert(!noexcept(cuda::std::ranges::iter_move(cuda::std::declval>())), ""); static_assert(!noexcept(cuda::std::ranges::iter_move(cuda::std::declval>())), ""); -# endif -#endif // TEST_COMPILER_ICC +#endif return true; } diff --git a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_move.pass.cpp b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_move.pass.cpp index b4c8cdfa69d..a8dd32f1e18 100644 --- a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_move.pass.cpp @@ -49,9 +49,7 @@ struct MaybeNoexceptMove using ThrowingBase = MaybeNoexceptMove; using NoexceptBase = MaybeNoexceptMove; static_assert(cuda::std::input_iterator); -#ifndef TEST_COMPILER_ICC ASSERT_NOT_NOEXCEPT(cuda::std::ranges::iter_move(cuda::std::declval())); -#endif // TEST_COMPILER_ICC ASSERT_NOEXCEPT(cuda::std::ranges::iter_move(cuda::std::declval())); __host__ __device__ constexpr bool test() @@ -82,10 +80,8 @@ __host__ __device__ constexpr bool test() // Check the `noexcept` specification. { -#ifndef TEST_COMPILER_ICC using ThrowingIter = cuda::std::move_iterator; ASSERT_NOT_NOEXCEPT(iter_move(cuda::std::declval())); -#endif // TEST_COMPILER_ICC using NoexceptIter = cuda::std::move_iterator; ASSERT_NOEXCEPT(iter_move(cuda::std::declval())); } diff --git a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_swap.pass.cpp b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_swap.pass.cpp index ef62110918a..7a43631d027 100644 --- a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/iter_swap.pass.cpp @@ -44,13 +44,11 @@ struct MaybeNoexceptSwap using ThrowingBase = MaybeNoexceptSwap; using NoexceptBase = MaybeNoexceptSwap; static_assert(cuda::std::input_iterator); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT( cuda::std::ranges::iter_swap(cuda::std::declval(), cuda::std::declval())); -# if !defined(TEST_COMPILER_MSVC_2017) // MSVC2017 gets confused by the two friends and only considers the first +#if !defined(TEST_COMPILER_MSVC_2017) // MSVC2017 gets confused by the two friends and only considers the first ASSERT_NOEXCEPT(cuda::std::ranges::iter_swap(cuda::std::declval(), cuda::std::declval())); -# endif // !TEST_COMPILER_MSVC_2017 -#endif // & !TEST_COMPILER_ICC +#endif // !TEST_COMPILER_MSVC_2017 __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { @@ -84,14 +82,12 @@ __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() // Check the `noexcept` specification. { -#if !defined(TEST_COMPILER_ICC) using ThrowingIter = cuda::std::move_iterator; ASSERT_NOT_NOEXCEPT(iter_swap(cuda::std::declval(), cuda::std::declval())); -# if !defined(TEST_COMPILER_MSVC_2017) // MSVC2017 gets confused by the two friends and only considers the first +#if !defined(TEST_COMPILER_MSVC_2017) // MSVC2017 gets confused by the two friends and only considers the first using NoexceptIter = cuda::std::move_iterator; ASSERT_NOEXCEPT(iter_swap(cuda::std::declval(), cuda::std::declval())); -# endif // !TEST_COMPILER_MSVC_2017 -#endif // !TEST_COMPILER_ICC +#endif // !TEST_COMPILER_MSVC_2017 } return true; diff --git a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.advance_back/difference_type.pass.cpp b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.advance_back/difference_type.pass.cpp index 621d7470f95..0112c5d475c 100644 --- a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.advance_back/difference_type.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.advance_back/difference_type.pass.cpp @@ -38,14 +38,12 @@ int main(int, char**) test(s + 5, 5, s); #if TEST_STD_VER > 2011 -# ifndef TEST_COMPILER_ICC { constexpr const char* p = "123456789"; constexpr auto it1 = cuda::std::make_move_iterator(p); constexpr auto it2 = cuda::std::make_move_iterator(p + 5) -= 5; static_assert(it1 == it2, ""); } -# endif // TEST_COMPILER_ICC #endif // TEST_STD_VER > 2011 return 0; diff --git a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op_advance/difference_type.pass.cpp b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op_advance/difference_type.pass.cpp index 73b3780d95c..a230ea9b3b5 100644 --- a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op_advance/difference_type.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op_advance/difference_type.pass.cpp @@ -43,14 +43,10 @@ int main(int, char**) typedef cuda::std::move_iterator MI; constexpr MI it1 = cuda::std::make_move_iterator(p); constexpr MI it2 = cuda::std::make_move_iterator(p + 5); -# ifndef TEST_COMPILER_ICC constexpr MI it3 = cuda::std::make_move_iterator(p) += 5; -# endif // TEST_COMPILER_ICC static_assert(it1 != it2, ""); -# ifndef TEST_COMPILER_ICC static_assert(it1 != it3, ""); static_assert(it2 == it3, ""); -# endif // TEST_COMPILER_ICC } #endif diff --git a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_move.pass.cpp b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_move.pass.cpp index 7c03921a628..4312519bf7a 100644 --- a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_move.pass.cpp @@ -83,12 +83,10 @@ __host__ __device__ constexpr bool test() }; static_assert(cuda::std::bidirectional_iterator); -# ifndef TEST_COMPILER_ICC static_assert(!cuda::std::is_nothrow_copy_constructible_v); ASSERT_NOEXCEPT(cuda::std::ranges::iter_move(--cuda::std::declval())); using RI = cuda::std::reverse_iterator; ASSERT_NOT_NOEXCEPT(iter_move(cuda::std::declval())); -# endif // TEST_COMPILER_ICC } { @@ -121,11 +119,9 @@ __host__ __device__ constexpr bool test() static_assert(cuda::std::bidirectional_iterator); static_assert(cuda::std::is_nothrow_copy_constructible_v); -# ifndef TEST_COMPILER_ICC ASSERT_NOT_NOEXCEPT(cuda::std::ranges::iter_move(--cuda::std::declval())); using RI = cuda::std::reverse_iterator; ASSERT_NOT_NOEXCEPT(iter_move(cuda::std::declval())); -# endif // TEST_COMPILER_ICC } { diff --git a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_swap.pass.cpp b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_swap.pass.cpp index 96401f96991..d476ad66253 100644 --- a/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/iter_swap.pass.cpp @@ -148,9 +148,7 @@ __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { static_assert(cuda::std::bidirectional_iterator); -#ifndef TEST_COMPILER_ICC static_assert(!cuda::std::is_nothrow_copy_constructible_v); -#endif // TEST_COMPILER_ICC static_assert(cuda::std::is_nothrow_copy_constructible_v); #if TEST_STD_VER > 2017 ASSERT_NOEXCEPT(cuda::std::ranges::iter_swap( @@ -158,10 +156,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() #endif using RI1 = cuda::std::reverse_iterator; using RI2 = cuda::std::reverse_iterator; -#ifndef TEST_COMPILER_ICC ASSERT_NOT_NOEXCEPT(iter_swap(cuda::std::declval(), cuda::std::declval())); ASSERT_NOT_NOEXCEPT(iter_swap(cuda::std::declval(), cuda::std::declval())); -#endif // TEST_COMPILER_ICC } { @@ -175,10 +171,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() #endif using RI1 = cuda::std::reverse_iterator; using RI2 = cuda::std::reverse_iterator; -#ifndef TEST_COMPILER_ICC ASSERT_NOT_NOEXCEPT(iter_swap(cuda::std::declval(), cuda::std::declval())); ASSERT_NOT_NOEXCEPT(iter_swap(cuda::std::declval(), cuda::std::declval())); -#endif // TEST_COMPILER_ICC } { diff --git a/libcudacxx/test/libcudacxx/std/ranges/range.access/begin.pass.cpp b/libcudacxx/test/libcudacxx/std/ranges/range.access/begin.pass.cpp index 4ef151bf3d8..45c97e3db4b 100644 --- a/libcudacxx/test/libcudacxx/std/ranges/range.access/begin.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/ranges/range.access/begin.pass.cpp @@ -405,14 +405,12 @@ static_assert(noexcept(cuda::std::ranges::begin(ntab)), ""); static_assert(noexcept(cuda::std::ranges::cbegin(ntab)), ""); #endif // TEST_STD_VER > 2014 && !TEST_COMPILER_MSVC_2019 -#if !defined(TEST_COMPILER_ICC) _CCCL_GLOBAL_CONSTANT struct NoThrowMemberBeginReturnsRef { __host__ __device__ ThrowingIterator& begin() const noexcept; // auto(t.begin()) may throw } ntmbrr; static_assert(!noexcept(cuda::std::ranges::begin(ntmbrr)), ""); static_assert(!noexcept(cuda::std::ranges::cbegin(ntmbrr)), ""); -#endif // !TEST_COMPILER_ICC _CCCL_GLOBAL_CONSTANT struct BeginReturnsArrayRef { @@ -454,9 +452,7 @@ int main(int, char**) unused(ntmb); unused(ntab); #endif // TEST_STD_VER > 2014 && !TEST_COMPILER_MSVC_2019 -#if !defined(TEST_COMPILER_ICC) unused(ntmbrr); -#endif // !TEST_COMPILER_ICC unused(brar); return 0; diff --git a/libcudacxx/test/libcudacxx/std/ranges/range.access/empty.pass.cpp b/libcudacxx/test/libcudacxx/std/ranges/range.access/empty.pass.cpp index 09c826afc4a..20d6a0b66b7 100644 --- a/libcudacxx/test/libcudacxx/std/ranges/range.access/empty.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/ranges/range.access/empty.pass.cpp @@ -95,7 +95,7 @@ struct BoolConvertibleReturnType } }; // old GCC seems to fall over the chaining of the noexcept clauses here -#if (!defined(TEST_COMPILER_GCC) || __GNUC__ >= 9) && !defined(TEST_COMPILER_MSVC) && !defined(TEST_COMPILER_ICC) +#if (!defined(TEST_COMPILER_GCC) || __GNUC__ >= 9) && !defined(TEST_COMPILER_MSVC) static_assert(!noexcept(cuda::std::ranges::empty(BoolConvertibleReturnType()))); #endif // (!defined(TEST_COMPILER_GCC) || __GNUC__ >= 9) diff --git a/libcudacxx/test/libcudacxx/std/ranges/range.access/end.pass.cpp b/libcudacxx/test/libcudacxx/std/ranges/range.access/end.pass.cpp index 665f5a744c9..0e132c929e8 100644 --- a/libcudacxx/test/libcudacxx/std/ranges/range.access/end.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/ranges/range.access/end.pass.cpp @@ -459,7 +459,6 @@ static_assert(noexcept(cuda::std::ranges::end(ntae)), ""); static_assert(noexcept(cuda::std::ranges::cend(ntae)), ""); #endif // TEST_STD_VER > 2014 && !TEST_COMPILER_MSVC_2019 -#if !defined(TEST_COMPILER_ICC) _CCCL_GLOBAL_CONSTANT struct NoThrowMemberEndReturnsRef { __host__ __device__ ThrowingIterator begin() const; @@ -467,7 +466,6 @@ _CCCL_GLOBAL_CONSTANT struct NoThrowMemberEndReturnsRef } ntmerr; static_assert(!noexcept(cuda::std::ranges::end(ntmerr)), ""); static_assert(!noexcept(cuda::std::ranges::cend(ntmerr)), ""); -#endif // !TEST_COMPILER_ICC _CCCL_GLOBAL_CONSTANT struct EndReturnsArrayRef { @@ -510,9 +508,7 @@ int main(int, char**) unused(ntme); unused(ntae); #endif // TEST_STD_VER > 2014 && !TEST_COMPILER_MSVC_2019 -#if !defined(TEST_COMPILER_ICC) unused(ntmerr); -#endif // !TEST_COMPILER_ICC unused(erar); return 0; diff --git a/libcudacxx/test/libcudacxx/std/ranges/range.access/rbegin.pass.cpp b/libcudacxx/test/libcudacxx/std/ranges/range.access/rbegin.pass.cpp index 373ac14a954..c36c374fde6 100644 --- a/libcudacxx/test/libcudacxx/std/ranges/range.access/rbegin.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/ranges/range.access/rbegin.pass.cpp @@ -587,14 +587,12 @@ static_assert(noexcept(cuda::std::ranges::rbegin(ntab))); static_assert(noexcept(cuda::std::ranges::crbegin(ntab))); #endif // !TEST_COMPILER_MSVC_2019 -#if !defined(TEST_COMPILER_ICC) _CCCL_GLOBAL_CONSTANT struct NoThrowMemberRBeginReturnsRef { __host__ __device__ ThrowingIterator& rbegin() const noexcept; // auto(t.rbegin()) may throw } ntmbrr; static_assert(!noexcept(cuda::std::ranges::rbegin(ntmbrr))); static_assert(!noexcept(cuda::std::ranges::crbegin(ntmbrr))); -#endif // !TEST_COMPILER_ICC _CCCL_GLOBAL_CONSTANT struct RBeginReturnsArrayRef { @@ -603,7 +601,6 @@ _CCCL_GLOBAL_CONSTANT struct RBeginReturnsArrayRef static_assert(noexcept(cuda::std::ranges::rbegin(brar))); static_assert(noexcept(cuda::std::ranges::crbegin(brar))); -#if !defined(TEST_COMPILER_ICC) _CCCL_GLOBAL_CONSTANT struct NoThrowBeginThrowingEnd { __host__ __device__ int* begin() const noexcept; @@ -611,7 +608,6 @@ _CCCL_GLOBAL_CONSTANT struct NoThrowBeginThrowingEnd } ntbte; static_assert(!noexcept(cuda::std::ranges::rbegin(ntbte))); static_assert(!noexcept(cuda::std::ranges::crbegin(ntbte))); -#endif // !TEST_COMPILER_ICC _CCCL_GLOBAL_CONSTANT struct NoThrowEndThrowingBegin { @@ -657,13 +653,9 @@ int main(int, char**) unused(ntmb); unused(ntab); #endif // !TEST_COMPILER_MSVC_2019 -#if !defined(TEST_COMPILER_ICC) unused(ntmbrr); -#endif // !TEST_COMPILER_ICC unused(brar); -#if !defined(TEST_COMPILER_ICC) unused(ntbte); -#endif // !TEST_COMPILER_ICC unused(ntetb); return 0; diff --git a/libcudacxx/test/libcudacxx/std/ranges/range.access/rend.pass.cpp b/libcudacxx/test/libcudacxx/std/ranges/range.access/rend.pass.cpp index 239b9d53873..3deea8bbfca 100644 --- a/libcudacxx/test/libcudacxx/std/ranges/range.access/rend.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/ranges/range.access/rend.pass.cpp @@ -647,7 +647,6 @@ static_assert(noexcept(cuda::std::ranges::rend(ntare))); static_assert(noexcept(cuda::std::ranges::crend(ntare))); #endif // !TEST_COMPILER_MSVC_2019 -#if !defined(TEST_COMPILER_ICC) _CCCL_GLOBAL_CONSTANT struct NoThrowMemberREndReturnsRef { __host__ __device__ ThrowingIterator rbegin() const; @@ -655,7 +654,6 @@ _CCCL_GLOBAL_CONSTANT struct NoThrowMemberREndReturnsRef } ntmrerr; static_assert(!noexcept(cuda::std::ranges::rend(ntmrerr))); static_assert(!noexcept(cuda::std::ranges::crend(ntmrerr))); -#endif // !TEST_COMPILER_ICC _CCCL_GLOBAL_CONSTANT struct REndReturnsArrayRef { @@ -673,7 +671,6 @@ _CCCL_GLOBAL_CONSTANT struct NoThrowBeginThrowingEnd static_assert(noexcept(cuda::std::ranges::rend(ntbte))); static_assert(noexcept(cuda::std::ranges::crend(ntbte))); -#if !defined(TEST_COMPILER_ICC) _CCCL_GLOBAL_CONSTANT struct NoThrowEndThrowingBegin { __host__ __device__ int* begin() const; @@ -681,7 +678,6 @@ _CCCL_GLOBAL_CONSTANT struct NoThrowEndThrowingBegin } ntetb; static_assert(!noexcept(cuda::std::ranges::rend(ntetb))); static_assert(!noexcept(cuda::std::ranges::crend(ntetb))); -#endif // !TEST_COMPILER_ICC #if TEST_STD_VER > 2017 // Test ADL-proofing. @@ -719,14 +715,10 @@ int main(int, char**) unused(ntmre); unused(ntare); #endif // !TEST_COMPILER_MSVC_2019 -#if !defined(TEST_COMPILER_ICC) unused(ntmrerr); -#endif // !TEST_COMPILER_ICC unused(rerar); unused(ntbte); -#if !defined(TEST_COMPILER_ICC) unused(ntetb); -#endif // !TEST_COMPILER_ICC return 0; } diff --git a/libcudacxx/test/libcudacxx/std/ranges/range.utility/range.subrange/lwg3470.pass.cpp b/libcudacxx/test/libcudacxx/std/ranges/range.utility/range.subrange/lwg3470.pass.cpp index 5ec15fd10d7..880094e5d44 100644 --- a/libcudacxx/test/libcudacxx/std/ranges/range.utility/range.subrange/lwg3470.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/ranges/range.utility/range.subrange/lwg3470.pass.cpp @@ -9,7 +9,6 @@ // UNSUPPORTED: c++03, c++11, c++14 // UNSUPPORTED: msvc-19.16 -// UNSUPPORTED: icc // gcc is unable to get the construction of b right // UNSUPPORTED: gcc-7, gcc-8, gcc-9 diff --git a/libcudacxx/test/libcudacxx/std/ranges/range.utility/view.interface/view.interface.pass.cpp b/libcudacxx/test/libcudacxx/std/ranges/range.utility/view.interface/view.interface.pass.cpp index 9fe2e1ce31b..18c1dfa25de 100644 --- a/libcudacxx/test/libcudacxx/std/ranges/range.utility/view.interface/view.interface.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/ranges/range.utility/view.interface/view.interface.pass.cpp @@ -313,7 +313,7 @@ __host__ __device__ constexpr bool testEmpty() BoolConvertibleComparison boolConv{}; // old GCC seems to fall over the noexcept clauses here -#if (!defined(TEST_COMPILER_GCC) || __GNUC__ >= 9) && (!defined(TEST_COMPILER_MSVC)) && (!defined(TEST_COMPILER_ICC)) +#if (!defined(TEST_COMPILER_GCC) || __GNUC__ >= 9) && (!defined(TEST_COMPILER_MSVC)) ASSERT_NOT_NOEXCEPT(boolConv.empty()); #endif diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.U.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.U.pass.cpp index af88bf4c7b2..589df89149d 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.U.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.U.pass.cpp @@ -100,12 +100,10 @@ static_assert( static_assert( cuda::std::is_assignable_v, MaybeNoexcept>&, int>, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_constructible_v && !is_nothrow_move_constructible_v && // !is_nothrow_move_constructible_v static_assert( !cuda::std::is_assignable_v, MaybeNoexcept>&, int>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.copy.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.copy.pass.cpp index 4823f6c7745..483dec3c1cc 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.copy.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.copy.pass.cpp @@ -85,12 +85,10 @@ static_assert(cuda::std::is_copy_assignable_v && !is_nothrow_move_constructible_v static_assert(cuda::std::is_copy_assignable_v>, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_constructible_v && !is_nothrow_move_constructible_v static_assert( cuda::std::__expected_can_copy_assign == cuda::std::__smf_availability::__deleted, ""); static_assert(!cuda::std::is_copy_assignable_v>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.move.pass.cpp index 61c446ea53c..0bb51efeb9e 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.move.pass.cpp @@ -83,10 +83,8 @@ static_assert(cuda::std::is_move_assignable_v && !is_nothrow_move_constructible_v static_assert(cuda::std::is_move_assignable_v>, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_constructible_v && !is_nothrow_move_constructible_v static_assert(!cuda::std::is_move_assignable_v>, ""); -#endif // TEST_COMPILER_ICC struct MoveAssignMayThrow { @@ -100,7 +98,6 @@ struct MoveAssignMayThrow // Test noexcept static_assert(cuda::std::is_nothrow_move_assignable_v>, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_assignable_v static_assert(!cuda::std::is_nothrow_move_assignable_v>, ""); @@ -112,7 +109,6 @@ static_assert(!cuda::std::is_nothrow_move_assignable_v static_assert(!cuda::std::is_nothrow_move_assignable_v>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.unexpected.copy.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.unexpected.copy.pass.cpp index 7569166bb4d..483eadff86c 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.unexpected.copy.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.unexpected.copy.pass.cpp @@ -103,13 +103,11 @@ static_assert(cuda::std::is_assignable_v && !is_nothrow_move_constructible_v && // !is_nothrow_move_constructible_v static_assert(!cuda::std::is_assignable_v, MaybeNoexcept>&, const cuda::std::unexpected&>, ""); -# endif // TEST_COMPILER_ICC #endif // TEST_COMPILER_MSVC_2017 __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.unexpected.move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.unexpected.move.pass.cpp index db8ed0e6c0e..055789a88f1 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.unexpected.move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/assign.unexpected.move.pass.cpp @@ -103,13 +103,11 @@ static_assert(cuda::std::is_assignable_v && !is_nothrow_move_constructible_v && // !is_nothrow_move_constructible_v static_assert(!cuda::std::is_assignable_v, MaybeNoexcept>&, cuda::std::unexpected&&>, ""); -# endif // TEST_COMPILER_ICC #endif // !TEST_COMPILER_MSVC_2017 __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/emplace.intializer_list.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/emplace.intializer_list.pass.cpp index 21dcc47f32d..22b7e442ad5 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/emplace.intializer_list.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/emplace.intializer_list.pass.cpp @@ -48,16 +48,12 @@ struct CtorFromInitalizerList static_assert(CanEmplace, int>, cuda::std::initializer_list&>, ""); -#ifndef TEST_COMPILER_ICC static_assert(!CanEmplace, int>, cuda::std::initializer_list&>, ""); -#endif // TEST_COMPILER_ICC static_assert( CanEmplace, int>, cuda::std::initializer_list&, int>, ""); -#ifndef TEST_COMPILER_ICC static_assert( !CanEmplace, int>, cuda::std::initializer_list&, int>, ""); -#endif // TEST_COMPILER_ICC struct Data { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/emplace.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/emplace.pass.cpp index 30b2ec69267..cb5952a3ccd 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/emplace.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/assign/emplace.pass.cpp @@ -49,10 +49,8 @@ struct CtorFromInt static_assert(CanEmplace, int>, int>, ""); static_assert(CanEmplace, int>, int, int>, ""); -#ifndef TEST_COMPILER_ICC static_assert(!CanEmplace, int>, int>, ""); static_assert(!CanEmplace, int>, int, int>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/ctor/ctor.move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/ctor/ctor.move.pass.cpp index cfd5f404f05..a03512a0b22 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/ctor/ctor.move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/ctor/ctor.move.pass.cpp @@ -93,14 +93,12 @@ static_assert(!cuda::std::is_trivially_move_constructible_v>, ""); -#ifndef TEST_COMPILER_ICC // Test: The exception specification is equivalent to // is_nothrow_move_constructible_v && is_nothrow_move_constructible_v. static_assert(cuda::std::is_nothrow_move_constructible_v>, ""); static_assert(!cuda::std::is_nothrow_move_constructible_v>, ""); static_assert(!cuda::std::is_nothrow_move_constructible_v>, ""); static_assert(!cuda::std::is_nothrow_move_constructible_v>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/swap/free.swap.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/swap/free.swap.pass.cpp index 89e06bfbd7f..0fc6dfb5383 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/swap/free.swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/swap/free.swap.pass.cpp @@ -61,15 +61,12 @@ static_assert(cuda::std::is_swappable_v>, // is_nothrow_move_constructible_v && !is_nothrow_move_constructible_v static_assert(cuda::std::is_swappable_v>, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_constructible_v && !is_nothrow_move_constructible_v static_assert(!cuda::std::is_swappable_v>, ""); -#endif // TEST_COMPILER_ICC // Test noexcept static_assert(cuda::std::is_nothrow_swappable_v>, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_constructible_v static_assert(!cuda::std::is_nothrow_swappable_v>, ""); @@ -86,7 +83,6 @@ static_assert(!cuda::std::is_nothrow_swappable_v static_assert(!cuda::std::is_nothrow_swappable_v>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/swap/member.swap.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/swap/member.swap.pass.cpp index c864b9a36a4..e219d76a504 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/swap/member.swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.expected/swap/member.swap.pass.cpp @@ -72,10 +72,8 @@ static_assert(HasMemberSwap, ""); // is_nothrow_move_constructible_v && !is_nothrow_move_constructible_v static_assert(HasMemberSwap, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_constructible_v && !is_nothrow_move_constructible_v static_assert(!HasMemberSwap, ""); -#endif // TEST_COMPILER_ICC // Test noexcept template > @@ -87,7 +85,6 @@ constexpr bool MemberSwapNoexcept = static_assert(MemberSwapNoexcept, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_constructible_v static_assert(!MemberSwapNoexcept, ""); @@ -104,7 +101,6 @@ static_assert(!MemberSwapNoexcept, ""); // !is_nothrow_swappable_v static_assert(!MemberSwapNoexcept, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.unexpected/swap/swap.free.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.unexpected/swap/swap.free.pass.cpp index 98058b00fe0..564ad1f0f55 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.unexpected/swap/swap.free.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.unexpected/swap/swap.free.pass.cpp @@ -42,9 +42,7 @@ constexpr bool ADLSwapNoexcept(), cuda::std::declval())); static_assert(ADLSwapNoexcept>, ""); -#ifndef TEST_COMPILER_ICC static_assert(!ADLSwapNoexcept>, ""); -#endif // TEST_COMPILER_ICC // test constraint struct NonSwappable diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.unexpected/swap/swap.member.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.unexpected/swap/swap.member.pass.cpp index 1e6c3dc7168..c0f77443ebe 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.unexpected/swap/swap.member.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.unexpected/swap/swap.member.pass.cpp @@ -42,9 +42,7 @@ constexpr bool noexcept(cuda::std::declval().swap(cuda::std::declval())); static_assert(MemberSwapNoexcept>, ""); -#ifndef TEST_COMPILER_ICC static_assert(!MemberSwapNoexcept>, ""); -#endif // TEST_COMPILER_ICC struct ADLSwap { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/assign/assign.move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/assign/assign.move.pass.cpp index 6fc626ceb60..d18bdb081a6 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/assign/assign.move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/assign/assign.move.pass.cpp @@ -76,13 +76,11 @@ struct MoveAssignMayThrow // Test noexcept static_assert(cuda::std::is_nothrow_move_assignable_v>, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_assignable_v static_assert(!cuda::std::is_nothrow_move_assignable_v>, ""); // !is_nothrow_move_constructible_v static_assert(!cuda::std::is_nothrow_move_assignable_v>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/assign/assign.unexpected.move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/assign/assign.unexpected.move.pass.cpp index fb58c1cb708..a00e34f44bf 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/assign/assign.unexpected.move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/assign/assign.unexpected.move.pass.cpp @@ -103,13 +103,11 @@ static_assert(cuda::std::is_assignable_v && !is_nothrow_move_constructible_v && // !is_nothrow_move_constructible_v static_assert(!cuda::std::is_assignable_v, MaybeNoexcept>&, cuda::std::unexpected&&>, ""); -# endif // TEST_COMPILER_ICC #endif // !TEST_COMPILER_MSVC_2017 __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/ctor/ctor.move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/ctor/ctor.move.pass.cpp index 15243a43e9f..11b05b7b252 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/ctor/ctor.move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/ctor/ctor.move.pass.cpp @@ -75,13 +75,11 @@ static_assert(!cuda::std::is_move_constructible_v>, ""); static_assert(!cuda::std::is_trivially_move_constructible_v>, ""); -#ifndef TEST_COMPILER_ICC // Test: noexcept(is_nothrow_move_constructible_v) static_assert(cuda::std::is_nothrow_move_constructible_v>, ""); static_assert(!cuda::std::is_nothrow_move_constructible_v>, ""); static_assert(!cuda::std::is_nothrow_move_constructible_v>, ""); static_assert(!cuda::std::is_nothrow_move_constructible_v>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/swap/free.swap.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/swap/free.swap.pass.cpp index ae636f3fff6..d23e5ecb4f0 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/swap/free.swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/swap/free.swap.pass.cpp @@ -51,7 +51,6 @@ struct MoveMayThrow }; static_assert(cuda::std::is_nothrow_swappable_v>, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_constructible_v static_assert(!cuda::std::is_nothrow_swappable_v>, ""); @@ -60,7 +59,6 @@ struct SwapMayThrow __host__ __device__ friend void swap(SwapMayThrow&, SwapMayThrow&) noexcept(false) {} }; static_assert(!cuda::std::is_nothrow_swappable_v>, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/swap/member.swap.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/swap/member.swap.pass.cpp index 3bf0974bb42..e4a7a0676b5 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/swap/member.swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/expected/expected.void/swap/member.swap.pass.cpp @@ -69,7 +69,6 @@ constexpr bool MemberSwapNoexcept = noexcept( static_assert(MemberSwapNoexcept, ""); -#ifndef TEST_COMPILER_ICC // !is_nothrow_move_constructible_v static_assert(!MemberSwapNoexcept, ""); @@ -80,7 +79,6 @@ struct SwapMayThrow // !is_nothrow_swappable_v static_assert(!MemberSwapNoexcept, ""); -#endif // TEST_COMPILER_ICC __host__ __device__ TEST_CONSTEXPR_CXX20 bool test() { diff --git a/libcudacxx/test/libcudacxx/std/utilities/function.objects/func.bind_front/bind_front.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/function.objects/func.bind_front/bind_front.pass.cpp index c91b7a1701b..dd0689a868e 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/function.objects/func.bind_front/bind_front.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/function.objects/func.bind_front/bind_front.pass.cpp @@ -321,11 +321,9 @@ __host__ __device__ constexpr bool test() using X = decltype(cuda::std::bind_front(F{})); static_assert(cuda::std::is_invocable_v); static_assert(cuda::std::is_invocable_v); -# ifndef TEST_COMPILER_ICC -# ifndef TEST_COMPILER_MSVC_2017 // ICE during invoke check +# ifndef TEST_COMPILER_MSVC_2017 // ICE during invoke check static_assert(!cuda::std::is_invocable_v); -# endif // !TEST_COMPILER_MSVC_2017 -# endif // !TEST_COMPILER_ICC +# endif // !TEST_COMPILER_MSVC_2017 static_assert(cuda::std::is_invocable_v); } @@ -342,18 +340,15 @@ __host__ __device__ constexpr bool test() static_assert(cuda::std::is_invocable_v); static_assert(cuda::std::is_invocable_v); static_assert(cuda::std::is_invocable_v); -# ifndef TEST_COMPILER_ICC -# ifndef TEST_COMPILER_MSVC_2017 // ICE during invoke check +# ifndef TEST_COMPILER_MSVC_2017 // ICE during invoke check static_assert(!cuda::std::is_invocable_v); -# endif // !TEST_COMPILER_MSVC_2017 -# endif // !TEST_COMPILER_ICC +# endif // !TEST_COMPILER_MSVC_2017 } } #endif // Some examples by Tim Song -#ifndef TEST_COMPILER_ICC -# ifndef TEST_COMPILER_MSVC_2017 // ICE during invoke check +#ifndef TEST_COMPILER_MSVC_2017 // ICE during invoke check { { struct T @@ -379,8 +374,7 @@ __host__ __device__ constexpr bool test() static_assert(!cuda::std::is_invocable_v); } } -# endif // !TEST_COMPILER_MSVC_2017 -#endif // !TEST_COMPILER_ICC +#endif // !TEST_COMPILER_MSVC_2017 // Test properties of the constructor of the unspecified-type returned by bind_front. { @@ -468,7 +462,7 @@ __host__ __device__ constexpr bool test() takeAnything(); } -#if !defined(TEST_COMPILER_ICC) && !defined(TEST_COMPILER_MSVC_2017) +#if !defined(TEST_COMPILER_MSVC_2017) // Make sure bind_front's unspecified type's operator() is SFINAE-friendly { using T = decltype(cuda::std::bind_front(cuda::std::declval(), 1)); @@ -477,7 +471,7 @@ __host__ __device__ constexpr bool test() static_assert(!cuda::std::is_invocable::value); static_assert(!cuda::std::is_invocable::value); } -#endif // !TEST_COMPILER_ICC && !TEST_COMPILER_MSVC_2017 +#endif // !TEST_COMPILER_MSVC_2017 return true; } diff --git a/libcudacxx/test/libcudacxx/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp index 543914731ed..4a0bca39e16 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp @@ -525,14 +525,13 @@ void throws_in_constructor_test() __host__ __device__ void call_operator_sfinae_test() { -#ifndef TEST_COMPILER_ICC -# if !defined(TEST_COMPILER_MSVC_2017) +#if !defined(TEST_COMPILER_MSVC_2017) { // wrong number of arguments using T = decltype(cuda::std::not_fn(returns_true)); static_assert(cuda::std::is_invocable::value, ""); // callable only with no args static_assert(!cuda::std::is_invocable::value, ""); } -# endif // !TEST_COMPILER_MSVC_2017 +#endif // !TEST_COMPILER_MSVC_2017 { // violates const correctness (member function pointer) using T = decltype(cuda::std::not_fn(&MemFunCallable::return_value_nc)); static_assert(cuda::std::is_invocable::value, ""); @@ -545,7 +544,6 @@ __host__ __device__ void call_operator_sfinae_test() static_assert(cuda::std::is_invocable::value, ""); static_assert(!cuda::std::is_invocable::value, ""); } -#endif // TEST_COMPILER_ICC // NVRTC appears to be unhappy about... the lambda? // but doesn't let me fix it with annotations #ifndef TEST_COMPILER_NVRTC diff --git a/libcudacxx/test/libcudacxx/std/utilities/memory/smartptr/unique.ptr/unique.ptr.create/make_unique.sizezero.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/memory/smartptr/unique.ptr/unique.ptr.create/make_unique.sizezero.pass.cpp index 7364acc438e..4ce14c9acaa 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/memory/smartptr/unique.ptr/unique.ptr.create/make_unique.sizezero.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/memory/smartptr/unique.ptr/unique.ptr.create/make_unique.sizezero.pass.cpp @@ -10,7 +10,6 @@ // This code triggers https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104568 // UNSUPPORTED: msvc // UNSUPPORTED: nvrtc -// UNSUPPORTED: icc // UNSUPPORTED: nvhpc // Test the fix for https://llvm.org/PR54100 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 78fd0c9890a..268d0907907 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 @@ -171,9 +171,7 @@ int main(int, char**) 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, ""); -#ifndef TEST_COMPILER_ICC static_assert(throws_invocable_r(), ""); -#endif // TEST_COMPILER_ICC static_assert(!cuda::std::is_nothrow_invocable(), ""); } { @@ -181,9 +179,7 @@ int main(int, char**) using Fn = CallObject; static_assert(cuda::std::is_nothrow_invocable::value, ""); static_assert(cuda::std::is_nothrow_invocable::value, ""); -#ifndef TEST_COMPILER_ICC static_assert(throws_invocable(), ""); -#endif // TEST_COMPILER_ICC static_assert(!cuda::std::is_nothrow_invocable::value, ""); } { @@ -191,18 +187,14 @@ int main(int, char**) using Fn = CallObject; using Fn2 = CallObject; static_assert(cuda::std::is_nothrow_invocable::value, ""); -#ifndef TEST_COMPILER_ICC static_assert(throws_invocable(), ""); -#endif // TEST_COMPILER_ICC } { // Check that PMD derefs are noexcept using Fn = int(Tag::*); static_assert(cuda::std::is_nothrow_invocable::value, ""); static_assert(cuda::std::is_nothrow_invocable_r::value, ""); -#ifndef TEST_COMPILER_ICC static_assert(throws_invocable_r(), ""); -#endif // TEST_COMPILER_ICC } #if TEST_STD_VER >= 2017 { diff --git a/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_swappable.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_swappable.pass.cpp index 944e7a81fcc..5799a95f8a6 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_swappable.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_swappable.pass.cpp @@ -65,7 +65,6 @@ int main(int, char**) static_assert(!cuda::std::is_nothrow_swappable::value, ""); static_assert(!cuda::std::is_nothrow_swappable::value, ""); } -#ifndef TEST_COMPILER_ICC { // Test that it correctly deduces the noexcept of swap. static_assert(cuda::std::is_nothrow_swappable::value, ""); @@ -73,7 +72,6 @@ int main(int, char**) static_assert(!cuda::std::is_nothrow_swappable::value && cuda::std::is_swappable::value, ""); } -#endif // TEST_COMPILER_ICC { // Test that it doesn't drop the qualifiers static_assert(!cuda::std::is_nothrow_swappable::value, ""); diff --git a/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_swappable_with.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_swappable_with.pass.cpp index f9b8d2afbc2..d6dda4c5327 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_swappable_with.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_nothrow_swappable_with.pass.cpp @@ -61,19 +61,15 @@ int main(int, char**) static_assert(!cuda::std::is_nothrow_swappable_with::value, ""); static_assert(cuda::std::is_nothrow_swappable_with::value, ""); static_assert(cuda::std::is_nothrow_swappable_with::value, ""); -#ifndef TEST_COMPILER_ICC static_assert(cuda::std::is_swappable_with::value && !cuda::std::is_nothrow_swappable_with::value, ""); -#endif // TEST_COMPILER_ICC } { // test that heterogeneous swap is allowed only if both 'swap(A, B)' and // 'swap(B, A)' are valid. static_assert(cuda::std::is_nothrow_swappable_with::value, ""); -#ifndef TEST_COMPILER_ICC static_assert(!cuda::std::is_nothrow_swappable_with::value && cuda::std::is_swappable_with::value, ""); -#endif // TEST_COMPILER_ICC static_assert(!cuda::std::is_nothrow_swappable_with::value, ""); } { diff --git a/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_trivially_copyable_volatile.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_trivially_copyable_volatile.pass.cpp index df0bc927341..8d98dc59c5c 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_trivially_copyable_volatile.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/meta/meta.unary/meta.unary.prop/is_trivially_copyable_volatile.pass.cpp @@ -14,7 +14,6 @@ // qualified types trivially copyable. // XFAIL: clang-3, clang-4, apple-clang-6, apple-clang-7, apple-clang-8, apple-clang-9.0 // XFAIL: gcc-4.8, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9 -// XFAIL: icc // When we marked this XFAIL for MSVC, QA reported that it unexpectedly passed. // When we stopped marking it XFAIL for MSVC, QA reported that it unexpectedly diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.assign/move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.assign/move.pass.cpp index c3019bd8383..b0db6638dbc 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.assign/move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.assign/move.pass.cpp @@ -204,7 +204,6 @@ int main(int, char**) static_assert(cuda::std::is_nothrow_move_assignable>::value, ""); } { -#ifndef TEST_COMPILER_ICC struct ThrowsMove { __host__ __device__ ThrowsMove() noexcept {} @@ -235,7 +234,6 @@ int main(int, char**) } }; static_assert(!cuda::std::is_nothrow_move_assignable>::value, ""); -#endif // TEST_COMPILER_ICC struct NoThrowMove { __host__ __device__ NoThrowMove() noexcept(false) {} diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/default.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/default.pass.cpp index 041168b4c21..65731d66a31 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/default.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/default.pass.cpp @@ -71,9 +71,7 @@ int main(int, char**) test_constexpr>(); test_constexpr>(); #endif -#ifndef TEST_COMPILER_ICC test>(); -#endif // TEST_COMPILER_ICC #if !(defined(TEST_COMPILER_CUDACC_BELOW_11_3) && defined(TEST_COMPILER_CLANG)) static_assert(test_constexpr>(), ""); diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp index 3337936253c..efe1f10f607 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/in_place_t.pass.cpp @@ -116,7 +116,6 @@ int main(int, char**) optional opt(in_place, 5); assert(*opt == 5); } -#ifndef TEST_COMPILER_ICC { const optional opt(in_place); assert(static_cast(opt) == true); @@ -132,7 +131,6 @@ int main(int, char**) assert(static_cast(opt) == true); assert(*opt == X(5, 4)); } -#endif // TEST_COMPILER_ICC #if !(defined(TEST_COMPILER_CUDACC_BELOW_11_3) && defined(TEST_COMPILER_CLANG)) { constexpr optional opt(in_place); diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp index 8058f362982..b55a1a37b7b 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp @@ -213,7 +213,6 @@ int main(int, char**) } #endif // !TEST_HAS_NO_EXCEPTIONS { -#ifndef TEST_COMPILER_ICC struct ThrowsMove { __host__ __device__ ThrowsMove() noexcept(false) {} @@ -221,7 +220,6 @@ int main(int, char**) __host__ __device__ ThrowsMove(ThrowsMove&&) noexcept(false) {} }; static_assert(!cuda::std::is_nothrow_move_constructible>::value, ""); -#endif // TEST_COMPILER_ICC struct NoThrowMove { __host__ __device__ NoThrowMove() noexcept(false) {} diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp index c2815c98d5c..6911e7397c7 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp @@ -76,9 +76,7 @@ int main(int, char**) test_constexpr>(); test_constexpr>(); #endif -#ifndef TEST_COMPILER_ICC test>(); -#endif // TEST_COMPILER_ICC #if !(defined(TEST_COMPILER_CUDACC_BELOW_11_3) && defined(TEST_COMPILER_CLANG)) static_assert(test_constexpr>(), ""); diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value.pass.cpp index 5faee027db4..c824d1a4eea 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value.pass.cpp @@ -80,9 +80,7 @@ int main(int, char**) { optional opt; unused(opt); -#ifndef TEST_COMPILER_ICC ASSERT_NOT_NOEXCEPT(opt.value()); -#endif // TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(opt.value()), X&); } { diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_const.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_const.pass.cpp index 5f5c90f2664..b2da432aeb2 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_const.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_const.pass.cpp @@ -67,9 +67,7 @@ int main(int, char**) { const optional opt; unused(opt); -#ifndef TEST_COMPILER_ICC ASSERT_NOT_NOEXCEPT(opt.value()); -#endif // TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(opt.value()), X const&); } #if !(defined(TEST_COMPILER_CUDACC_BELOW_11_3) && defined(TEST_COMPILER_CLANG)) diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_const_rvalue.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_const_rvalue.pass.cpp index 62b53a7aa55..24e81acaa8d 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_const_rvalue.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_const_rvalue.pass.cpp @@ -67,9 +67,7 @@ int main(int, char**) { const optional opt; unused(opt); -#ifndef TEST_COMPILER_ICC ASSERT_NOT_NOEXCEPT(cuda::std::move(opt).value()); -#endif // TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::move(opt).value()), X const&&); } #if !(defined(TEST_COMPILER_CUDACC_BELOW_11_3) && defined(TEST_COMPILER_CLANG)) diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_rvalue.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_rvalue.pass.cpp index 8eeaf115855..6f5d653ca2b 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_rvalue.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.observe/value_rvalue.pass.cpp @@ -79,9 +79,7 @@ int main(int, char**) { optional opt; unused(opt); -#ifndef TEST_COMPILER_ICC ASSERT_NOT_NOEXCEPT(cuda::std::move(opt).value()); -#endif // TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::move(opt).value()), X&&); } { diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp index 6990228ac5b..26dedd6205f 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/optional.object.swap/swap.pass.cpp @@ -319,9 +319,7 @@ int main(int, char**) { optional opt1; optional opt2; -#ifndef TEST_COMPILER_ICC static_assert(noexcept(opt1.swap(opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == false); assert(static_cast(opt2) == false); opt1.swap(opt2); @@ -332,9 +330,7 @@ int main(int, char**) { optional opt1(1); optional opt2; -#ifndef TEST_COMPILER_ICC static_assert(noexcept(opt1.swap(opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == true); assert(*opt1 == 1); assert(static_cast(opt2) == false); @@ -348,9 +344,7 @@ int main(int, char**) { optional opt1; optional opt2(2); -#ifndef TEST_COMPILER_ICC static_assert(noexcept(opt1.swap(opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == false); assert(static_cast(opt2) == true); assert(*opt2 == 2); @@ -364,9 +358,7 @@ int main(int, char**) { optional opt1(1); optional opt2(2); -#ifndef TEST_COMPILER_ICC static_assert(noexcept(opt1.swap(opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == true); assert(*opt1 == 1); assert(static_cast(opt2) == true); @@ -382,9 +374,7 @@ int main(int, char**) { optional opt1; optional opt2; -#ifndef TEST_COMPILER_ICC static_assert(noexcept(opt1.swap(opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == false); assert(static_cast(opt2) == false); opt1.swap(opt2); diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/special_members.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/special_members.pass.cpp index f4bac770a1f..f596b9dd279 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/special_members.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/special_members.pass.cpp @@ -29,7 +29,6 @@ struct SpecialMemberTest { using O = cuda::std::optional; -#ifndef TEST_COMPILER_ICC static_assert(cuda::std::is_default_constructible_v, "optional is always default constructible."); static_assert(cuda::std::is_copy_constructible_v == cuda::std::is_copy_constructible_v, @@ -38,7 +37,6 @@ struct SpecialMemberTest static_assert(cuda::std::is_move_constructible_v == (cuda::std::is_copy_constructible_v || cuda::std::is_move_constructible_v), "optional is move constructible if and only if T is copy or move constructible."); -#endif // TEST_COMPILER_ICC static_assert(cuda::std::is_copy_assignable_v == (cuda::std::is_copy_constructible_v && cuda::std::is_copy_assignable_v), diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/triviality.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/triviality.pass.cpp index 10c6cc4464e..98316f65f55 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/triviality.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.object/triviality.pass.cpp @@ -39,7 +39,6 @@ struct SpecialMemberTest { using O = cuda::std::optional; -#ifndef TEST_COMPILER_ICC static_assert(implies(cuda::std::is_trivially_copy_constructible_v, cuda::std::is_trivially_copy_constructible_v), "optional is trivially copy constructible if T is trivially copy constructible."); @@ -47,7 +46,6 @@ struct SpecialMemberTest static_assert(implies(cuda::std::is_trivially_move_constructible_v, cuda::std::is_trivially_move_constructible_v), "optional is trivially move constructible if T is trivially move constructible"); -#endif // TEST_COMPILER_ICC static_assert(implies(cuda::std::is_trivially_copy_constructible_v && cuda::std::is_trivially_copy_assignable_v && cuda::std::is_trivially_destructible_v, diff --git a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.specalg/swap.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.specalg/swap.pass.cpp index 32cee42099d..041af209d75 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/optional/optional.specalg/swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/optional/optional.specalg/swap.pass.cpp @@ -340,9 +340,7 @@ int main(int, char**) { optional opt1; optional opt2; -#ifndef TEST_COMPILER_ICC static_assert(noexcept(swap(opt1, opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == false); assert(static_cast(opt2) == false); swap(opt1, opt2); @@ -353,9 +351,7 @@ int main(int, char**) { optional opt1(1); optional opt2; -#ifndef TEST_COMPILER_ICC static_assert(noexcept(swap(opt1, opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == true); assert(*opt1 == 1); assert(static_cast(opt2) == false); @@ -369,9 +365,7 @@ int main(int, char**) { optional opt1; optional opt2(2); -#ifndef TEST_COMPILER_ICC static_assert(noexcept(swap(opt1, opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == false); assert(static_cast(opt2) == true); assert(*opt2 == 2); @@ -385,9 +379,7 @@ int main(int, char**) { optional opt1(1); optional opt2(2); -#ifndef TEST_COMPILER_ICC static_assert(noexcept(swap(opt1, opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == true); assert(*opt1 == 1); assert(static_cast(opt2) == true); @@ -403,9 +395,7 @@ int main(int, char**) { optional opt1; optional opt2; -#ifndef TEST_COMPILER_ICC static_assert(noexcept(swap(opt1, opt2)) == false, ""); -#endif // TEST_COMPILER_ICC assert(static_cast(opt1) == false); assert(static_cast(opt2) == false); swap(opt1, opt2); diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp index 2e5364ab2c9..624a65ddd6a 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp @@ -63,11 +63,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_char_pointer_ctor() { assert(v[i] == (s[M - 1 - i] == '1')); } - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 10; i < v.size(); ++i) { - _CCCL_DIAG_POP { assert(v[i] == false); } @@ -81,11 +78,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_char_pointer_ctor() { assert(v[i] == (s[M - 1 - i] == '1')); } - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 10; i < v.size(); ++i) { - _CCCL_DIAG_POP { assert(v[i] == false); } @@ -99,11 +93,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_char_pointer_ctor() { assert(v[i] == (s[M - 1 - i] == '1')); } - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 10; i < v.size(); ++i) { - _CCCL_DIAG_POP { assert(v[i] == false); } @@ -117,11 +108,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_char_pointer_ctor() { assert(v[i] == (s[M - 1 - i] == 'b')); } - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 10; i < v.size(); ++i) { - _CCCL_DIAG_POP { assert(v[i] == false); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/default.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/default.pass.cpp index 8988d271c04..a4271169927 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/default.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/default.pass.cpp @@ -20,11 +20,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_default_ctor() { TEST_CONSTEXPR cuda::std::bitset v1; assert(v1.size() == N); - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v1.size(); ++i) { - _CCCL_DIAG_POP { assert(v1[i] == false); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp index cbe955b61d4..62e566b6376 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp @@ -30,11 +30,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_val_ctor() { assert(v[i] == ((i & 1) != 0)); } - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = M; i < v.size(); ++i) { - _CCCL_DIAG_POP { assert(v[i] == false); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/count.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/count.pass.cpp index b6cafbf8fee..a311ecd3b97 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/count.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/count.pass.cpp @@ -26,11 +26,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_count() const cuda::std::bitset v(cases[c]); cuda::std::size_t c1 = v.count(); cuda::std::size_t c2 = 0; - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v.size(); ++i) { - _CCCL_DIAG_POP { if (v[i]) { diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp index 50d98a162e8..f60f9f428f7 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/flip_all.pass.cpp @@ -26,11 +26,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_flip_all() cuda::std::bitset v1(cases[c]); cuda::std::bitset v2 = v1; v2.flip(); - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v1.size(); ++i) { - _CCCL_DIAG_POP { assert(v2[i] == ~v1[i]); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp index dd697adf159..45fb6a74c7d 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp @@ -32,11 +32,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 bool test_left_shift() cuda::std::bitset v1(cases[c]); cuda::std::bitset v2 = v1; v1 <<= s; - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v1.size(); ++i) { - _CCCL_DIAG_POP { if (i < s) { diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/not_all.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/not_all.pass.cpp index 159c41179b9..4245f14c251 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/not_all.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/not_all.pass.cpp @@ -25,11 +25,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_not_all() { cuda::std::bitset v1(cases[c]); cuda::std::bitset v2 = ~v1; - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v1.size(); ++i) { - _CCCL_DIAG_POP { assert(v2[i] == ~v1[i]); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp index 8e0aca78f52..65f0d5d7f66 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp @@ -29,11 +29,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 bool test_op_and_eq() cuda::std::bitset v2(cases[c2]); cuda::std::bitset v3 = v1; v1 &= v2; - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v1.size(); ++i) { - _CCCL_DIAG_POP { assert(v1[i] == (v3[i] && v2[i])); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp index 1d1af9ccceb..c09062a5f1a 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp @@ -35,11 +35,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 bool test_op_or_eq() cuda::std::bitset v2(cases[c2]); cuda::std::bitset v3 = v1; v1 |= v2; - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v1.size(); ++i) { - _CCCL_DIAG_POP { assert(v1[i] == (v3[i] || v2[i])); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp index b45c47e37d7..b5b927e93f8 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp @@ -33,11 +33,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 bool test_op_xor_eq() cuda::std::bitset v2(cases[c2]); cuda::std::bitset v3 = v1; v1 ^= v2; - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v1.size(); ++i) { - _CCCL_DIAG_POP { assert(v1[i] == (v3[i] != v2[i])); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp index e7f3ba1feda..aa410d8e4db 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/reset_all.pass.cpp @@ -22,11 +22,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_reset_all() cuda::std::bitset v; v.set(); v.reset(); - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v.size(); ++i) { - _CCCL_DIAG_POP { assert(!v[i]); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp index a87afb94cff..5aafb6dc9da 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp @@ -34,13 +34,10 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 bool test_right_shift() cuda::std::bitset v1(cases[c]); cuda::std::bitset v2 = v1; v1 >>= s; - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v1.size(); ++i) { if (i + s < v1.size()) { - _CCCL_DIAG_POP { assert(v1[i] == v2[i + s]); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/set_all.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/set_all.pass.cpp index f08ff34b5bd..0a34df86bbe 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/set_all.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/template.bitset/bitset.members/set_all.pass.cpp @@ -21,11 +21,8 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 void test_set_all() { cuda::std::bitset v; v.set(); - _CCCL_DIAG_PUSH - _CCCL_DIAG_SUPPRESS_ICC(186) for (cuda::std::size_t i = 0; i < v.size(); ++i) { - _CCCL_DIAG_POP { assert(v[i]); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/decrement.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/decrement.pass.cpp index ed24b18f8e7..d72d3d8646d 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/decrement.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/decrement.pass.cpp @@ -50,7 +50,6 @@ int main(int, char**) static_assert(testConstexpr(), ""); -#ifndef TEST_COMPILER_ICC for (unsigned i = 0; i <= 6; ++i) { weekday wd(i); @@ -58,7 +57,6 @@ int main(int, char**) assert(((wd--).c_encoding() == euclidian_subtraction(i, 1))); assert(((wd).c_encoding() == euclidian_subtraction(i, 2))); } -#endif // TEST_COMPILER_ICC return 0; } diff --git a/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp index aedc3fff6c5..c891494755a 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/plus_minus_equal.pass.cpp @@ -71,14 +71,12 @@ int main(int, char**) assert(((wd).c_encoding() == euclidian_addition(i, 3))); } -#ifndef TEST_COMPILER_ICC for (unsigned i = 0; i <= 6; ++i) { weekday wd(i); assert(((wd -= days{4}).c_encoding() == euclidian_subtraction(i, 4))); assert(((wd).c_encoding() == euclidian_subtraction(i, 4))); } -#endif // TEST_COMPILER_ICC return 0; } diff --git a/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/minus.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/minus.pass.cpp index 0b17e7ff10e..fa4487c94da 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/minus.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/minus.pass.cpp @@ -69,9 +69,7 @@ int main(int, char**) { weekday wd = weekday{i} - days{j}; assert(wd + days{j} == weekday{i}); -#ifndef TEST_COMPILER_ICC assert((wd.c_encoding() == euclidian_subtraction(i, j))); -#endif // TEST_COMPILER_ICC } } diff --git a/libcudacxx/test/libcudacxx/std/utilities/utility/exchange/exchange.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/utility/exchange/exchange.pass.cpp index e23cd925598..08522690ae3 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/utility/exchange/exchange.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/utility/exchange/exchange.pass.cpp @@ -132,9 +132,7 @@ int main(int, char**) static_assert(test_constexpr(), ""); #endif -#ifndef TEST_COMPILER_ICC static_assert(test_noexcept(), ""); -#endif // TEST_COMPILER_ICC return 0; } diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.get/get_index.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.get/get_index.pass.cpp index 39e2b569f68..be2d54ecab3 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.get/get_index.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.get/get_index.pass.cpp @@ -40,18 +40,16 @@ __host__ __device__ void test_const_lvalue_get() using V = cuda::std::variant; constexpr V v(42); #if !defined(TEST_COMPILER_MSVC) && !(defined(TEST_COMPILER_GCC) && __GNUC__ < 9) \ - && !defined(TEST_COMPILER_CUDACC_BELOW_11_3) && !defined(TEST_COMPILER_ICC) + && !defined(TEST_COMPILER_CUDACC_BELOW_11_3) ASSERT_NOT_NOEXCEPT(cuda::std::get<0>(v)); -#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_GCC && TEST_COMPILER_CUDACC_BELOW_11_3 && !TEST_COMPILER_ICC +#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_GCC && TEST_COMPILER_CUDACC_BELOW_11_3 ASSERT_SAME_TYPE(decltype(cuda::std::get<0>(v)), const int&); static_assert(cuda::std::get<0>(v) == 42, ""); } { using V = cuda::std::variant; const V v(42); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get<0>(v)); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get<0>(v)), const int&); assert(cuda::std::get<0>(v) == 42); } @@ -59,18 +57,16 @@ __host__ __device__ void test_const_lvalue_get() using V = cuda::std::variant; constexpr V v(42l); #if !defined(TEST_COMPILER_MSVC) && !(defined(TEST_COMPILER_GCC) && __GNUC__ < 9) \ - && !defined(TEST_COMPILER_CUDACC_BELOW_11_3) && !defined(TEST_COMPILER_ICC) + && !defined(TEST_COMPILER_CUDACC_BELOW_11_3) ASSERT_NOT_NOEXCEPT(cuda::std::get<1>(v)); -#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_GCC && TEST_COMPILER_CUDACC_BELOW_11_3 && !TEST_COMPILER_ICC +#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_GCC && TEST_COMPILER_CUDACC_BELOW_11_3 ASSERT_SAME_TYPE(decltype(cuda::std::get<1>(v)), const long&); static_assert(cuda::std::get<1>(v) == 42, ""); } { using V = cuda::std::variant; const V v(42l); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get<1>(v)); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get<1>(v)), const long&); assert(cuda::std::get<1>(v) == 42); } @@ -105,9 +101,7 @@ __host__ __device__ void test_lvalue_get() { using V = cuda::std::variant; V v(42); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get<0>(v)); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get<0>(v)), int&); assert(cuda::std::get<0>(v) == 42); } @@ -155,9 +149,7 @@ __host__ __device__ void test_rvalue_get() { using V = cuda::std::variant; V v(42); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get<0>(cuda::std::move(v))); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get<0>(cuda::std::move(v))), int&&); assert(cuda::std::get<0>(cuda::std::move(v)) == 42); } @@ -207,9 +199,7 @@ __host__ __device__ void test_const_rvalue_get() { using V = cuda::std::variant; const V v(42); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get<0>(cuda::std::move(v))); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get<0>(cuda::std::move(v))), const int&&); assert(cuda::std::get<0>(cuda::std::move(v)) == 42); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.get/get_type.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.get/get_type.pass.cpp index 63fdd99d591..e6f6f665a22 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.get/get_type.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.get/get_type.pass.cpp @@ -34,18 +34,16 @@ __host__ __device__ void test_const_lvalue_get() using V = cuda::std::variant; constexpr V v(42); #if !defined(TEST_COMPILER_MSVC) && !(defined(TEST_COMPILER_GCC) && __GNUC__ < 9) \ - && !defined(TEST_COMPILER_CUDACC_BELOW_11_3) && !defined(TEST_COMPILER_ICC) + && !defined(TEST_COMPILER_CUDACC_BELOW_11_3) ASSERT_NOT_NOEXCEPT(cuda::std::get(v)); -#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_GCC && TEST_COMPILER_CUDACC_BELOW_11_3 && !TEST_COMPILER_ICC +#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_GCC && TEST_COMPILER_CUDACC_BELOW_11_3 ASSERT_SAME_TYPE(decltype(cuda::std::get(v)), const int&); static_assert(cuda::std::get(v) == 42, ""); } { using V = cuda::std::variant; const V v(42); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get(v)); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get(v)), const int&); assert(cuda::std::get(v) == 42); } @@ -53,18 +51,16 @@ __host__ __device__ void test_const_lvalue_get() using V = cuda::std::variant; constexpr V v(42l); #if !defined(TEST_COMPILER_MSVC) && !(defined(TEST_COMPILER_GCC) && __GNUC__ < 9) \ - && !defined(TEST_COMPILER_CUDACC_BELOW_11_3) && !defined(TEST_COMPILER_ICC) + && !defined(TEST_COMPILER_CUDACC_BELOW_11_3) ASSERT_NOT_NOEXCEPT(cuda::std::get(v)); -#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_GCC && TEST_COMPILER_CUDACC_BELOW_11_3 && !TEST_COMPILER_ICC +#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_GCC && TEST_COMPILER_CUDACC_BELOW_11_3 ASSERT_SAME_TYPE(decltype(cuda::std::get(v)), const long&); static_assert(cuda::std::get(v) == 42, ""); } { using V = cuda::std::variant; const V v(42l); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get(v)); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get(v)), const long&); assert(cuda::std::get(v) == 42); } @@ -99,9 +95,7 @@ __host__ __device__ void test_lvalue_get() { using V = cuda::std::variant; V v(42); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get(v)); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get(v)), int&); assert(cuda::std::get(v) == 42); } @@ -149,9 +143,7 @@ __host__ __device__ void test_rvalue_get() { using V = cuda::std::variant; V v(42); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get(cuda::std::move(v))); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get(cuda::std::move(v))), int&&); assert(cuda::std::get(cuda::std::move(v)) == 42); } @@ -201,9 +193,7 @@ __host__ __device__ void test_const_rvalue_get() { using V = cuda::std::variant; const V v(42); -#if !defined(TEST_COMPILER_ICC) ASSERT_NOT_NOEXCEPT(cuda::std::get(cuda::std::move(v))); -#endif // !TEST_COMPILER_ICC ASSERT_SAME_TYPE(decltype(cuda::std::get(cuda::std::move(v))), const int&&); assert(cuda::std::get(cuda::std::move(v)) == 42); } diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/T.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/T.pass.cpp index 2dc01c1bd38..088d349ff71 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/T.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/T.pass.cpp @@ -172,7 +172,6 @@ __host__ __device__ void test_T_assignment_noexcept() using V = cuda::std::variant; static_assert(cuda::std::is_nothrow_assignable::value, ""); } -#if !defined(TEST_COMPILER_ICC) { using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_assignable::value, ""); @@ -181,7 +180,6 @@ __host__ __device__ void test_T_assignment_noexcept() using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_assignable::value, ""); } -#endif // !TEST_COMPILER_ICC } __host__ __device__ void test_T_assignment_sfinae() diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp index 328b3621b7c..1f1e020fa2b 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp @@ -286,7 +286,6 @@ void makeEmpty(Variant& v) __host__ __device__ void test_copy_assignment_not_noexcept() { -#if !defined(TEST_COMPILER_ICC) { using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_copy_assignable::value, ""); @@ -295,7 +294,6 @@ __host__ __device__ void test_copy_assignment_not_noexcept() using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_copy_assignable::value, ""); } -#endif // !TEST_COMPILER_ICC } __host__ __device__ void test_copy_assignment_sfinae() @@ -575,7 +573,7 @@ __host__ __device__ void test_copy_assignment_different_index() assert(&vref == &v1); assert(v1.index() == 1); assert(cuda::std::get<1>(v1).value == 42); -#if !defined(TEST_COMPILER_MSVC) && !defined(TEST_COMPILER_ICC) +#if !defined(TEST_COMPILER_MSVC) assert(CopyAssign::alive() == 2); assert(CopyAssign::copy_construct() == 1); assert(CopyAssign::move_construct() == 1); @@ -585,7 +583,7 @@ __host__ __device__ void test_copy_assignment_different_index() // interactions of many weird things these tests are doing. asm volatile("" ::: "memory"); assert(CopyAssign::copy_assign() == 0); -#endif // !TEST_COMPILER_MSVC && !TEST_COMPILER_ICC +#endif // !TEST_COMPILER_MSVC } #ifndef TEST_HAS_NO_EXCEPTIONS # if defined(_LIBCUDACXX_HAS_STRING) diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/move.pass.cpp index be47597f3b8..5f743270ad8 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.assign/move.pass.cpp @@ -182,7 +182,6 @@ __host__ __device__ void test_move_assignment_noexcept() using V = cuda::std::variant; static_assert(cuda::std::is_nothrow_move_assignable::value, ""); } -#if !defined(TEST_COMPILER_ICC) { using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_move_assignable::value, ""); @@ -191,7 +190,6 @@ __host__ __device__ void test_move_assignment_noexcept() using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_move_assignable::value, ""); } -#endif // !TEST_COMPILER_ICC } __host__ __device__ void test_move_assignment_sfinae() diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/T.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/T.pass.cpp index c19d40476a7..fb63a88a2d8 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/T.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/T.pass.cpp @@ -62,12 +62,10 @@ __host__ __device__ void test_T_ctor_noexcept() using V = cuda::std::variant; static_assert(cuda::std::is_nothrow_constructible::value, ""); } -#if !defined(TEST_COMPILER_ICC) { using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_constructible::value, ""); } -#endif // !TEST_COMPILER_ICC } __host__ __device__ void test_T_ctor_sfinae() diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/default.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/default.pass.cpp index bded8e83f59..a85ada1db74 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/default.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/default.pass.cpp @@ -67,12 +67,10 @@ __host__ __device__ void test_default_ctor_noexcept() using V = cuda::std::variant; static_assert(cuda::std::is_nothrow_default_constructible::value, ""); } -#if !defined(TEST_COMPILER_ICC) { using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_default_constructible::value, ""); } -#endif // !TEST_COMPILER_ICC } #ifndef TEST_HAS_NO_EXCEPTIONS diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/move.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/move.pass.cpp index 668a717acca..1a580951d6e 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/move.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.ctor/move.pass.cpp @@ -160,7 +160,6 @@ __host__ __device__ void test_move_noexcept() using V = cuda::std::variant; static_assert(cuda::std::is_nothrow_move_constructible::value, ""); } -#if !defined(TEST_COMPILER_ICC) { using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_move_constructible::value, ""); @@ -169,7 +168,6 @@ __host__ __device__ void test_move_noexcept() using V = cuda::std::variant; static_assert(!cuda::std::is_nothrow_move_constructible::value, ""); } -#endif // !TEST_COMPILER_ICC } __host__ __device__ void test_move_ctor_sfinae() diff --git a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp index ec2a53f5a7a..84f234ea4ee 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp @@ -531,9 +531,7 @@ __host__ __device__ void test_swap_noexcept() { using V = cuda::std::variant; static_assert(cuda::std::is_swappable_v && has_swap_member(), ""); -#if !defined(TEST_COMPILER_ICC) static_assert(!cuda::std::is_nothrow_swappable_v, ""); -#endif // !TEST_COMPILER_ICC // instantiate swap V v1, v2; v1.swap(v2); @@ -542,9 +540,7 @@ __host__ __device__ void test_swap_noexcept() { using V = cuda::std::variant; static_assert(cuda::std::is_swappable_v && has_swap_member(), ""); -#if !defined(TEST_COMPILER_ICC) static_assert(!cuda::std::is_nothrow_swappable_v, ""); -#endif // !TEST_COMPILER_ICC // instantiate swap V v1, v2; v1.swap(v2); @@ -553,9 +549,7 @@ __host__ __device__ void test_swap_noexcept() { using V = cuda::std::variant; static_assert(cuda::std::is_swappable_v && has_swap_member(), ""); -#if !defined(TEST_COMPILER_ICC) static_assert(!cuda::std::is_nothrow_swappable_v, ""); -#endif // !TEST_COMPILER_ICC // instantiate swap V v1, v2; v1.swap(v2); diff --git a/libcudacxx/test/public_headers/CMakeLists.txt b/libcudacxx/test/public_headers/CMakeLists.txt index adbd6eecaab..b0e48c19663 100644 --- a/libcudacxx/test/public_headers/CMakeLists.txt +++ b/libcudacxx/test/public_headers/CMakeLists.txt @@ -46,9 +46,6 @@ function(libcudacxx_add_public_header_test header) PRIVATE ${headertest_warning_levels_device} -DLIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE) - if (CCCL_SUPPRESS_ICC_DEPRECATION_WARNING) - target_compile_definitions(headertest_${header_name} PRIVATE CCCL_SUPPRESS_ICC_DEPRECATION_WARNING) - endif() if (CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) target_compile_definitions(headertest_${header_name} PRIVATE CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) endif() diff --git a/libcudacxx/test/public_headers_host_only/CMakeLists.txt b/libcudacxx/test/public_headers_host_only/CMakeLists.txt index 71b97373b1c..57b6c70ede9 100644 --- a/libcudacxx/test/public_headers_host_only/CMakeLists.txt +++ b/libcudacxx/test/public_headers_host_only/CMakeLists.txt @@ -29,9 +29,6 @@ function(libcudacxx_add_std_header_test header) target_include_directories(headertest_std_${header_name} PRIVATE "${libcudacxx_SOURCE_DIR}/include") target_compile_options(headertest_std_${header_name} PRIVATE ${headertest_warning_levels_host}) target_compile_definitions(headertest_std_${header_name} PRIVATE CCCL_ENABLE_ASSERTIONS) - if (CCCL_SUPPRESS_ICC_DEPRECATION_WARNING) - target_compile_definitions(headertest_std_${header_name} PRIVATE CCCL_SUPPRESS_ICC_DEPRECATION_WARNING) - endif() if (CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) target_compile_definitions(headertest_std_${header_name} PRIVATE CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING) endif() diff --git a/libcudacxx/test/support/test_macros.h b/libcudacxx/test/support/test_macros.h index dc9407fe035..35a5cc36d1a 100644 --- a/libcudacxx/test/support/test_macros.h +++ b/libcudacxx/test/support/test_macros.h @@ -65,9 +65,7 @@ # define TEST_HAS_BUILTIN_IDENTIFIER(X) 0 #endif -#if defined(__INTEL_COMPILER) -# define TEST_COMPILER_ICC -#elif defined(__NVCOMPILER) +#if defined(__NVCOMPILER) # define TEST_COMPILER_NVHPC #elif defined(__clang__) # define TEST_COMPILER_CLANG @@ -463,9 +461,9 @@ __host__ __device__ constexpr bool unused(T&&...) # endif #endif // defined(TEST_COMPILER_MSVC) -#if defined(TEST_COMPILER_NVHPC) || defined(TEST_COMPILER_ICC) +#if defined(TEST_COMPILER_NVHPC) # define TEST_COMPILER_BROKEN_SMF_NOEXCEPT -#endif // TEST_COMPILER_NVHPC || TEST_COMPILER_ICC +#endif // TEST_COMPILER_NVHPC #if (defined(TEST_WINDOWS_DLL) && !defined(_MSC_VER)) || defined(__MVS__) // Normally, a replaced e.g. 'operator new' ends up used if the user code diff --git a/libcudacxx/test/utils/libcudacxx/compiler.py b/libcudacxx/test/utils/libcudacxx/compiler.py index 1b375f9d39f..00f0ec3f0e1 100644 --- a/libcudacxx/test/utils/libcudacxx/compiler.py +++ b/libcudacxx/test/utils/libcudacxx/compiler.py @@ -114,11 +114,6 @@ def _initTypeAndVersion(self): major_ver = macros["__NVCOMPILER_MAJOR__"].strip() minor_ver = macros["__NVCOMPILER_MINOR__"].strip() patchlevel = macros["__NVCOMPILER_PATCHLEVEL__"].strip() - elif "__INTEL_COMPILER" in macros.keys(): - compiler_type = "icc" - major_ver = int(macros["__INTEL_COMPILER"]) / 100 - minor_ver = (int(macros["__INTEL_COMPILER"]) % 100) / 10 - patchlevel = int(macros["__INTEL_COMPILER"]) % 10 elif "__clang__" in macros.keys(): compiler_type = "clang" # Treat Apple's LLVM fork differently. diff --git a/libcudacxx/test/utils/libcudacxx/dumpversion.cpp b/libcudacxx/test/utils/libcudacxx/dumpversion.cpp index 55e2e6eed3c..162b6bf2d6a 100644 --- a/libcudacxx/test/utils/libcudacxx/dumpversion.cpp +++ b/libcudacxx/test/utils/libcudacxx/dumpversion.cpp @@ -26,11 +26,6 @@ int main() major_version = __NVCOMPILER; minor_version = ___NVCOMPILER_MINOR__; patch_level = ___NVCOMPILER_PATCHLEVEL__; -#elif defined(__INTEL_COMPILER) - compiler_type = "icc"; - major_version = __INTEL_COMPILER / 100; - minor_version = (__INTEL_COMPILER % 100) / 10; - patch_level = __INTEL_COMPILER % 10; #elif defined(__clang__) // Treat Apple's LLVM fork differently. # if defined(__apple_build_version__) diff --git a/libcudacxx/test/utils/libcudacxx/test/config.py b/libcudacxx/test/utils/libcudacxx/test/config.py index d52b869dd17..c2b4871790e 100644 --- a/libcudacxx/test/utils/libcudacxx/test/config.py +++ b/libcudacxx/test/utils/libcudacxx/test/config.py @@ -423,10 +423,6 @@ def configure_cxx(self): ) ) - if "icc" in self.config.available_features: - self.cxx.link_flags += ["-lirc"] - self.cxx.compile_flags += ["-Xcompiler=-diag-disable=10441"] - def _configure_clang_cl(self, clang_path): def _split_env_var(var): return [p.strip() for p in os.environ.get(var, "").split(";") if p.strip()] diff --git a/thrust/testing/async_copy.cu b/thrust/testing/async_copy.cu index cf67652ac06..cd18d83a782 100644 --- a/thrust/testing/async_copy.cu +++ b/thrust/testing/async_copy.cu @@ -207,11 +207,6 @@ struct test_async_copy_counting_iterator_input_to_host_vector f0.wait(); ASSERT_EQUAL(d0, d1); - -# if _CCCL_COMPILER(ICC) - // ICC fails this for some unknown reason - see #1468. - KNOWN_FAILURE; -# endif // _CCCL_COMPILER(ICC) } }; }; diff --git a/thrust/testing/scan.cu b/thrust/testing/scan.cu index 6a98cb99e61..c30eee013b6 100644 --- a/thrust/testing/scan.cu +++ b/thrust/testing/scan.cu @@ -25,18 +25,6 @@ template void TestScanSimple() { using T = typename Vector::value_type; - - // icc miscompiles the intermediate sum updates for custom_numeric. - // The issue doesn't happen with opts disabled, or on other compilers. - // Printing the intermediate sum each iteration "fixes" the issue, - // so likely a bad optimization. -#if _CCCL_COMPILER(ICC) - if (std::is_same::value) - { - return; - } -#endif - typename Vector::iterator iter; Vector input(5); diff --git a/thrust/thrust/complex.h b/thrust/thrust/complex.h index 1cca771fa45..b46b88c6b09 100644 --- a/thrust/thrust/complex.h +++ b/thrust/thrust/complex.h @@ -341,19 +341,13 @@ struct complex private: #if _CCCL_CUDA_COMPILER(NVCC, <, 11, 7) struct __align__(sizeof(T) * 2) storage -#elif _CCCL_COMPILER(ICC) - struct storage -#else // !(_CCCL_COMPILER(ICC) || _CCCL_CUDA_COMPILER(NVCC, <, 11, 7)) +#else // _CCCL_CUDA_COMPILER(NVCC, <, 11, 7)) struct alignas(sizeof(T) * 2) storage -#endif // !(_CCCL_COMPILER(ICC) || _CCCL_CUDA_COMPILER(NVCC, <, 11, 7)) +#endif // _CCCL_CUDA_COMPILER(NVCC, <, 11, 7)) { T x; T y; - } -#if _CCCL_COMPILER(ICC) - __attribute__((aligned(sizeof(T) * 2))) -#endif // _CCCL_COMPILER(ICC) - ; + }; storage data; }; diff --git a/thrust/thrust/detail/config/compiler.h b/thrust/thrust/detail/config/compiler.h index 25d8ebfb29e..06a5f950712 100644 --- a/thrust/thrust/detail/config/compiler.h +++ b/thrust/thrust/detail/config/compiler.h @@ -62,9 +62,6 @@ # define THRUST_MSVC_VERSION _MSC_VER //! deprecated [Since 2.7] # define THRUST_MSVC_VERSION_FULL _MSC_FULL_VER -#elif _CCCL_COMPILER(ICC) -//! deprecated [Since 2.7] -# define THRUST_HOST_COMPILER THRUST_HOST_COMPILER_INTEL #elif _CCCL_COMPILER(CLANG) //! deprecated [Since 2.7] # define THRUST_HOST_COMPILER THRUST_HOST_COMPILER_CLANG diff --git a/thrust/thrust/detail/preprocessor.h b/thrust/thrust/detail/preprocessor.h index 0c191d3b460..1ca936dba3f 100644 --- a/thrust/thrust/detail/preprocessor.h +++ b/thrust/thrust/detail/preprocessor.h @@ -630,8 +630,7 @@ /// \def THRUST_CURRENT_FUNCTION /// \brief The name of the current function as a string. /// -#if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) \ - || defined(__ghs__) +#if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || defined(__ghs__) # define THRUST_CURRENT_FUNCTION __PRETTY_FUNCTION__ #elif defined(__DMC__) && (__DMC__ >= 0x810) # define THRUST_CURRENT_FUNCTION __PRETTY_FUNCTION__ diff --git a/thrust/thrust/system/cuda/detail/future.inl b/thrust/thrust/system/cuda/detail/future.inl index 343a18156ec..7200e51d491 100644 --- a/thrust/thrust/system/cuda/detail/future.inl +++ b/thrust/thrust/system/cuda/detail/future.inl @@ -461,7 +461,6 @@ public: _CCCL_DIAG_PUSH _CCCL_DIAG_SUPPRESS_CLANG("-Wreorder") _CCCL_DIAG_SUPPRESS_GCC("-Wreorder") - _CCCL_DIAG_SUPPRESS_ICC(2407) template _CCCL_HOST explicit async_addressable_value_with_keep_alives( unique_stream&& stream, keep_alives_type&& keep_alives, ComputeContent&& compute_content)