Skip to content

Draft: Rewrite CUDA config to use modern native CMAKE CUDA support.

Antonio Sánchez requested to merge cantonios/eigen:cmake into master

Rewrite CUDA config to use modern native CMAKE CUDA support.

Fixes #2768 (closed). The FindCUDA cmake package has been deprecated since cmake 3.10 (now we're on like 3.28 on modern systems). CUDA now has native language support in CMake (though clang was only supported properly in 3.18).

These changes should be backward-compatible. The only "gotcha" I've found is that on some systems with non-standard CUDA installations, FindCUDA used to still work, but the new system doesn't. To work around this, you need to explicitly specify the CMAKE_CUDA_COMPILER.

Merge request reports