未验证 提交 2db2e2d6 编写于 作者: H huzhiqiang 提交者: GitHub

[x86][CodeStyle] Remove glog and gflag from x86 base kernel implementaion code #3635

上级 892bf96f
...@@ -8,7 +8,7 @@ lite_cc_library(target_wrapper_x86 SRCS target_wrapper.cc) ...@@ -8,7 +8,7 @@ lite_cc_library(target_wrapper_x86 SRCS target_wrapper.cc)
if (LITE_ON_MODEL_OPTIMIZE_TOOL) if (LITE_ON_MODEL_OPTIMIZE_TOOL)
return() return()
endif(LITE_ON_MODEL_OPTIMIZE_TOOL) endif(LITE_ON_MODEL_OPTIMIZE_TOOL)
lite_cc_library(dynamic_loader SRCS dynamic_loader.cc DEPS glog gflags) lite_cc_library(dynamic_loader SRCS dynamic_loader.cc)
lite_cc_library(dynload_mklml SRCS mklml.cc DEPS dynamic_loader mklml) lite_cc_library(dynload_mklml SRCS mklml.cc DEPS dynamic_loader mklml)
lite_cc_library(x86_cpu_info SRCS cpu_info.cc) lite_cc_library(x86_cpu_info SRCS cpu_info.cc)
......
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
#include <unistd.h> #include <unistd.h>
#endif // _WIN32 #endif // _WIN32
#include <gflags/gflags.h>
#include <algorithm> #include <algorithm>
#include "lite/utils/cp_logging.h"
#include "lite/utils/env.h" #include "lite/utils/env.h"
......
...@@ -17,8 +17,6 @@ limitations under the License. */ ...@@ -17,8 +17,6 @@ limitations under the License. */
#include <mutex> // NOLINT #include <mutex> // NOLINT
#include <string> #include <string>
#include "gflags/gflags.h"
#include "glog/logging.h"
#include "lite/backends/x86/cupti_lib_path.h" #include "lite/backends/x86/cupti_lib_path.h"
#include "lite/backends/x86/port.h" #include "lite/backends/x86/port.h"
#include "lite/backends/x86/warpctc_lib_path.h" #include "lite/backends/x86/warpctc_lib_path.h"
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#pragma once #pragma once
#include <glog/logging.h>
#include <string> #include <string>
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#pragma once #pragma once
#include <string> #include <string>
#include "glog/logging.h"
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
#include "lite/utils/string.h" #include "lite/utils/string.h"
namespace paddle { namespace paddle {
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#pragma once #pragma once
#include <glog/logging.h>
#include <string> #include <string>
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
#include "lite/utils/paddle_enforce.h" #include "lite/utils/paddle_enforce.h"
namespace paddle { namespace paddle {
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
#pragma once #pragma once
#include <string> #include <string>
#include "glog/logging.h"
#include "lite/backends/x86/jit/gen/act.h" #include "lite/backends/x86/jit/gen/act.h"
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#pragma once #pragma once
#include <string> #include <string>
#include "glog/logging.h"
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
#pragma once #pragma once
#include <string> #include <string>
#include "glog/logging.h"
#include "lite/backends/x86/jit/gen/act.h" #include "lite/backends/x86/jit/gen/act.h"
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include <stdlib.h> // for malloc and free #include <stdlib.h> // for malloc and free
#include <string> #include <string>
#include <vector> #include <vector>
#include "glog/logging.h"
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
#include "lite/utils/paddle_enforce.h" #include "lite/utils/paddle_enforce.h"
namespace paddle { namespace paddle {
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#pragma once #pragma once
#include <glog/logging.h>
#include <string> #include <string>
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
#include "lite/utils/paddle_enforce.h" #include "lite/utils/paddle_enforce.h"
namespace paddle { namespace paddle {
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#pragma once #pragma once
#include <string> #include <string>
#include "glog/logging.h"
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#pragma once #pragma once
#include <string> #include <string>
#include "glog/logging.h"
#include "lite/backends/x86/jit/gen/jitcode.h" #include "lite/backends/x86/jit/gen/jitcode.h"
#include "lite/utils/cp_logging.h"
namespace paddle { namespace paddle {
namespace lite { namespace lite {
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#pragma once #pragma once
#include <glog/logging.h>
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <limits> #include <limits>
...@@ -22,6 +21,7 @@ ...@@ -22,6 +21,7 @@
#include "lite/backends/x86/jit/helper.h" #include "lite/backends/x86/jit/helper.h"
#include "lite/backends/x86/jit/kernel_base.h" #include "lite/backends/x86/jit/kernel_base.h"
#include "lite/backends/x86/jit/macro.h" #include "lite/backends/x86/jit/macro.h"
#include "lite/utils/cp_logging.h"
#include "lite/utils/paddle_enforce.h" #include "lite/utils/paddle_enforce.h"
namespace paddle { namespace paddle {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <string> #include <string>
#define GLOG_NO_ABBREVIATED_SEVERITIES // msvc conflict logging with windows.h #define GLOG_NO_ABBREVIATED_SEVERITIES // msvc conflict logging with windows.h
#include "glog/logging.h" #include "lite/utils/cp_logging.h"
#if !defined(_WIN32) #if !defined(_WIN32)
#include <dlfcn.h> // dladdr #include <dlfcn.h> // dladdr
......
...@@ -14,16 +14,15 @@ limitations under the License. */ ...@@ -14,16 +14,15 @@ limitations under the License. */
#pragma once #pragma once
#include <glog/logging.h>
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <vector> #include <vector>
#include "lite/backends/x86/math/math_function.h"
#include "lite/fluid/eigen.h" #include "lite/fluid/eigen.h"
#include "lite/fluid/for_range.h"
#include "lite/fluid/transform.h" #include "lite/fluid/transform.h"
#include "lite/utils/cp_logging.h"
#include "lite/utils/paddle_enforce.h" #include "lite/utils/paddle_enforce.h"
#include "lite/backends/x86/math/math_function.h"
#include "lite/fluid/for_range.h"
#include "lite/utils/variant.h" #include "lite/utils/variant.h"
namespace paddle { namespace paddle {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册