Install mxnet for cpp package in TX2 is not that easy
Record here for my experience.
Steps:
Follow the documentation on this site Install MXNet on a Jetson , there is a little different
-
First clone mxnet from github && cd mxnet
git clone --recursive https://github.com/apache/incubator-mxnet.git mxnet cd mxnet git submodule init git submodule update
-
Configure CUDA:
nvcc --version
on my TX2 is CUDA9.0
sudo rm /usr/local/cuda sudo ln -s /usr/local/cuda-9.0 /usr/local/cuda
cudnn v7.1.3
-
Copy config.mk
cp make/crosscompile.jetson.mk config.mk
-
Edit config.mk, in config.mk , modify these settings:
-
USE_CUDA_PATH = /usr/local/cuda
-
USE_OPENCV = 1
-
USE_JEMALLOC = 0 which is different from official guide but VERY IMPORTENT
-
USE_GPERFTOOLS = 0 which is different from official guide but **VERY IMPORTENT
-
USE_CPP_PACKAGE = 1 for cpp package
-
Update the NVCC settings. NVCCFLAGS := -m64
there 3 and 4 is important , or when
-