未验证 提交 fb151914 编写于 作者: C cyberslack_lee 提交者: GitHub

[CodeStyle][CINN] fix cpplint codestyle `[build/include_order]`...

[CodeStyle][CINN] fix cpplint codestyle `[build/include_order]` `[build/header_guard]` `[build/include_subdir]` `[build/include]` (#55085)

* fix cpplint

* fix

* part 1, [build/include_order]

* Revert "part 1, [build/include_order]"

This reverts commit 5d7f969948a080ab1bdf6dc4692aa2c380dcee92.

* skip, [build/include_order]

---------
Co-authored-by: NSigureMo <sigure.qaq@gmail.com>
上级 987d94a9
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "paddle/cinn/backends/nvrtc/header_generator.h" #include "paddle/cinn/backends/nvrtc/header_generator.h"
#include "glog/logging.h" #include "glog/logging.h"
#include "jitify.hpp" #include "jitify.hpp" // NOLINT
namespace cinn { namespace cinn {
namespace backends { namespace backends {
......
...@@ -23,11 +23,6 @@ ...@@ -23,11 +23,6 @@
#include "paddle/cinn/common/target.h" #include "paddle/cinn/common/target.h"
#include "paddle/cinn/runtime/cinn_runtime.h" #include "paddle/cinn/runtime/cinn_runtime.h"
#ifdef CINN_WITH_CUDA
#include <cuda_runtime_api.h>
#include <driver_types.h>
#endif
namespace cinn { namespace cinn {
namespace common { namespace common {
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include "type.h"
namespace cinn { namespace cinn {
namespace common { namespace common {
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#pragma once
#include <iostream> #include <iostream>
#include "paddle/cinn/frontend/net_builder.h" #include "paddle/cinn/frontend/net_builder.h"
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#pragma once
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#pragma once
#include <absl/container/flat_hash_map.h> #include <absl/container/flat_hash_map.h>
#include <sstream> #include <sstream>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "paddle/cinn/hlir/framework/node.h" #include "paddle/cinn/hlir/framework/node.h"
#include "paddle/cinn/hlir/framework/op.h" #include "paddle/cinn/hlir/framework/op.h"
#include "paddle/cinn/hlir/framework/op_strategy.h" #include "paddle/cinn/hlir/framework/op_strategy.h"
#include "paddle/cinn/hlir/op/contrib/logical_right_shift.h"
#include "paddle/cinn/hlir/op/op_util.h" #include "paddle/cinn/hlir/op/op_util.h"
#include "paddle/cinn/hlir/pe/ir_schedule_pe.h" #include "paddle/cinn/hlir/pe/ir_schedule_pe.h"
#include "paddle/cinn/hlir/pe/nn.h" #include "paddle/cinn/hlir/pe/nn.h"
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "paddle/cinn/hlir/framework/node.h" #include "paddle/cinn/hlir/framework/node.h"
#include "paddle/cinn/hlir/framework/op.h" #include "paddle/cinn/hlir/framework/op.h"
#include "paddle/cinn/hlir/framework/op_strategy.h" #include "paddle/cinn/hlir/framework/op_strategy.h"
#include "paddle/cinn/hlir/op/contrib/reciprocal.h"
#include "paddle/cinn/hlir/op/op_util.h" #include "paddle/cinn/hlir/op/op_util.h"
#include "paddle/cinn/hlir/pe/ir_schedule_pe.h" #include "paddle/cinn/hlir/pe/ir_schedule_pe.h"
#include "paddle/cinn/hlir/pe/nn.h" #include "paddle/cinn/hlir/pe/nn.h"
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "paddle/cinn/utils/string.h" #include "paddle/cinn/utils/string.h"
#ifdef CINN_WITH_CUDNN #ifdef CINN_WITH_CUDNN
#include "cudnn.h" #include <cudnn.h>
#endif #endif
namespace cinn { namespace cinn {
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "paddle/cinn/hlir/pe/ir_schedule_pe.h" #include "paddle/cinn/hlir/pe/ir_schedule_pe.h"
#include "paddle/cinn/hlir/pe/nn.h" #include "paddle/cinn/hlir/pe/nn.h"
#include "paddle/cinn/hlir/pe/schedule.h" #include "paddle/cinn/hlir/pe/schedule.h"
#include "paddle/cinn/hlir/pe/transform.h"
#include "paddle/cinn/ir/ir_printer.h" #include "paddle/cinn/ir/ir_printer.h"
#include "paddle/cinn/utils/string.h" #include "paddle/cinn/utils/string.h"
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#pragma once
#include "paddle/cinn/common/graph_utils.h" #include "paddle/cinn/common/graph_utils.h"
#include "paddle/cinn/hlir/framework/graph.h" #include "paddle/cinn/hlir/framework/graph.h"
#include "paddle/cinn/hlir/framework/pass.h" #include "paddle/cinn/hlir/framework/pass.h"
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#pragma once
#include <tuple> #include <tuple>
#include <vector> #include <vector>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "paddle/cinn/runtime/cinn_runtime.h" #include "paddle/cinn/runtime/cinn_runtime.h"
#ifdef CINN_WITH_MKLDNN #ifdef CINN_WITH_MKLDNN
#include "dnnl.hpp" #include "dnnl.hpp" // NOLINT
#endif #endif
// define some C APIs // define some C APIs
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#pragma once
#include <numeric> #include <numeric>
#include <vector> #include <vector>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <thread> #include <thread>
#include <vector> #include <vector>
#include "cinn_runtime.h" #include "paddle/cinn/runtime/cinn_runtime.h"
extern "C" { extern "C" {
int max_num_workers = std::thread::hardware_concurrency(); int max_num_workers = std::thread::hardware_concurrency();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册