Trying to get CUDA 7.5 to work with GCC 5.x

こ雲淡風輕ζ 提交于 2019-12-02 02:35:47

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.

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!