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

前端 未结 3 1277
离开以前
离开以前 2021-01-23 06:08

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

相关标签:
3条回答
  • 2021-01-23 06:53

    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.

    0 讨论(0)
  • 2021-01-23 06:56

    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.

    0 讨论(0)
  • 2021-01-23 07:02

    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.

    0 讨论(0)
提交回复
热议问题