On 03/03/20 22:10, Roger Oberholtzer wrote:
On Tue, Mar 3, 2020 at 3:58 PM Dave Howorth <dave@howorth.org.uk> wrote:
Don't know much about it but maybe it is easier to isolate the extra gcc in a VM?
I decided to see what happened on a test computer. This is what I did:
1. Installed cuda-repo-opensuse15-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm, from NVIDIA. It really adds a local repo with all the RPMs. That's why it's >2.6GB
2. Installed the RPMS actually needed (256 MB) from the above repo.
3. Added gcc8 and gcc8-c++ from OBS. The existing links to gcc 9 remained unchanged. This was my worry. Release 8 is installed along side of release 9, and release 9 seems to remain the default.
4. When running nvcc, add this to the command line: -ccbin=gcc-8
5. My library and program compiled without error. It just needs the libcuda.so.1 that gets installed as part of the NVIDIA driver (it used a stub library to complete the compile). Updating my system from Nouveau to NVIDIA is next. Then I will be able to test that all this results in functioning software.
So I guess my question was answered. But there is still more to do before I can say CUDA is doing what I need it to do...
I simply removed the #if gcc version check in the CUDA headers. It worked fine with Tumbleweed's gcc 9 for now, but unless I find an error (i.e. the actual reason why NVIDIA wants to avoid gcc 9), I will not install two compilers. -- Christoph Feck -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org