# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. mkdir -p build cd build rm -rf * sudo chmod 777 build DEMO_NAME=centerpoint_paddle WITH_MKL=OFF WITH_GPU=ON USE_TENSORRT=OFF LIB_DIR=/home/nvidia/Paddle/paddle_inference_install_dir CUDNN_LIB=/usr/lib/aarch64-linux-gnu CUDA_LIB=/usr/local/cuda-11.4/targets/aarch64-linux/lib TENSORRT_ROOT=/home/nvidia/Paddle/tensorrt 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" cmake .. -DPADDLE_LIB=${LIB_DIR} \ -DWITH_MKL=${WITH_MKL} \ -DDEMO_NAME=${DEMO_NAME} \ -DWITH_GPU=${WITH_GPU} \ -DWITH_STATIC_LIB=OFF \ -DUSE_TENSORRT=${USE_TENSORRT} \ -DCUDNN_LIB=${CUDNN_LIB} \ -DCUDA_LIB=${CUDA_LIB} \ -DTENSORRT_ROOT=${TENSORRT_ROOT} \ -DCUSTOM_OPERATOR_FILES=${CUSTOM_OPERATOR_FILES} make -j