我已經在Ubuntu 17.04上安裝了cuda-samples-8-0
軟件包,我想用gcc-5
構建樣本,我在我的機器上安裝了gcc-6
。 gcc-6`不被CUDA 8支持,並給出了許多編譯錯誤。如何獲得make
使用gcc-5
?如何使用gcc 5構建CUDA 8樣本?
我試過/usr/local/cuda-8.0/samples
目錄下的sudo make CXX=g++-5 CC=gcc-5
,這個目錄仍然導致使用gcc-6
。
#error -- unsupported GNU version! gcc versions later than 5 are not supported!
^~~~~
還有就是NVCC選項'-ccbin'選擇好的編譯器。但是沒有env字符串來選擇正確的gcc global:https://stackoverflow.com/a/44792397或者嘗試將錯誤生成的編譯註釋掉:https://github.com/BVLC/caffe/wiki /GeForce-GTX-1080,---CUDA-8.0,--- Ubuntu-16.04,---Caffe同時檢查https://stackoverflow.com/questions/6622454 – osgx