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

CUDA is no longer automatically detected #233

Open
mattdawkins opened this issue Oct 4, 2017 · 11 comments
Open

CUDA is no longer automatically detected #233

mattdawkins opened this issue Oct 4, 2017 · 11 comments

Comments

@mattdawkins
Copy link
Member

Now I need to specify a CUDA_TOOLKIT_ROOT_DIR with a fresh fletch, even when CUDA is installed in the default location

@aaron-bray I don't think this is desirable

@aaron-bray
Copy link
Member

Ok, maybe I hijacked a variable I should not have

@dstoup
Copy link
Collaborator

dstoup commented Oct 4, 2017

The problem appears to be setting CUDA_TOOLKIT_ROOT_DIR to "" in CACHE. Is there a good reason to set that at all? I think the FindCUDA will take care of that for us.

@aaron-bray
Copy link
Member

aaron-bray commented Oct 4, 2017 via email

@dstoup
Copy link
Collaborator

dstoup commented Oct 4, 2017 via email

@aaron-bray
Copy link
Member

aaron-bray commented Oct 4, 2017 via email

@dstoup
Copy link
Collaborator

dstoup commented Oct 4, 2017 via email

@aaron-bray
Copy link
Member

aaron-bray commented Oct 4, 2017 via email

@aaron-bray
Copy link
Member

aaron-bray commented Oct 4, 2017

Do you think we should explicitly set version like this?
set(CUDA_VERSION_MAJOR ${CUDA_VERSION_MAJOR})
I think its handy to know what cuda version was used by fletch,
but client programs are still going to have to do a find_package(CUDA), which should find the cuda fletch used and set those variables

if we do have CUDA_VERSION_MAJOR in the fletchConfig, would the find_package successfully overwrite (with the same value hopefully) those variable?

I am just making sure there is no unexpected collision with pre defined variables, the FindCUDA should just re set those variable with out issue, right?

@dstoup
Copy link
Collaborator

dstoup commented Oct 4, 2017 via email

@aaron-bray
Copy link
Member

I like the fletch_ prefix
Are you ok with having the CUDA_TOOLKIT_ROOT_DIR in the fletch config (As named)

that allows users to do a find_package(CUDA)
no version and still get the same version.
I think it would be good to do this as users may not know they have to and how to sync fletch and client versions

find_package(CUDA VERSION ${fletch_CUDA_VERSION_MAJOR})
would still work as intended, but so would find_package(CUDA)
which is probably what clients will do

(I have no idea what would happen if fletch used 9.0 and kwiver uses 8.0)

@dstoup
Copy link
Collaborator

dstoup commented Oct 4, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants