解决#error -- unsupported GNU version! gcc versions later than 11 are not supported!
ubuntu系统gcc版本太高导致cuda编译报错,可以手动切换gcc版本:
#切换gcc版本 sudo update-alternatives --config gcc #切换g++版本 sudo update-alternatives --config g++
ubuntu系统gcc版本太高导致cuda编译报错,可以手动切换gcc版本:
#切换gcc版本 sudo update-alternatives --config gcc #切换g++版本 sudo update-alternatives --config g++