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

Fix issue with hard-wired CUDA consumer. #34

Merged
merged 3 commits into from
Oct 27, 2023
Merged

Conversation

pelesh
Copy link
Collaborator

@pelesh pelesh commented Oct 26, 2023

Fixes #33.

@pelesh pelesh added bug Something isn't working testing labels Oct 26, 2023
@pelesh pelesh added this to the Hackathon milestone Oct 26, 2023
@pelesh pelesh mentioned this pull request Oct 26, 2023
@jaelynlitz
Copy link
Collaborator

jaelynlitz commented Oct 26, 2023

Tested this on incline by hand and if I cherry-pick this commit onto incline-dev I am still seeing the clang15 nvcc error on make test_install

@pelesh
Copy link
Collaborator Author

pelesh commented Oct 26, 2023

Tested this on incline by hand and if I cherry-pick this commit onto incline-dev I am still seeing the clang15 nvcc error on make test_install

Thanks! Let me rebase wrt incline-dev and redirect this PR there.

@ryandanehy
Copy link
Collaborator

Added a hotfix to cmake.in file and it should be working now. Tested the no gpu/cuda build and it worked for me.

@pelesh
Copy link
Collaborator Author

pelesh commented Oct 27, 2023

I just tried it at Frontier and the consumer test works like a charm! Thanks @ryandanehy.

@pelesh pelesh merged commit d84d8a5 into develop Oct 27, 2023
2 checks passed
Comment on lines +9 to +15
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()
Copy link
Collaborator

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 :)

@ryandanehy ryandanehy deleted the consumer-test-fix branch November 27, 2023 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consumer test hard-wired to use CUDA-SDK whether CUDA support is enabled or not
4 participants