使用cuda編譯maskrcnn detectron等問題小結

問題描述:

    struct std::is_convertible’
         struct is_convertible
    error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

The latest gcc version supported with CUDA 9.1 is 6.3.0, it looks like
6.2.1 is the version tested with Fedora 25:

簡單就是cuda9.0和gcc6.4不兼容,簡單的做法就是下載一個gcc5,在cuda/bin下做一個軟連接,該方法也可以解決提示cuda只支持gcc版本不能高於6的問題!

sudo ln -s /share/share/soft/gcc-5.5.0/bin/g++ /usr/local/cuda/bin/g++
sudo ln -s /share/share/soft/gcc-5.5.0/bin/gcc /usr/local/cuda/bin/gcc

參考:
https://devtalk.nvidia.com/default/topic/1028112/cuda-setup-and-installation/nvcc-bug-related-to-gcc-6-lt-tuple-gt-header-/
https://github.com/facebookresearch/maskrcnn-benchmark/issues/216

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章