CUDA 9.1First, install CUDA 9.1. When installing, add the
--overrideflag to the installer and say yes when it asks to install in an unsupported configuration (that is the entire point of this, right?).
Modify host_config.hAs usual, we need to comment out the section of NVIDIA's host_config.h that prevents us from using newer GCC versions. In a slight twist from last time, we need to modify
/usr/local/cuda/include/crt/host_config.h(Note that the
/usr/local/cudapart depends on where you chose to install during the installation). Comment out the line
#error -- unsupported GNU version! gcc versions later than 6 are not supported!For me, that was line 121.
Modify floatn.hFor some reason, nvcc does not like 128 bit floats, so we need to modify
/usr/include/bits/floatn.h. The easiest way to do this (e.g. the way that involves opening as few files as possible) is to add
#ifdef __CUDACC__ #define __HAVE_FLOAT128 0 #endifjust after the section of floatn.h that defines
__HAVE_FLOAT128. In my copy, this was line 37.
So far, the only error I am getting is related to having an outdated driver, so I think this works.