问题
#error -- unsupported GNU version! gcc versions later than 6 are not supported!
,CUDA9.1不支持高版本的gcc
解决方法一: 安装低版本的gcc, 然后使用
update-alternatives
命令可以自由地切换不同版本的gcc
如下图的两句命令, 安装了低版本的gcc和g++,
图片来源于github
使用
update-alternatives
命令的好处是不用再手动修改gcc的软链接了, 方便快捷
解决方法二: 不用切换系统的gcc版本
我是使用make命令编译makefile时出现的这个错误, 编译过程中, 执行nvcc命令报错
#error -- unsupported GNU version! gcc versions later than 6 are not supported!
, cuda9.1目录下的nvcc会直接执行/usr/bin/gcc, 而不是执行gcc这个命令, 所以在~/.bashrc中使用alias调整gcc的指向对nvcc没有用, 而且我没有管理员权限, 没法更改系统的gcc版本, 这该怎么办呢?
-
在自己的home目录下编译gcc-5
-
修改makefile文件, 增加一句
NVCCFLAGS += --compiler-bindir /your/path/to/gcc
, 如下面的第四行, 参数–compiler-bindir能够让nvcc使用指定版本的gcc, 这样就不用修改系统的gcc版本了, 问题成功解决!
CUDA_HOME := /usr/local/cuda-9.1
NVCC := $(CUDA_HOME)/bin/nvcc
NVCCFLAGS += --default-stream per-thread
NVCCFLAGS += --compiler-bindir /your/path/to/gcc
英伟达官方文档提到过该参数
Ubuntu18.04——切换gcc版本 / 报错解决: error -- unsupported GNU version gcc later than 10 are not supported
报错截图/usr/local/cuda/include/crt/host_config.h:139:2: error: #error – unsupported GNU version! gcc versions later than 10 are not supported! The nvcc flag ‘-allow-unsupported-compiler’ can be used to o
Python versions prior to 3.5 are not supported for PyFlink [sys.version_info(major=2, minor=7, micro
Flink 1.11.0版本,运行bin/pyFlink-shell.sh local命令事报错:Traceback (most recent call last): File "/usr/lib64/python2.7/runpy.py", line 151, in _run_module_as_main mod_name, loader, code, fname = _get_module_details(mod_name) File "/usr/lib64/python2.7/run
sql server 动态生成日历表 sql生成连续日期
selectconvert (varchar(10),dateadd(d, number, getdate()),23) as workday
from master..spt_values
where type = 'p' and number between 1 and 365 select number from master..spt_values where ty
3 String.prototype.gblen = function() {
4 var len = 0;
5 for (var i = 0; i < this.length; i++) {
6 if (this.charCodeAt(i) > 127 || th
java实现linux服务器 监控 jdk自带jvm监控linux
简介jdk有好多自带的工具比如jconsole、jvisualvm、jstatd等
Windows的路径:%JAVA_HOME/bin/目录下,配置好环境变量直接用cmd执行jvisualvm命令即可
mac的jvisualvm的启动路径:/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jvisualvm使
Android Unsupported class file major version 55
DPI-1072: the Oracle Client library version is unsupported
Dx unsupported class file version 52.0
More than one remote source not supported
Unsupported Python version, 3.9.0, for decompilation
Unsupported class file major version 55
Usage of dash-separated 'index-url' will not be supported in future versions
android Unsupported class file major version 55
android studio Unsupported class file major version 55
centos gcc -version