23 lines
530 B
Bash
Executable File
23 lines
530 B
Bash
Executable File
OPENCV_DIR=/paddle/Paddle/opencv-3.4.7/opencv3
|
|
LIB_DIR=your inference dir
|
|
CUDA_LIB_DIR=/usr/local/cuda/lib64
|
|
CUDNN_LIB_DIR=/usr/lib/x86_64-linux-gnu
|
|
TENSORRT_DIR=your trt dir
|
|
|
|
BUILD_DIR=build
|
|
rm -rf ${BUILD_DIR}
|
|
mkdir ${BUILD_DIR}
|
|
cd ${BUILD_DIR}
|
|
cmake .. \
|
|
-DPADDLE_LIB=${LIB_DIR} \
|
|
-DWITH_MKL=ON \
|
|
-DWITH_GPU=OFF \
|
|
-DWITH_STATIC_LIB=OFF \
|
|
-DWITH_TENSORRT=OFF \
|
|
-DOPENCV_DIR=${OPENCV_DIR} \
|
|
-DCUDNN_LIB=${CUDNN_LIB_DIR} \
|
|
-DCUDA_LIB=${CUDA_LIB_DIR} \
|
|
-DTENSORRT_DIR=${TENSORRT_DIR} \
|
|
|
|
make -j
|