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
.runfile with argument--overrideso 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.1because your're not your package manager and it doesn't belong into/usr/! - then comment out line 121 of
/opt/cuda-9.1/include/crt/host_config.h(the one#erroring about unsupported gcc version)
- install from the
- ugly low level include file hack:
- edit
/usr/include/bits/floatn.h, adding the following after the#if/#else/#endifblock that sets__HAVE_FLOAT128:
- edit
#if CUDART_VERSION
#undef __HAVE_FLOAT128
#define __HAVE_FLOAT128 0
#endif