From 2ca7904fed411eaf9ea69cbea1317d0414c3be90 Mon Sep 17 00:00:00 2001 From: Simeon Ehrig Date: Thu, 9 Jan 2025 08:37:12 +0100 Subject: [PATCH] CMake: remove restriction which avoids nvcc + clang + mdspan --- cmake/alpakaCommon.cmake | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmake/alpakaCommon.cmake b/cmake/alpakaCommon.cmake index 0cfe4d7e831..d4937b64956 100644 --- a/cmake/alpakaCommon.cmake +++ b/cmake/alpakaCommon.cmake @@ -954,12 +954,6 @@ if (NOT alpaka_USE_MDSPAN STREQUAL "OFF") message(FATAL_ERROR "std::mdspan on MSVC requires C++20. Please enable C++20 via alpaka_CXX_STANDARD. Use of std::mdspan has been disabled.") endif () - if (alpaka_ACC_GPU_CUDA_ENABLE AND (CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA") AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")) - # this issue actually only occurs when the host compiler (not the CXX compiler) is clang, but cmake does not let us query the host compiler id - # see: https://gitlab.kitware.com/cmake/cmake/-/issues/20901 - message(FATAL_ERROR "std::mdspan does not work with nvcc and clang as host compiler. Use of std::mdspan has been disabled.") - endif () - if (alpaka_ACC_GPU_CUDA_ENABLE AND CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND (NOT alpaka_CUDA_EXPT_EXTENDED_LAMBDA STREQUAL ON)) message(FATAL_ERROR "std::mdspan requires nvcc's extended lambdas.") endif()