title: Error when Building GPU docker image for caffe: Unsupported gpu architecture 'compute_60'
body: <p>An attempt to build the <em>gpu</em> based <code>caffe</code> docker image was unsuccessful. The command run:</p>
  
  <pre><code>docker build -t caffe:gpu standalone/gpu
  </code></pre>
  
  <p>It ran for about twenty minutes including compiling many numpy/scikit scripts to c-code via <code>cython</code>.   However the build finally failed in an nvidia <code>nvcc</code> step:</p>
  
  <pre><code>[  1%] [  1%] Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_cudnn_pooling_layer.cu.o
  Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile.dir/util/./cuda_compile_generated_im2col.cu.o
  nvcc fatal   : Unsupported gpu architecture 'compute_60'
  CMake Error at cuda_compile_generated_cudnn_pooling_layer.cu.o.cmake:206 (message):
    Error generating
    /opt/caffe/build/src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_cudnn_pooling_layer.cu.o
  
  
  make[2]: *** [src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_cudnn_pooling_layer.cu.o] Error 1
  make[2]: *** Waiting for unfinished jobs....
  nvcc fatal   : Unsupported gpu architecture 'compute_60'
  CMake Error at cuda_compile_generated_im2col.cu.o.cmake:206 (message):
    Error generating
  
  /opt/caffe/build/src/caffe/CMakeFiles/cuda_compile.dir/util/./cuda_compile_generated_im2col.cu.o
  
  
  make[2]: *** [src/caffe/CMakeFiles/cuda_compile.dir/util/./cuda_compile_generated_im2col.cu.o] Error 1
  make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>I am on <code>El Capitan</code> and running on a late 2013 MBPro that has the <code>GT750m</code> nvidia chipset.</p>
  
  <p>Note: The <strong><em>cpu</em></strong> based <code>caffe</code> docker image from their github repo: <a href="https://github.com/BVLC/caffe" rel="nofollow noreferrer">https://github.com/BVLC/caffe</a> <code>docker</code> was successfully built inside the <code>caffe/docker</code> directory on my mac:</p>
  
  <pre><code>docker build -t caffe:cpu standalone/cpu
  </code></pre>
  
  <p>.. and about ten minutes later ..</p>
  
  <pre><code>Successfully built bf71c19501e5
  </code></pre>
  
  <p>There is some mention of a different project <code>arrayfire</code> encountering similar error  <a href="https://github.com/arrayfire/arrayfire/issues/1535" rel="nofollow noreferrer">https://github.com/arrayfire/arrayfire/issues/1535</a> .  However I lack the specific knowledge to troubleshoot the <code>BVLC/caffe/docker</code> commands to try to replicate what appears to be <code>cuda7.5</code> vs <code>cuda8.0</code> versioning issues.</p>
  
  <p>Has anyone successfully built the <strong><em>gpu</em></strong> version of Caffe on docker container from mac?</p>