LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/aarch64-linux-gnu /usr/lib/aarch64-linux-gnu/hdf5/serial
CUDA_DIR := /usr/local/cuda-8.0
CUDA_DIR := /usr/local/cuda-9.0
Next, build the Caffe with the following command.
make all
make test
make runtest
make pycaffe -should be finished already, so you can omit this one
make distribute
NVCC src/caffe/layers/base_data_layer.cunvcc fatal : Unsupported gpu architecture 'compute_20'Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/base_data_layer.o' failedmake: *** [.build_release/cuda/src/caffe/layers/base_data_layer.o] Error 1
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
CUDA_ARCH := -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
NVCC src/caffe/layers/base_data_layer.cunvcc fatal : Unsupported gpu architecture 'compute_75'
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/base_data_layer.o' failedmake: *** [.build_release/cuda/src/caffe/layers/base_data_layer.o] Error 1
NVCC src/caffe/layers/base_data_layer.cu./include/caffe/util/cudnn.hpp(112): error: too few arguments in function call
1 error detected in the compilation of "/tmp/tmpxft_0000400d_00000000-4_base_data_layer.cpp4.ii".
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/base_data_layer.o' failedmake: *** [.build_release/cuda/src/caffe/layers/base_data_layer.o] Error 1