Boost under CUDA 9

Note that if you want to use Boost under CUDA 9 it is necessary to put:

#define CUDACC_VER 90000

before you include any boost header. This is because boost has a header nvcc.hpp which checks for the existence of CUDACC_VER and CUDA 9 no longer defines this.

Presume someone will update boost after CUDA 9 goes out officially.

There should be a fix in the next release of Boost. From what I can gather, it was fixed about 21 days ago :P

This is what happens when you’re on the bleeding edge.