-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add CUDA libraries when linking if CUDA is found by cmake #545
Conversation
Still curious if manually appending to the list or using a function like include_directories() is preferred. |
The function But as @mewall points out, the |
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.
It is cleaner to just remove the FindCUDA
module and all of the logic that goes with it and replace it with listing CUDA
as a language at the top.
I just checked, simply adding CUDA as a language doesn't add the CUDA include path at compile time, at least in my hands.
I can't work on this more now but I did create an issue for it already. Maybe accept the latest PR and work on this later? The new PR just changes one line of code in CMakeLists.txt compared to commit 27295f9.
…________________________________
From: Nicolas Bock ***@***.***>
Sent: Wednesday, October 6, 2021 12:24:35 PM
To: lanl/bml
Cc: Wall, Michael E; Mention
Subject: [EXTERNAL] Re: [lanl/bml] Add CUDA libraries when linking if CUDA is found by cmake (#545)
@nicolasbock requested changes on this pull request.
It is cleaner to just remove the FindCUDA module and all of the logic that goes with it and replace it with listing CUDA as a language at the top.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#545 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA67VENWS2DB342F7VW6Z2LUFSH6HANCNFSM5FPJDNMA>.
|
@nicolasbock What I was trying to say was that maybe there should be a link_directories() function that adds to the link_libraries. It seems incongruous to use two different methods to do very similar things (since the include_directories should also append to some list of include paths) |
Actually there is |
9d25e2e
to
dcc1c12
Compare
rebased |
No description provided.