diff --git a/paddle/cinn/backends/nvrtc/header_generator.cc b/paddle/cinn/backends/nvrtc/header_generator.cc index 328b0ce1f53beef21bb4869ef8a49839585513bd..d4b2b9504673f6624de143edd8474b1dcc6dc981 100644 --- a/paddle/cinn/backends/nvrtc/header_generator.cc +++ b/paddle/cinn/backends/nvrtc/header_generator.cc @@ -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 { diff --git a/paddle/cinn/common/target.cc b/paddle/cinn/common/target.cc index 42a130163a130e85a47e43893e707bf4fada0a66..95d57c3172aa3e2df81d31c87bff2d2a3ed6c214 100644 --- a/paddle/cinn/common/target.cc +++ b/paddle/cinn/common/target.cc @@ -23,11 +23,6 @@ #include "paddle/cinn/common/target.h" #include "paddle/cinn/runtime/cinn_runtime.h" -#ifdef CINN_WITH_CUDA -#include -#include -#endif - namespace cinn { namespace common { diff --git a/paddle/cinn/common/type.cc b/paddle/cinn/common/type.cc index ad5c8412d950bd16197a4d1a9a245ffbf4a92d34..2b155757081641789c0fe545f9a716cb7e07e20e 100644 --- a/paddle/cinn/common/type.cc +++ b/paddle/cinn/common/type.cc @@ -19,8 +19,6 @@ #include #include -#include "type.h" - namespace cinn { namespace common { diff --git a/paddle/cinn/frontend/computation.h b/paddle/cinn/frontend/computation.h index c464cb40d2a5c31ef91b4756d57bd5d542b88252..8b16f9483320f768bcfeaa65a3273198650444f0 100644 --- a/paddle/cinn/frontend/computation.h +++ b/paddle/cinn/frontend/computation.h @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#pragma once #include #include "paddle/cinn/frontend/net_builder.h" diff --git a/paddle/cinn/frontend/pass/pass_test_helper.h b/paddle/cinn/frontend/pass/pass_test_helper.h index e56746a86368aa77c559495f8328b4254117a785..cf1b8c201d8d4652a89793247b43c051414245d7 100644 --- a/paddle/cinn/frontend/pass/pass_test_helper.h +++ b/paddle/cinn/frontend/pass/pass_test_helper.h @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#pragma once + #include #include diff --git a/paddle/cinn/frontend/pass/transpose_folding_base.h b/paddle/cinn/frontend/pass/transpose_folding_base.h index fbcb384b1704dffa3d1fd8bdbe37a33e1663dd86..4acc8e4f6d1f67b7ed3d7eb16f7e88518afa9f89 100644 --- a/paddle/cinn/frontend/pass/transpose_folding_base.h +++ b/paddle/cinn/frontend/pass/transpose_folding_base.h @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#pragma once + #include #include diff --git a/paddle/cinn/hlir/op/contrib/logical_right_shift.cc b/paddle/cinn/hlir/op/contrib/logical_right_shift.cc index 68f117aad4956b61a0526121c169ca371d19f140..1f16d2195c6113bc3bb500efbac781b9937d6f74 100644 --- a/paddle/cinn/hlir/op/contrib/logical_right_shift.cc +++ b/paddle/cinn/hlir/op/contrib/logical_right_shift.cc @@ -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" diff --git a/paddle/cinn/hlir/op/contrib/reciprocal.cc b/paddle/cinn/hlir/op/contrib/reciprocal.cc index 09d180601ac10d38e962f52803869a59939ccbab..50fbba762342ad6f447e1eda2ddb1cd98247d340 100644 --- a/paddle/cinn/hlir/op/contrib/reciprocal.cc +++ b/paddle/cinn/hlir/op/contrib/reciprocal.cc @@ -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" diff --git a/paddle/cinn/hlir/op/custom_call.cc b/paddle/cinn/hlir/op/custom_call.cc index c109df2ec286676621bf0d7a04bf236d23e2ecb8..5f272b98c226a5331cbca302e4e76e7ffb041d5b 100644 --- a/paddle/cinn/hlir/op/custom_call.cc +++ b/paddle/cinn/hlir/op/custom_call.cc @@ -27,7 +27,7 @@ #include "paddle/cinn/utils/string.h" #ifdef CINN_WITH_CUDNN -#include "cudnn.h" +#include #endif namespace cinn { diff --git a/paddle/cinn/hlir/op/transform.cc b/paddle/cinn/hlir/op/transform.cc index 1f362dc76fce46ab56eaf31ee823f218ac638fb0..78d24cba7035d8b5d844ff8f4350376c5a47ea3b 100644 --- a/paddle/cinn/hlir/op/transform.cc +++ b/paddle/cinn/hlir/op/transform.cc @@ -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" diff --git a/paddle/cinn/hlir/pass/infershape.h b/paddle/cinn/hlir/pass/infershape.h index a9b9c8a528ee77877856afb871fdb22783cb6381..7ed0ca5fe78ae6263471bb4b0fee92180bf5a19a 100644 --- a/paddle/cinn/hlir/pass/infershape.h +++ b/paddle/cinn/hlir/pass/infershape.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" diff --git a/paddle/cinn/poly/domain_add_unit_loop_mutator.h b/paddle/cinn/poly/domain_add_unit_loop_mutator.h index 0b2ce648b760c2b99af7e4baa40b23db318490e7..6c0a289ef3675c9726d820a1efe3c4f30c4e574b 100644 --- a/paddle/cinn/poly/domain_add_unit_loop_mutator.h +++ b/paddle/cinn/poly/domain_add_unit_loop_mutator.h @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#pragma once + #include #include diff --git a/paddle/cinn/runtime/cpu/mkldnn_math.h b/paddle/cinn/runtime/cpu/mkldnn_math.h index c8cb49c1cc329c5f2b1660575b2beb0a3ad56407..8e6b200378873f3b2c0f2903ca7e4e1bd4c6d98d 100644 --- a/paddle/cinn/runtime/cpu/mkldnn_math.h +++ b/paddle/cinn/runtime/cpu/mkldnn_math.h @@ -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 diff --git a/paddle/cinn/runtime/cuda/test_util.h b/paddle/cinn/runtime/cuda/test_util.h index 7a5683471dc3c66aff1405e8e9bd1ed588a23804..71786653b49dd494cde96e5ef931f0fedbdb5b30 100644 --- a/paddle/cinn/runtime/cuda/test_util.h +++ b/paddle/cinn/runtime/cuda/test_util.h @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#pragma once #include #include diff --git a/paddle/cinn/runtime/tiny_runtime.cc b/paddle/cinn/runtime/tiny_runtime.cc index 8fb0238cbc31ded0330ff9d679e286af253ac4af..54219e5cc0181b4f2ee77702b93ff8494e00ec7b 100644 --- a/paddle/cinn/runtime/tiny_runtime.cc +++ b/paddle/cinn/runtime/tiny_runtime.cc @@ -21,7 +21,7 @@ #include #include -#include "cinn_runtime.h" +#include "paddle/cinn/runtime/cinn_runtime.h" extern "C" { int max_num_workers = std::thread::hardware_concurrency();