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

cmake with CUDA 10.0 #158

Open
mansdell opened this issue Oct 16, 2018 · 5 comments
Open

cmake with CUDA 10.0 #158

mansdell opened this issue Oct 16, 2018 · 5 comments
Assignees
Labels

Comments

@mansdell
Copy link

With CUDA 10.0 you need to upgrade cmake to the latest version 3.12.2 otherwise you get the following error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)

I followed these instructions to install the latest cmake version in the command line.

@fredRos
Copy link
Collaborator

fredRos commented Oct 22, 2018

Thanks for reporting. I will look into it. I would rather not require the latest version of cmake for everyone so perhaps we can add the appropriate FindCUDA.cmake file to make cuda 10 work with older versions of cmake

@mtazzari
Copy link
Owner

Thank you Fred, I agree it'd be best to require the minimum cmake version possible.

@fredRos
Copy link
Collaborator

fredRos commented Oct 29, 2018

If you use conda, a simpler way to get a current version of cmake is

conda install -c conda-forge cmake

@mtazzari
Copy link
Owner

Perhaps we can add this tip to the docs

@fredRos
Copy link
Collaborator

fredRos commented Apr 6, 2020

If we require 3.9, cmake natively supports cuda on all platforms and 3.9 is already quite old. But would that also be enough for cuda 10?
https://devblogs.nvidia.com/building-cuda-applications-cmake/

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

No branches or pull requests

3 participants