compile.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. mkdir -p build
  15. cd build
  16. rm -rf *
  17. sudo chmod 777 build
  18. DEMO_NAME=centerpoint_paddle
  19. WITH_MKL=OFF
  20. WITH_GPU=ON
  21. USE_TENSORRT=OFF
  22. LIB_DIR=/home/nvidia/Paddle/paddle_inference_install_dir
  23. CUDNN_LIB=/usr/lib/aarch64-linux-gnu
  24. CUDA_LIB=/usr/local/cuda-11.4/targets/aarch64-linux/lib
  25. TENSORRT_ROOT=/home/nvidia/Paddle/tensorrt
  26. CUSTOM_OPERATOR_FILES="custom_ops/voxelize_op.cu;custom_ops/voxelize_op.cc;custom_ops/iou3d_nms_kernel.cu;custom_ops/postprocess.cc;custom_ops/postprocess.cu"
  27. cmake .. -DPADDLE_LIB=${LIB_DIR} \
  28. -DWITH_MKL=${WITH_MKL} \
  29. -DDEMO_NAME=${DEMO_NAME} \
  30. -DWITH_GPU=${WITH_GPU} \
  31. -DWITH_STATIC_LIB=OFF \
  32. -DUSE_TENSORRT=${USE_TENSORRT} \
  33. -DCUDNN_LIB=${CUDNN_LIB} \
  34. -DCUDA_LIB=${CUDA_LIB} \
  35. -DTENSORRT_ROOT=${TENSORRT_ROOT} \
  36. -DCUSTOM_OPERATOR_FILES=${CUSTOM_OPERATOR_FILES}
  37. make -j