未验证 提交 57ecefde 编写于 作者: H huzhiqiang 提交者: GitHub

[x86][compiling] enable with_log in x86 compiling and add with_profile method...

[x86][compiling] enable with_log in x86 compiling and add with_profile method in build.sh #3542 (#3554)
上级 81825474
...@@ -22,6 +22,7 @@ OPTMODEL_DIR="" ...@@ -22,6 +22,7 @@ OPTMODEL_DIR=""
BUILD_TAILOR=OFF BUILD_TAILOR=OFF
BUILD_CV=OFF BUILD_CV=OFF
WITH_LOG=ON WITH_LOG=ON
WITH_PROFILE=OFF
BUILD_NPU=OFF BUILD_NPU=OFF
NPU_DDK_ROOT="$(pwd)/ai_ddk_lib/" # Download HiAI DDK from https://developer.huawei.com/consumer/cn/hiai/ NPU_DDK_ROOT="$(pwd)/ai_ddk_lib/" # Download HiAI DDK from https://developer.huawei.com/consumer/cn/hiai/
BUILD_XPU=OFF BUILD_XPU=OFF
...@@ -228,6 +229,7 @@ function make_full_publish_so { ...@@ -228,6 +229,7 @@ function make_full_publish_so {
-DLITE_WITH_JAVA=$BUILD_JAVA \ -DLITE_WITH_JAVA=$BUILD_JAVA \
-DLITE_WITH_PYTHON=$BUILD_PYTHON \ -DLITE_WITH_PYTHON=$BUILD_PYTHON \
-DLITE_WITH_LOG=$WITH_LOG \ -DLITE_WITH_LOG=$WITH_LOG \
-DLITE_WITH_PROFILE=${WITH_PROFILE} \
-DANDROID_STL_TYPE=$android_stl \ -DANDROID_STL_TYPE=$android_stl \
-DLITE_BUILD_EXTRA=$BUILD_EXTRA \ -DLITE_BUILD_EXTRA=$BUILD_EXTRA \
-DLITE_WITH_CV=$BUILD_CV \ -DLITE_WITH_CV=$BUILD_CV \
...@@ -386,6 +388,8 @@ function make_x86 { ...@@ -386,6 +388,8 @@ function make_x86 {
-DWITH_GPU=OFF \ -DWITH_GPU=OFF \
-DLITE_WITH_PYTHON=${BUILD_PYTHON} \ -DLITE_WITH_PYTHON=${BUILD_PYTHON} \
-DLITE_BUILD_EXTRA=ON \ -DLITE_BUILD_EXTRA=ON \
-DWITH_LOG=${WITH_LOG} \
-DLITE_WITH_PROFILE=${WITH_PROFILE} \
-DLITE_WITH_XPU=$BUILD_XPU \ -DLITE_WITH_XPU=$BUILD_XPU \
-DLITE_WITH_XTCL=$BUILD_XTCL \ -DLITE_WITH_XTCL=$BUILD_XTCL \
-DXPU_SDK_ROOT=$XPU_SDK_ROOT \ -DXPU_SDK_ROOT=$XPU_SDK_ROOT \
...@@ -497,11 +501,15 @@ function main { ...@@ -497,11 +501,15 @@ function main {
WITH_LOG="${i#*=}" WITH_LOG="${i#*=}"
shift shift
;; ;;
--with_profile=*)
WITH_PROFILE="${i#*=}"
shift
;;
--build_npu=*) --build_npu=*)
BUILD_NPU="${i#*=}" BUILD_NPU="${i#*=}"
shift shift
;; ;;
--npu_ddk_root=*) --npu_ddk_root=*)
NPU_DDK_ROOT="${i#*=}" NPU_DDK_ROOT="${i#*=}"
shift shift
;; ;;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册