NVidia is archaic as f..., so they don't officially support any current compiler.
but I found a bunch of ugly hacks to make it work with:
- gcc 7.3.0
- cuda 9.1.85_387.26
- install from the
.run
file with argument--override
so it asks you if you're ok with having an unsupported system instead of failing because you're not using ages old ubuntu :P - install the CUDA toolkit, but not the (often older than OS provided) GPU driver and not the examples.
- also install to
/opt/cuda-9.1
because your're not your package manager and it doesn't belong into/usr/
!
- install from the
- then comment out line 121 of
/opt/cuda-9.1/include/crt/host_config.h
(the one#error
ing about unsupported gcc version)