mtazzari / galario

Gpu Accelerated Library for Analysing Radio Interferometer Observations
https://mtazzari.github.io/galario/
GNU Lesser General Public License v3.0
31 stars 15 forks source link

cmake with CUDA 10.0 #158

Open mansdell opened 6 years ago

mansdell commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

fredRos commented 6 years ago

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

conda install -c conda-forge cmake
mtazzari commented 6 years ago

Perhaps we can add this tip to the docs

fredRos commented 4 years ago

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/