build.sh 540 字节
Newer Older
K
Kaibing Chen 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
set -x
#http://www.paddlepaddle.org/documentation/docs/en/1.4/advanced_usage/deploy/inference/build_and_install_lib_en.html
alias wget='wget --no-check-certificat '
alias git="/usr/bin/git"

#set python home
export PYTHONHOME=~/.jumbo

wget https://paddle-inference-lib.bj.bcebos.com/1.4.1-gpu-cuda9-cudnn7-avx-mkl/fluid_inference.tgz
tar -xzf fluid_inference.tgz
mkdir so
cp `find fluid_inference -name '*.so*'`  so/

git clone https://github.com/pybind/pybind11.git
cd pybind11 && git checkout v2.2.4 && cd -

make

mv PyCNNPredict.so so