ubuntu系统gcc版本太高导致cuda编译报错,可以手动切换gcc版本:
#切换gcc版本 sudo update-alternatives --config gcc #切换g++版本 sudo update-alternatives --config g++