【Deepin 20系统】解决Error: unsupported compiler: 8.3.0. Use --override to override this check.

简介: 本文介绍了在Deepin 20系统中解决安装CUDA 10.0时遇到的GCC版本不支持问题的具体步骤。

问题

环境

系统: Deepin 20 OS
CUDA:10.0
gcc:8.3
g++:8.3

在linux系统安装cuda-10.0的时候,报错
Error: unsupported compiler: 8.3.0. Use --override to override this check.
Error: cannot find Toolkit in /media/mgege007/linuxType/cuda-10.0
原因是
GCC-8.3版本不能支持CUDA-10.0的版本。具体对应参考官网信息
GCC内核与CUDA对应表

1.png

解决办法

(1)安装gcc-7

sudo apt install gcc-7 g++-7

(2)删除原来版本gcc建立的软链接

sudo rm -rf /usr/bin/gcc
sudo rm -rf usr/bin/g++

(3)建立新的gcc版本的软连接

sudo ln -s /usr/bin/gcc-7 /usr/bin/gcc
sudo ln -s /usr/bin/g++-7 /usr/bin/g++

(4)查看gcc版本

gcc --version

就可以看到更换gcc成功

目录
相关文章
|
2月前
|
Python
解决安装ConcurrentLogHandler报错error in ConcurrentLogHandler setup command: use_2to3 is invalid.
本文介绍了在Python环境下安装ConcurrentLogHandler时遇到的"use_2to3 is invalid"错误的解决方法,主要是通过降级setuptools到57.5.0版本来解决该问题。
132 2
|
4月前
|
Linux Go C语言
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
69 0
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
在处理时有错误发生: trousers tpm-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
|
C++
编译JDK11:ERROR: Build failed for target ‘default (exploded-image)‘ in configuration ‘windows-x86_64
编译JDK11:ERROR: Build failed for target ‘default (exploded-image)‘ in configuration ‘windows-x86_64
255 0
Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
95 0
编译OpenJDK8:configure: error: Could not find all X11 headers
编译OpenJDK8:configure: error: Could not find all X11 headers
151 0
|
Linux
LINUX报错:apt transaction returned result exit-failed
LINUX报错:apt transaction returned result exit-failed
196 0
Unknown run configuration type AndroidRunConfigurationType的解决办法
Unknown run configuration type AndroidRunConfigurationType的解决办法
103 0
|
自然语言处理 Python
A reportable application error has occurred. Conda has prepared the above report......
A reportable application error has occurred. Conda has prepared the above report......
234 0
A reportable application error has occurred. Conda has prepared the above report......
|
C++
configure: error: libmpfr not found or uses a different ABI (including static vs shared).
配置mpc的时候提示此错误: configure: error: libmpfr not found or uses a different ABI (including static vs shared).
2756 0