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

Update cmake to find_package(CUDAToolkit) #124

Closed
frobnitzem opened this issue Jun 30, 2021 · 0 comments · Fixed by #132
Closed

Update cmake to find_package(CUDAToolkit) #124

frobnitzem opened this issue Jun 30, 2021 · 0 comments · Fixed by #132

Comments

@frobnitzem
Copy link

The current CMakeLists.txt uses both enable_language(CUDA) and find_package(CUDA). The latter is deprecated in favor of FindCUDAToolkit, introduced in cmake 3.17.

A straightforward fix would be to add
find_package(CUDAToolkit)
target_link_libraries(cuda::toolkit INTERFACE CUDA::cublas ...)

but CUB still has to be added manually, and the device-specific compile options should be re-visited too.

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

Successfully merging a pull request may close this issue.

1 participant