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

Make sure we don't add '-cuda' to the link line with NVC++ when CUDA is not enabled #5485

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

dalg24
Copy link
Member

@dalg24 dalg24 commented Sep 22, 2022

Fix #5483

Obviously, in an ideal world we don't process that entire block when the CUDA backend is not enabled. Wrapping it in a big if(KOKKOS_ENABLE_CUDA) makes the code less readable and I don't want to get into refactoring the whole thing. I considered introducing a KOKKOS_CUDA_LINK_OPTIONS variables but that would force us to duplicate some target_link_options workaround for CMake version less than 3.18

@dalg24 dalg24 mentioned this pull request Sep 22, 2022
Obviously, in an ideal world we don't process that entire block when the
CUDA backend is not enabled.  Wrapping it in a big
if(KOKKOS_ENABLE_CUDA) makes the code less readable and I don't want to
get into refactoring the whole thing.  I considered introducing a
KOKKOS_CUDA_LINK_OPTIONS variables but that would force us to duplicate
some target_link_options workaround for CMake version less than 3.18
@dalg24
Copy link
Member Author

dalg24 commented Sep 22, 2022

(removed trailing white space)

Copy link
Contributor

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me.

@dalg24
Copy link
Member Author

dalg24 commented Sep 22, 2022

Performance test failing on CUDA-11.0-NVCC-C++17-RDC build is clearly unrelated

Copy link
Contributor

@JBludau JBludau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good so far

@dalg24 dalg24 merged commit 93f69db into kokkos:develop Sep 22, 2022
@ajpowelsnl ajpowelsnl mentioned this pull request Oct 17, 2022
@dalg24 dalg24 deleted the nvc++_wo_cuda branch January 25, 2023 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants