报错:/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11269): error: argument of type "void *" is incompatible with parameter of type "long long *"
报错:/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11269): error: argument of type "void *" is incompatible with parameter of type "long long *"
环境:cuda9.0,python3.6,pytorch1.0,gcc5.5
服务器的环境,所以不能随意升级
报错原因在这里有讨论:
Apparently, there's a GCC bug involved:
[Bug 76731 - AVX512] _mm512_i32gather_epi32 and other scatter/gather routines have incorrect signature
It seems like GCC 5.5 shipped with some
avx512?intrin.h
headers that switched to usingvoid*
andconst void*,
but without switching the builtins to do the same. This was resolved in a post-release version of GCC 5. About GCC 6.x - I'm not sure.A way to get around this is discussed on this forum thread: Downloading the patched headers from the GNU servers.
Shell script for use with GCC 5 (on a Linux system):
for f in avx512fintrin.h avx512pfintrin.h avx512vlintrin.h; do curl -H "User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" -o $f "https://gcc.gnu.org/viewcvs/gcc/branches/gcc-5-branch/gcc/config/i386/${f}?view=co&revision=245536&content-type=text%2Fplain&pathrev=245536" done && mv avx512*intrin.h /usr/lib/gcc/x86_64-linux-gnu/5/include/
Actually, the files might be identical for all 3 versions, but I haven't checked.
Note: If you're wondering why the user-agent string - it's to avoid the server from turning away clients it doesn't like with a "Forbidden" response. Of course it doesn't have to be this specific UA string.
亲测,执行一下上面的脚本,也就是把那几个头文件拷贝过去,问题就解决了
当然,如果是自用环境,可以直接升级gcc试一试
相关文章
- Linux 基础篇-VIM编辑器
- import cv2 报错(linux环境)ImportError: libGL.so.1: cannot open shared object file: No such file or direc
- 【Linux/Git/ROS/Shell/Docker】报错问题汇总1
- Linux系统压力测试工具stress
- Linux产生死锁的必要条件和常见的锁种类
- Linux内核调试技术之自构proc
- Linux学习笔记之安装报错/lib/ld-linux.so.2: bad ELF interpreter
- linux 常用命令
- linux java报错汇总
- 【Linux】shell中svn报错:svn: Can't convert string from 'UTF-8' to native encoding:xxx
- linux 安装jdk-7u45-linux-x64.tar.gz
- DEBUG | R | Mac | Linux | 报错 | 疑难杂症
- CDH大数据集群Linux系统参数调优
- linux 安装配置zookeeper
- 【错误记录】编译 Linux 内核报错 ( fatal error: openssl/opensslv.h: No such file or directory )
- CentOS(Linux)中解决MySQL乱码
- linux下文件夹的创建、复制、剪切、重命名、清空和删除命令
- linux 下 root 权限执行 npm install 报错:Error:EACCES:permission denied ‘xxx‘?
- Linux执行tar解压报错tar: Error is not recoverable: exiting now
- Linux(CentOS)中常用软件安装,使用及异常——Zookeeper, Kafka