Open paskino opened 3 years ago
I think cuda 9.2 (which is quite old now) requires an old g++ (<7.3) yet based on https://github.com/SyneRBI/SIRF-SuperBuild/issues/494#issuecomment-781279670 you have 7.5.
The cuda compiler version has to be compatible with the C++ compiler. The usual way of installing CUDA is via https://developer.nvidia.com/cuda-toolkit-archive, which firstly uses apt-get install cuda
rather than nvidia-cuda-toolkit
and secondly doesn't even provide CUDA 9 for Ubuntu 18.04.
Don't mix and match deprecated things with new things!
By any chance, does replacing -std=c++14
with -std=c++11
fix things for you?
I installed nvidia-cuda-toolkit
following a suggestion of ubuntu itself after I called nvcc
on the machine where it wasn't installed!
-std=c++11
doesn't help.
On a Ubuntu 18.04 I cannot build NiftyPET. See https://github.com/SyneRBI/SIRF-SuperBuild/issues/494
I ran
Error
I then tried to install CUDA Toolkit from NVidia, and got 10.1. With it it works, both with conda and stock python.
Maybe 9.1, which is installed by Ubuntu is not sufficient for NiftyPET?