-
Notifications
You must be signed in to change notification settings - Fork 60
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
WIP: Revamp CUDA support #585
base: develop
Are you sure you want to change the base?
Conversation
cmake/BLTOptions.cmake
Outdated
option(BLT_CUDA_LINK_WITH_NVCC "Enable linking with NVCC" OFF) | ||
if (DEFINED CUDA_LINK_WITH_NVCC) | ||
message(WARNING "CUDA_LINK_WITH_NVCC is deprecated and will eventually be removed.") | ||
set(BLT_CUDA_LINK_WITH_NVCC ${CUDA_LINK_WITH_NVCC}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be CACHE FORCE?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that too as I did it =) I'll test it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reworked it to just populate the option()
..
@white238 will this require a syntax change for BLT users like the recent change in HIP support; e.g., 'cuda_runtime' --> 'cuda::runtime'? |
Yes this is a breaking change in the following ways:
|
2ef7009
to
b178da6
Compare
We should probably add this to the https://cmake.org/cmake/help/latest/module/FindCUDAToolkit.html#cuda-driver-library |
This removes the old deprecated FindCUDA and mimic's what @davidbeckingsale did for HIP support.
Breaking changes:
cuda
->blt::cuda
cuda_runtime
->blt::cuda_runtime
CMAKE_LINK_WITH_NVCC
->BLT_CMAKE_LINK_WITH_NVCC
(warning about former being deprecated)Thanks to @kennyweiss for sitting on a webex while I drastically rip support out from under myself!