Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Paddle Inference

  1. Install the Paddle Inference product built from the source code to the service directory. The following example uses /opt/paddle-inference.
    1
    2
    3
    4
    5
    mkdir -p /opt/paddle-inference 
    cp -a paddle_inference_install_dir/* /opt/paddle-inference/  
    
    export PADDLE_INFERENCE_DIR=/opt/paddle-inference 
    export LD_LIBRARY_PATH=${PADDLE_INFERENCE_DIR}/paddle/lib:${LD_LIBRARY_PATH:-}
    
    The installation directory must contain the following content:
    1
    2
    3
    4
    paddle/include/ 
    paddle/lib/ 
    third_party/ 
    version.txt
    
  2. Check the header file, dynamic library, and version file.
    1
    2
    3
    4
    5
    6
    7
    test -f ${PADDLE_INFERENCE_DIR}/paddle/include/paddle_inference_api.h 
    test -f ${PADDLE_INFERENCE_DIR}/paddle/lib/libpaddle_inference.so 
    test -f ${PADDLE_INFERENCE_DIR}/version.txt  
    
    find ${PADDLE_INFERENCE_DIR}/paddle/lib -maxdepth 1 -type f \
      -name 'libpaddle_inference*' | sort
    cat ${PADDLE_INFERENCE_DIR}/version.txt
    
    The expected output is as follows.
    1
    2
    3
    4
    5
    libpaddle_inference.a 
    libpaddle_inference.so 
    WITH_GPU: ON 
    CUDA version: 13.0 
    CUDNN version: v9.21