(CentOS Linux 7.3 版;cuda 9.1;GPU:Tesla P100-PCIE)
我已经在服务器上安装了 Matlab2018a,但是当我尝试这样做时:
vl_compilenn('enableGpu', true);
我遇到了这个:
vl_compilenn: CUDA: MEX config file:
'/data1/zhangdinghuai/gitrepo/explanatoryGraph/matconvnet-1.0-
beta24/matlab/src/config/mex_CUDA_glnxa64.xml'
Building with 'nvcc'.
nvcc fatal : Unsupported gpu architecture 'compute_20'
和
Building with 'nvcc'.
Error using mex
nvcc fatal : Unsupported gpu architecture 'compute_20'
Error in vl_compilenn>mex_compile (line 529)
mex(mopts{:}) ;
Error in vl_compilenn (line 487)
mex_compile(opts, srcs{i}, objfile, flags.mexcu) ;
我搜索过类似的问题,但没有一个有效,谁能帮帮我?
PS:关于服务器的更多信息如下:
[zhangdinghuai@gpu01 2018a]$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-
noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages- 4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.3.1611 (Core)
Release: 7.3.1611
Codename: Core
[zhangdinghuai@gpu01 2018a]$ cat /etc/issue
\S
Kernel \r on an \m
[zhangdinghuai@gpu01 2018a]$ cat /proc/version
Linux version 3.10.0-514.26.1.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Thu Jun 29 16:05:25 UTC 2017
最佳答案
在此处“nvcc fatal : Unsupported gpu architecture 'compute_20' while cuda 9.1+caffe+openCV 3.4.0 is installed”或Askububtu 的类似主题中, 建议编辑 makefile.config
并注释掉 -gencode arch=compute_20
。
您能否分享您正在使用的确切内核版本、具有 PCI ID 的确切 PCI 设备和驱动程序版本(如果有)。这可能会更好地了解您的环境,也有助于回答更多问题。
关于linux - nvcc 致命 : Unsupported gpu architecture 'compute_20' while compiling matlab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50247154/