build.sh 480 字节
Newer Older
D
Double_V 已提交
1 2 3 4
OPENCV_DIR=your_opencv_dir
LIB_DIR=your_paddle_inference_dir
CUDA_LIB_DIR=your_cuda_lib_dir
CUDNN_LIB_DIR=your_cudnn_lib_dir
littletomatodonkey's avatar
littletomatodonkey 已提交
5 6 7 8 9 10 11 12 13 14

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 \
L
LDOUBLEV 已提交
15
    -DWITH_TENSORRT=OFF \
littletomatodonkey's avatar
littletomatodonkey 已提交
16
    -DOPENCV_DIR=${OPENCV_DIR} \
littletomatodonkey's avatar
littletomatodonkey 已提交
17 18
    -DCUDNN_LIB=${CUDNN_LIB_DIR} \
    -DCUDA_LIB=${CUDA_LIB_DIR} \
L
LDOUBLEV 已提交
19
    -DTENSORRT_DIR=${TENSORRT_DIR} \
littletomatodonkey's avatar
littletomatodonkey 已提交
20 21

make -j