Closed kylemiller3 closed 4 years ago
This seems to be a problem with your installation. Which cuda version do you have installed? What is the system compiler?
I have multiple CUDA versions installed but nvcc reports
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
If this is the wrong version how do I point the scripts to another version?
as shown in the log I am using clang++6.0
It is possible that the cuda in /usr/local/cuda
is another version and not 9.1. To make sure add /usr/local/cuda/bin
to the start of the path.
$ /usr/local/cuda/bin/nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130
How do I select the correct version for compilation?
You can do something like: PATH=/usr/local/cuda/bin:$PATH ./build.sh
to add /usr/local/cuda/bin
first on the path so the nvcc
is picked up from there.
Thanks that seems to have done the trick.
Any idea why I am getting this compiling error?