I investigated deeper in this problem. There is no any __CUDACC_VER__ definition in caffe code or cuda headers. This is a boost problem. CUDA 9.1 won't help.
There are several packages that use this definition, I'm not sure whether they are affected by this problem: https://codesearch.debian.net/search?q=CUDACC_VER For applications like caffe your probosed fix is applicable, thanks https://salsa.debian.org/science-team/caffe-contrib/commit/82bab4f604bffdaf9f92f16bbda64a31bbaf2744 Well, seems nothing for the CUDA packaging to change. On 23 January 2018 at 04:37, Andreas Beckmann <a...@debian.org> wrote: > On 2018-01-23 05:02, Lumin wrote: >> The solution is either to >> * [dirty hack] modify/remove the __CUDACC_VER line in >> include/crt/common_functions.h > > Can't you just > > #include <crt/common_functions.h> > #undef __CUDACC_VER__ > #define __CUDACC_VER__ whatever-you-need-if-anything > #include <boost> > > in caffe? (Probably in some top-level caffe header that is always > included first.) > > Would this be fixed in 9.1? > > Andreas -- Best,