Skip to content

Fix CUDA Architecture for CI with old CMake

Kenneth Moreland requested to merge kmorel/vtk-m:cuda-arch-old-cmake into master

The configuration for CI changed to using the newer CMake option CMAKE_CUDA_ARCHITECTURES for turing builds instead of the now depreciated VTKm_CUDA_Architecture setting. However, this new setting only works for newer versions of CMake, and some of the CI docker images still have older versions of CMake.

This happened to work on the CI because the CI was run on machines that had the right CUDA device installed (I guess), but did not work with the utility. Fix this by checking the CMake version first.

Merge request reports