From df8c332e0ce0f42e3a81e5f06b88e53284635d96 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 test=develop --- 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