Ubuntu – Nvcc fatal: architecture gpu non prise en charge ‘compute_20

Lors de l’exécution de la commande make pycaffe , J’ai rencontré l’erreur ci-dessous:

 NVCC src/caffe/solvers/adadelta_solver.cu nvcc fatal   : Unsupported
gpu architecture 'compute_20' Makefile:594: recipe for target
'.build_release/cuda/src/caffe/solvers/adadelta_solver.o' failed make:
*** [.build_release/cuda/src/caffe/solvers/adadelta_solver.o] Error 1

System Information
------------------

OS: ubuntu: 16.10

CUDA 8.0

cuDNN: 6.0 

CUDA_ARCH: CUDA_ARCH := 

         -gencode arch=compute_20,code=sm_20 \
        -gencode arch=compute_20,code=sm_21 \
        -gencode arch=compute_30,code=sm_30 \
        -gencode arch=compute_35,code=sm_35 \
        -gencode arch=compute_50,code=sm_50 \
        -gencode arch=compute_52,code=sm_52 \
        -gencode arch=compute_60,code=sm_60 \
        -gencode arch=compute_61,code=sm_61 \
        -gencode arch=compute_61,code=compute_61
 

Quelqu’un peut-il m’aider?

Meilleure réponse

  • Quant à moi, je devais commenter -gencode arch=compute_20 dans Makefile.config :

     CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \
        -gencode arch=compute_35,code=sm_35 \
        -gencode arch=compute_50,code=sm_50
     

    Je me suis arrêté à 50 parce que CUDA deviceQuery m’a montré Capability Major/Minor version number :

     /usr/local/cuda/samples/bin/x86_64/linux/release/deviceQuery Starting...

    CUDA Device Query (Runtime API) version (CUDART static linking)

    Detected 1 CUDA Capable device(s)

    Device 0: "GeForce GTX 960M"
    CUDA Driver Version / Runtime Version 9.0 / 9.0
    CUDA Capability Major/Minor version number: 5.0
    Total amount of global memory: 4044 MBytes (4240965632 bytes)
    ( 5) Multiprocessors, (128) CUDA Cores/MP: 640 CUDA Cores
    GPU Max Clock rate: 1176 MHz (1.18 GHz)
    ....