From 18b5f852d7163323220732691ed0b3fd5e393f0c Mon Sep 17 00:00:00 2001 From: TianXiaogang Date: Tue, 17 Sep 2019 10:56:03 +0800 Subject: [PATCH] fix fpga build shell and publish dir name (#2046) * fix: fix build_fpga.sh WITH_TEST=OFF add build_fpga publish_inference fpga dir * 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