title: nvcc fatal : Unsupported gpu architecture 'compute_20' while compiling matlab
body: <p><em>(CentOS Linux release 7.3;cuda 9.1;GPU:Tesla P100-PCIE)</em></p>
  
  <p>I've installed Matlab2018a on a server, but when I tried to do this:
      <code>vl_compilenn('enableGpu', true);</code>
  I encountered this:</p>
  
  <pre><code>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'
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Building with 'nvcc'.
  Error using mex
  nvcc fatal   : Unsupported gpu architecture 'compute_20'
  
  
  Error in vl_compilenn&gt;mex_compile (line 529)
  mex(mopts{:}) ;
  
  Error in vl_compilenn (line 487)
  mex_compile(opts, srcs{i}, objfile, flags.mexcu) ;
  </code></pre>
  
  <p>I have searched similar questions but none of them works, can anyone give me a hand?</p>
  
  <p>PS：more information about the server is listed below:</p>
  
  <pre><code>[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
  </code></pre>