So, if you try to use nvcc when the system GCC is version 5 and up, you get an \"unsupported version\" error. But - I\'ve heard people report that they\'ve just commented this o
It's essentially futile to try to get GCC 5.x to work with CUDA 7.5 - there are some (or many?) incompatiblity issues which you simply can't resolve. Instead, just upgrade to CUDA 8.0 which has become available since this question was asked.
I think a -D_MWAITXINTRIN_H_INCLUDED
option should fix the issue. Actually I employed a slightly different approach, commenting out the #include <mwaitxintrin.h>
line in x86intrin.h
, and successfully built TensorFlow with CUDA 7.5 and GCC 5.2.1.
UPDATE
For the latest version of TensorFlow (v0.8.0), simply choose to use gcc 4.x when invoking the configure
script.
Consider installing and temporary selecting an older version of the gcc
:
apt-get install gcc-4.8
Then update your alternatives:
update-alternatives --remove-all gcc
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
After compiling TensorFlow you can use previous version of gcc
calling above command with proper path to /usr/bin/gcc-5.x
.