RAJA icon indicating copy to clipboard operation
RAJA copied to clipboard

CMAKE_CUDA_ARCHITECTURES

Open adayton1 opened this issue 2 years ago • 1 comments

It looks like RAJA is using custom variables for setting the CUDA architecture (CUDA_ARCH and CUDA_CODE, see https://github.com/LLNL/RAJA/blob/develop/CMakeLists.txt#L114). In CMake 3.18, a new variable called CMAKE_CUDA_ARCHITECTURES is provided so that CMAKE_CUDA_FLAGS does not have to be modified directly.

https://cmake.org/cmake/help/latest/variable/CMAKE_CUDA_ARCHITECTURES.html

adayton1 avatar Jan 31 '22 23:01 adayton1

It looks like this is going to be important with newer cmake versions, I tried using 3.21.1 with our scripts on rzansel and got a warning for every target that CUDA_ARCHITECTURES is empty.

MrBurmark avatar Aug 24 '22 17:08 MrBurmark

This was done in the latest release.

adayton1 avatar Feb 28 '23 17:02 adayton1