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

前端 未结 3 1314
离开以前
离开以前 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 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.

提交回复
热议问题