-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix issue with hard-wired CUDA consumer. #34
Conversation
Tested this on incline by hand and if I cherry-pick this commit onto |
Thanks! Let me rebase wrt incline-dev and redirect this PR there. |
Added a hotfix to cmake.in file and it should be working now. Tested the no gpu/cuda build and it worked for me. |
I just tried it at Frontier and the consumer test works like a charm! Thanks @ryandanehy. |
if(@RESOLVE_USE_CUDA@) | ||
set(CMAKE_CUDA_COMPILER @CMAKE_CUDA_COMPILER@) | ||
enable_language(CUDA) | ||
check_language(CUDA) | ||
set(CMAKE_CUDA_FLAGS "@CMAKE_CUDA_FLAGS@") | ||
find_package(CUDAToolkit REQUIRED) | ||
endif() |
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.
Perhaps we should have been stricter about this like in Sundials?
This would involve checking for existence of the required cuda targets incase they are already defined #33 (comment)
Either way, HiOp also has this issue, and we won't know the right approach until we add ReSolve into HiOp :)
Fixes #33.