未验证 提交 9d4c093c 编写于 作者: H huzhiqiang 提交者: GitHub

【OPT】 change name form `model_optimize_tool` into `OPT` (#2850)

* modify opt name test=develop

* fix code style test=develop

* test=develop
上级 3b16684d
...@@ -296,10 +296,10 @@ if (LITE_ON_TINY_PUBLISH) ...@@ -296,10 +296,10 @@ if (LITE_ON_TINY_PUBLISH)
endif() endif()
if (LITE_ON_MODEL_OPTIMIZE_TOOL) if (LITE_ON_MODEL_OPTIMIZE_TOOL)
message(STATUS "Compiling model_optimize_tool") message(STATUS "Compiling OPT")
lite_cc_binary(model_optimize_tool SRCS model_optimize_tool.cc cxx_api_impl.cc paddle_api.cc cxx_api.cc lite_cc_binary(OPT SRCS opt.cc cxx_api_impl.cc paddle_api.cc cxx_api.cc
DEPS gflags kernel op optimizer mir_passes utils) DEPS gflags kernel op optimizer mir_passes utils)
add_dependencies(model_optimize_tool op_list_h kernel_list_h all_kernel_faked_cc supported_kernel_op_info_h) add_dependencies(OPT op_list_h kernel_list_h all_kernel_faked_cc supported_kernel_op_info_h)
endif(LITE_ON_MODEL_OPTIMIZE_TOOL) endif(LITE_ON_MODEL_OPTIMIZE_TOOL)
lite_cc_test(test_paddle_api SRCS paddle_api_test.cc DEPS paddle_api_full paddle_api_light lite_cc_test(test_paddle_api SRCS paddle_api_test.cc DEPS paddle_api_full paddle_api_light
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#endif #endif
// "supported_kernel_op_info.h", "all_kernel_faked.cc" and "kernel_src_map.h" // "supported_kernel_op_info.h", "all_kernel_faked.cc" and "kernel_src_map.h"
// are created automatically during model_optimize_tool's compiling period // are created automatically during OPT's compiling period
#include <iomanip> #include <iomanip>
#include "all_kernel_faked.cc" // NOLINT #include "all_kernel_faked.cc" // NOLINT
#include "kernel_src_map.h" // NOLINT #include "kernel_src_map.h" // NOLINT
......
...@@ -62,17 +62,17 @@ function prepare_thirdparty { ...@@ -62,17 +62,17 @@ function prepare_thirdparty {
fi fi
} }
function build_model_optimize_tool { function build_opt {
cd $workspace cd $workspace
prepare_thirdparty prepare_thirdparty
mkdir -p build.model_optimize_tool mkdir -p build.opt
cd build.model_optimize_tool cd build.opt
cmake .. -DWITH_LITE=ON \ cmake .. -DWITH_LITE=ON \
-DLITE_ON_MODEL_OPTIMIZE_TOOL=ON \ -DLITE_ON_MODEL_OPTIMIZE_TOOL=ON \
-DWITH_TESTING=OFF \ -DWITH_TESTING=OFF \
-DLITE_BUILD_EXTRA=ON \ -DLITE_BUILD_EXTRA=ON \
-DWITH_MKL=OFF -DWITH_MKL=OFF
make model_optimize_tool -j$NUM_PROC make OPT -j$NUM_PROC
} }
function make_tiny_publish_so { function make_tiny_publish_so {
...@@ -395,7 +395,7 @@ function main { ...@@ -395,7 +395,7 @@ function main {
shift shift
;; ;;
build_optimize_tool) build_optimize_tool)
build_model_optimize_tool build_opt
shift shift
;; ;;
cuda) cuda)
......
...@@ -519,7 +519,7 @@ function test_model_optimize_tool_compile { ...@@ -519,7 +519,7 @@ function test_model_optimize_tool_compile {
cd $workspace cd $workspace
cd build cd build
cmake .. -DWITH_LITE=ON -DLITE_ON_MODEL_OPTIMIZE_TOOL=ON -DWITH_TESTING=OFF -DLITE_BUILD_EXTRA=ON cmake .. -DWITH_LITE=ON -DLITE_ON_MODEL_OPTIMIZE_TOOL=ON -DWITH_TESTING=OFF -DLITE_BUILD_EXTRA=ON
make model_optimize_tool -j$NUM_CORES_FOR_COMPILE make OPT -j$NUM_CORES_FOR_COMPILE
} }
function _test_paddle_code_generator { function _test_paddle_code_generator {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册