未验证 提交 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=""
BUILD_TAILOR=OFF
BUILD_CV=OFF
WITH_LOG=ON
WITH_PROFILE=OFF
BUILD_NPU=OFF
NPU_DDK_ROOT="$(pwd)/ai_ddk_lib/" # Download HiAI DDK from https://developer.huawei.com/consumer/cn/hiai/
BUILD_XPU=OFF
......@@ -228,6 +229,7 @@ function make_full_publish_so {
-DLITE_WITH_JAVA=$BUILD_JAVA \
-DLITE_WITH_PYTHON=$BUILD_PYTHON \
-DLITE_WITH_LOG=$WITH_LOG \
-DLITE_WITH_PROFILE=${WITH_PROFILE} \
-DANDROID_STL_TYPE=$android_stl \
-DLITE_BUILD_EXTRA=$BUILD_EXTRA \
-DLITE_WITH_CV=$BUILD_CV \
......@@ -386,6 +388,8 @@ function make_x86 {
-DWITH_GPU=OFF \
-DLITE_WITH_PYTHON=${BUILD_PYTHON} \
-DLITE_BUILD_EXTRA=ON \
-DWITH_LOG=${WITH_LOG} \
-DLITE_WITH_PROFILE=${WITH_PROFILE} \
-DLITE_WITH_XPU=$BUILD_XPU \
-DLITE_WITH_XTCL=$BUILD_XTCL \
-DXPU_SDK_ROOT=$XPU_SDK_ROOT \
......@@ -497,6 +501,10 @@ function main {
WITH_LOG="${i#*=}"
shift
;;
--with_profile=*)
WITH_PROFILE="${i#*=}"
shift
;;
--build_npu=*)
BUILD_NPU="${i#*=}"
shift
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册