linux - nvcc 致命 : Unsupported gpu architecture 'compute_20' while compiling matlab

标签 linux cuda gpu matlab-compiler

(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/

相关文章:

opencv - 动态图像大小调整的 GPU 与 CPU 端到端延迟

c++ - Linux 用户空间 header 无法使用 g++ 进行编译

regex - 如何使用 sed 删除不包含模式的行

c - 编写混合 MPI/OpenACC 程序

c++ - 在 linux 下的 c++ 程序中包含 amp.h 库

c++ - Vulkan.hpp Supbass 附件违反验证层

linux - 删除外部硬盘上的所有分区和分区表

c++ - 持续集成服务能否在本地构建 Linux 包?

c++ - 从 GPU 复制到 CPU 比从 CPU 复制到 GPU 慢

python - PyCUDA 正确使用结构