benz725 edited a comment on issue #19731: URL: https://github.com/apache/incubator-mxnet/issues/19731#issuecomment-757683577
@leezu @Kh4L I git clone the project agin to my folder : run "git clone --recursive https://github.com/apache/incubator-mxnet mxnet" at my "/home/yfzx/mxnet-src/mxnet_root" folder, then run below lines one by one: > cd /home/yfzx/mxnet-src/mxnet_root/mxnet > set -ex > > export CC=gcc-7 > export CXX=g++-7 > export ONNX_NAMESPACE=onnx > > \#Build ONNX > pushd . > echo "Installing ONNX." > cd 3rdparty/onnx-tensorrt/third_party/onnx > rm -rf build > mkdir -p build > cd build > cmake -DCMAKE_CXX_FLAGS=-I/usr/include/python${PYVER} -DBUILD_SHARED_LIBS=ON .. > make -j$(nproc) > export LIBRARY_PATH=`pwd`:`pwd`/onnx/:$LIBRARY_PATH > export CPLUS_INCLUDE_PATH=`pwd`:$CPLUS_INCLUDE_PATH > export CXXFLAGS=-I`pwd` > > popd > > \# Build ONNX-TensorRT > export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib > export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:/usr/local/cuda-10.2/targets/x86_64-linux/include/ > pushd . > cd 3rdparty/onnx-tensorrt/ > mkdir -p build > cd build > cmake -DONNX_NAMESPACE=$ONNX_NAMESPACE .. -DTENSORRT_ROOT=/usr/local/TensorRT-7.2.1.6 > make -j$(nproc) > export LIBRARY_PATH=`pwd`:$LIBRARY_PATH > popd > > mkdir -p /home/yfzx/mxnet-src/mxnet_root/mxnet/lib/ > cp 3rdparty/onnx-tensorrt/third_party/onnx/build/*.so /home/yfzx/mxnet-src/mxnet_root/mxnet/lib/ > cp -L 3rdparty/onnx-tensorrt/build/libnvonnxparser.so /home/yfzx/mxnet-src/mxnet_root/mxnet/lib/ > > mkdir -p /home/yfzx/mxnet-src/mxnet_root/mxnet/build > cd /home/yfzx/mxnet-src/mxnet_root/mxnet/build > export LD_LIBRARY_PATH=/home/yfzx/mxnet-src/mxnet_root/lib:$LD_LIBRARY_PATH > export LD_LIBRARY_PATH=/usr/local/TensorRT-7.2.1.6/include/:$LD_LIBRARY_PATH > export LIBRARY_PATH=/usr/local/TensorRT-7.2.1.6/include/:$LIBRARY_PATH > rm -rf * > cmake .. -DUSE_CUDA=1 -DUSE_TENSORRT=1 -DUSE_CUDNN=1 -DUSE_OPENCV=1 > cmake --build . --parellel 32 "cmake .. -DUSE_CUDA=1 -DUSE_TENSORRT=1 -DUSE_CUDNN=1 -DUSE_OPENCV=1"can run correctly, but when run "cmake --build . --parellel 32", the terminal will automatically exit. Why does these things happen? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org For additional commands, e-mail: issues-h...@mxnet.apache.org