Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating CMake from FindCUDA to FindCUDAToolkit #120

Open
jakirkham opened this issue Mar 20, 2024 · 0 comments
Open

Migrating CMake from FindCUDA to FindCUDAToolkit #120

jakirkham opened this issue Mar 20, 2024 · 0 comments

Comments

@jakirkham
Copy link

It looks like prismatic is still using CMake's FindCUDA

prismatic/CMakeLists.txt

Lines 140 to 145 in 9f205d0

# find CUDA package, if building for GPU
if (PRISMATIC_ENABLE_GPU)
message("GPU support enabled")
find_package(CUDA REQUIRED)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} ${NVCC_FLAGS_EXTRA})
endif(PRISMATIC_ENABLE_GPU)

However FindCUDA is deprecated

The current recommendation is to use CUDA as a language via enable_language(CUDA)

Also FindCUDAToolkit is recommended for finding CUDA Toolkit components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant