NVCaffe support on TX2

Hi,

The SM=20 architecture is deprecated in our latest CUDA toolkit.
Please update the compiling flag of Makefile.config (copy from Makefile.config.example).

https://github.com/NVIDIA/caffe/blob/caffe-0.17/Makefile.config.example#L34

CUDA_ARCH := 	-gencode arch=compute_62,code=sm_62 \
		-gencode arch=compute_62,code=compute_62

Thanks.

Hi,

I just want to point out that the original answer said to install nvcaffe-0.15 due to a TensorRT2.1 dependancy.

I am running Jetpack 3.3 with TensorRT4.0.2.0 and have successfully installed with the latest version of nvcaffe, 0.17.1. I needed the latest version due to support for SSD models for object detection (e.g. MobileNet)

The installation went very with the exception of the following error:

LD -o .build_release/lib/libcaffe-nv.so.0.17.1
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `__stack_chk_guard@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o)(.text+0x64): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:600: recipe for target '.build_release/lib/libcaffe-nv.so.0.17.1' failed
make: *** [.build_release/lib/libcaffe-nv.so.0.17.1] Error 1
nvidia@tegra-ubuntu:~/DeepLearning/caffe$

Which I solved with this:

sudo apt-get install autoconf automake libtool nasm
JPEG_TURBO_VERSION=1.5.2 && \
wget -q -O - https://github.com/libjpeg-turbo/libjpeg-turbo/archive/${JPEG_TURBO_VERSION}.tar.gz | tar -xzf - && \
cd libjpeg-turbo-${JPEG_TURBO_VERSION} && \
autoreconf -fiv && \
./configure --enable-shared --prefix=/usr 2>&1 >/dev/null && \
sudo make -j"$(nproc)" install 2>&1 >/dev/null && \
rm -rf libjpeg-turbo-${JPEG_TURBO_VERSION}

#make all -j4
LD -o .build_release/lib/libcaffe-nv.so.0.17.3
collect2: error: ld returned 1 exit status
Makefile:600: recipe for target ‘.build_release/lib/libcaffe-nv.so.0.17.3’ failed
make: *** [.build_release/lib/libcaffe-nv.so.0.17.3] Error 1

How to solve this?
Big Thanks

Hi,

Please help to check if your configure file is similar with the steps here:
https://devtalk.nvidia.com/default/topic/1044473/jetson-agx-xavier/caffe-installation-on-xavier/post/5299458/#5299458

Thanks.