From 44cab39f6dfc1c74b3dec073ee0bc4077f0f3a3f Mon Sep 17 00:00:00 2001 From: MyPandaShaoxiang Date: Mon, 16 Sep 2019 15:54:36 +0800 Subject: [PATCH] fix: fix build_fpga.sh WITH_TEST=OFF add build_fpga publish_inference fpga dir --- lite/CMakeLists.txt | 3 +++ lite/tools/build_fpga.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lite/CMakeLists.txt b/lite/CMakeLists.txt index f88043a41b..8440089213 100644 --- a/lite/CMakeLists.txt +++ b/lite/CMakeLists.txt @@ -56,6 +56,9 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM) if (LITE_WITH_NPU) set(INFER_LITE_PUBLISH_ROOT "${INFER_LITE_PUBLISH_ROOT}.npu") endif(LITE_WITH_NPU) + if (LITE_WITH_FPGA) + set(INFER_LITE_PUBLISH_ROOT "${INFER_LITE_PUBLISH_ROOT}.fpga") + endif(LITE_WITH_NPU) message(STATUS "publish inference lib to ${INFER_LITE_PUBLISH_ROOT}") # The final target for publish lite lib diff --git a/lite/tools/build_fpga.sh b/lite/tools/build_fpga.sh index 75d31bc9bd..f8c186e92f 100755 --- a/lite/tools/build_fpga.sh +++ b/lite/tools/build_fpga.sh @@ -18,7 +18,7 @@ cmake .. \ -DLITE_WITH_FPGA=ON \ -DLITE_WITH_OPENMP=ON \ -DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=ON \ - -DWITH_TESTING=ON \ + -DWITH_TESTING=OFF \ -DARM_TARGET_OS=armlinux make -j8 -- GitLab