Skip to content

Commit

Permalink
CMake: remove restriction which avoids nvcc + clang + mdspan
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonEhrig authored and psychocoderHPC committed Jan 9, 2025
1 parent c20513e commit 2ca7904
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmake/alpakaCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2ca7904

Please sign in to comment.