Caffe on Xavier : NVCC cannot locate any architecture codes.

Hi, I’m trying to install Caffe on Xavier, following a post from https://devtalk.nvidia.com/default/topic/1044473/jetson-agx-xavier/caffe-installation-on-xavier/

However, I’m suffering from weird behavior of NVCC in xavier.

I am sure that I correctly followed patching Makefile. I editted the arch line as below.

CUDA_ARCH := -gencode arch=compute_72, code=sm_72
-gencode arch=compute_72, code=compute_72

However, after I type in make -j8, the error code says that There’s no such code.

nvcc fatal : Option ‘–generate-code arch=compute_72’, missing code
Makefile:604: recipe for target ‘.build_release/cuda/src/caffe/layers/deconv_layer.o’ failed

I would like to know what library should I fix(is it CMAKE? CUDA?), and why NVCC does not find any arch codes…

Solved myself

Removed pre-downloaded caffe folder completely, and get fresh files from Caffe git, and start over same process.

also, added one more path on Makefile.config

-LIBRARY_DIRS := (PYTHON_LIB) /usr/local/lib /usr/lib +LIBRARY_DIRS := (PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/aarch64-linux-gnu/hdf5/serial/

Not sure what I did wrong, but problem fixed.