未验证 提交 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 @@
#include "paddle/cinn/backends/nvrtc/header_generator.h"
#include "glog/logging.h"
#include "jitify.hpp"
#include "jitify.hpp" // NOLINT
namespace cinn {
namespace backends {
......
......@@ -23,11 +23,6 @@
#include "paddle/cinn/common/target.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 common {
......
......@@ -19,8 +19,6 @@
#include <unordered_map>
#include <utility>
#include "type.h"
namespace cinn {
namespace common {
......
......@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <iostream>
#include "paddle/cinn/frontend/net_builder.h"
......
......@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <gflags/gflags.h>
#include <gtest/gtest.h>
......
......@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <absl/container/flat_hash_map.h>
#include <sstream>
......
......@@ -26,6 +26,7 @@
#include "paddle/cinn/hlir/framework/node.h"
#include "paddle/cinn/hlir/framework/op.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/pe/ir_schedule_pe.h"
#include "paddle/cinn/hlir/pe/nn.h"
......
......@@ -26,6 +26,7 @@
#include "paddle/cinn/hlir/framework/node.h"
#include "paddle/cinn/hlir/framework/op.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/pe/ir_schedule_pe.h"
#include "paddle/cinn/hlir/pe/nn.h"
......
......@@ -27,7 +27,7 @@
#include "paddle/cinn/utils/string.h"
#ifdef CINN_WITH_CUDNN
#include "cudnn.h"
#include <cudnn.h>
#endif
namespace cinn {
......
......@@ -25,7 +25,6 @@
#include "paddle/cinn/hlir/pe/ir_schedule_pe.h"
#include "paddle/cinn/hlir/pe/nn.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/utils/string.h"
......
......@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include "paddle/cinn/common/graph_utils.h"
#include "paddle/cinn/hlir/framework/graph.h"
#include "paddle/cinn/hlir/framework/pass.h"
......
......@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <tuple>
#include <vector>
......
......@@ -16,7 +16,7 @@
#include "paddle/cinn/runtime/cinn_runtime.h"
#ifdef CINN_WITH_MKLDNN
#include "dnnl.hpp"
#include "dnnl.hpp" // NOLINT
#endif
// define some C APIs
......
......@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <numeric>
#include <vector>
......
......@@ -21,7 +21,7 @@
#include <thread>
#include <vector>
#include "cinn_runtime.h"
#include "paddle/cinn/runtime/cinn_runtime.h"
extern "C" {
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.
先完成此消息的编辑!
想要评论请 注册