From 829723f2361c17eb4bdf530a3c978d9878f4a058 Mon Sep 17 00:00:00 2001 From: Sing_chan <51314274+betterpig@users.noreply.github.com> Date: Tue, 21 Jun 2022 14:52:47 +0800 Subject: [PATCH] resort .cu headers, set clang-format not sort include block and consider .cu as main source file (#43633) --- .pre-commit-config.yaml | 2 +- paddle/phi/kernels/gpu/abs_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/abs_kernel.cu | 3 ++- paddle/phi/kernels/gpu/accuracy_kernel.cu | 3 ++- paddle/phi/kernels/gpu/activation_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/activation_kernel.cu | 3 ++- paddle/phi/kernels/gpu/adadelta_kernel.cu | 3 ++- paddle/phi/kernels/gpu/adagrad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/adam_kernel.cu | 3 ++- paddle/phi/kernels/gpu/adamax_kernel.cu | 3 ++- paddle/phi/kernels/gpu/adamw_kernel.cu | 3 ++- paddle/phi/kernels/gpu/add_n_kernel.cu | 3 ++- paddle/phi/kernels/gpu/addmm_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/addmm_kernel.cu | 3 ++- paddle/phi/kernels/gpu/allclose_kernel.cu | 3 ++- paddle/phi/kernels/gpu/arange_kernel.cu | 3 ++- paddle/phi/kernels/gpu/arg_min_max_kernel.cu | 3 ++- paddle/phi/kernels/gpu/argsort_kernel.cu | 4 ++-- paddle/phi/kernels/gpu/auc_kernel.cu | 3 ++- paddle/phi/kernels/gpu/bce_loss_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/bce_loss_kernel.cu | 3 ++- .../gpu/bilinear_tensor_product_grad_kernel.cu | 3 ++- .../kernels/gpu/bilinear_tensor_product_kernel.cu | 3 ++- paddle/phi/kernels/gpu/bincount_kernel.cu | 3 ++- .../kernels/gpu/broadcast_tensors_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/broadcast_tensors_kernel.cu | 3 ++- paddle/phi/kernels/gpu/cast_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/cast_kernel.cu | 3 ++- .../phi/kernels/gpu/channel_shuffle_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/channel_shuffle_kernel.cu | 3 ++- paddle/phi/kernels/gpu/cholesky_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/cholesky_kernel.cu | 3 ++- paddle/phi/kernels/gpu/clip_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/clip_kernel.cu | 3 ++- paddle/phi/kernels/gpu/complex_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/complex_kernel.cu | 3 ++- paddle/phi/kernels/gpu/concat_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/concat_kernel.cu | 3 ++- paddle/phi/kernels/gpu/conv_grad_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/conv_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/conv_kernel.cu | 3 ++- .../phi/kernels/gpu/conv_transpose_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/conv_transpose_kernel.cu | 3 ++- paddle/phi/kernels/gpu/copy_kernel.cu | 3 ++- paddle/phi/kernels/gpu/cross_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/cross_kernel.cu | 3 ++- paddle/phi/kernels/gpu/cum_kernel.cu | 13 ++++--------- paddle/phi/kernels/gpu/cumprod_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/cumprod_kernel.cu | 3 ++- .../phi/kernels/gpu/deformable_conv_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/deformable_conv_kernel.cu | 3 ++- paddle/phi/kernels/gpu/determinant_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/determinant_kernel.cu | 3 ++- paddle/phi/kernels/gpu/diag_kernel.cu | 3 ++- paddle/phi/kernels/gpu/diagonal_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/diagonal_kernel.cu | 3 ++- paddle/phi/kernels/gpu/digamma_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/digamma_kernel.cu | 3 ++- paddle/phi/kernels/gpu/dist_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/dist_kernel.cu | 3 ++- paddle/phi/kernels/gpu/dot_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/dot_kernel.cu | 3 ++- paddle/phi/kernels/gpu/dropout_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/dropout_kernel.cu | 3 ++- paddle/phi/kernels/gpu/eigh_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/eigh_kernel.cu | 3 ++- paddle/phi/kernels/gpu/einsum_kernel.cu | 3 ++- .../phi/kernels/gpu/elementwise_add_grad_kernel.cu | 3 ++- .../kernels/gpu/elementwise_divide_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/elementwise_grad_kernel.cu | 3 ++- .../kernels/gpu/elementwise_multiply_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/embedding_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/embedding_kernel.cu | 3 ++- paddle/phi/kernels/gpu/erf_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/erf_kernel.cu | 3 ++- paddle/phi/kernels/gpu/erfinv_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/erfinv_kernel.cu | 3 ++- paddle/phi/kernels/gpu/expand_as_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/expand_as_kernel.cu | 3 ++- paddle/phi/kernels/gpu/expand_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/expand_kernel.cu | 3 ++- paddle/phi/kernels/gpu/eye_kernel.cu | 3 ++- paddle/phi/kernels/gpu/flip_kernel.cu | 3 ++- .../phi/kernels/gpu/frobenius_norm_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/frobenius_norm_kernel.cu | 3 ++- paddle/phi/kernels/gpu/full_kernel.cu | 3 ++- paddle/phi/kernels/gpu/gather_kernel.cu | 3 ++- paddle/phi/kernels/gpu/gather_nd_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/gather_nd_kernel.cu | 3 ++- paddle/phi/kernels/gpu/gather_tree_kernel.cu | 3 ++- paddle/phi/kernels/gpu/gaussian_random_kernel.cu | 3 ++- paddle/phi/kernels/gpu/graph_reindex_kernel.cu | 3 ++- .../phi/kernels/gpu/graph_send_recv_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/graph_send_recv_kernel.cu | 3 ++- paddle/phi/kernels/gpu/grid_sample_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/grid_sample_kernel.cu | 3 ++- paddle/phi/kernels/gpu/group_norm_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/group_norm_kernel.cu | 3 ++- .../phi/kernels/gpu/gumbel_softmax_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/gumbel_softmax_kernel.cu | 3 ++- paddle/phi/kernels/gpu/histogram_kernel.cu | 3 ++- paddle/phi/kernels/gpu/huber_loss_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/huber_loss_kernel.cu | 3 ++- paddle/phi/kernels/gpu/increment_kernel.cu | 3 ++- paddle/phi/kernels/gpu/index_sample_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/index_sample_kernel.cu | 3 ++- paddle/phi/kernels/gpu/index_select_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/index_select_kernel.cu | 3 ++- paddle/phi/kernels/gpu/instance_norm_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/instance_norm_kernel.cu | 3 ++- paddle/phi/kernels/gpu/interpolate_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/interpolate_kernel.cu | 3 ++- paddle/phi/kernels/gpu/isclose_kernel.cu | 3 ++- paddle/phi/kernels/gpu/isfinite_kernel.cu | 3 ++- paddle/phi/kernels/gpu/kldiv_loss_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/kldiv_loss_kernel.cu | 3 ++- paddle/phi/kernels/gpu/kron_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/kron_kernel.cu | 3 ++- paddle/phi/kernels/gpu/kthvalue_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/kthvalue_kernel.cu | 3 ++- paddle/phi/kernels/gpu/label_smooth_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/label_smooth_kernel.cu | 3 ++- paddle/phi/kernels/gpu/layer_norm_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/layer_norm_kernel.cu | 3 ++- paddle/phi/kernels/gpu/lerp_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/lerp_kernel.cu | 3 ++- paddle/phi/kernels/gpu/lgamma_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/lgamma_kernel.cu | 3 ++- paddle/phi/kernels/gpu/linspace_kernel.cu | 3 ++- paddle/phi/kernels/gpu/log_loss_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/log_loss_kernel.cu | 3 ++- paddle/phi/kernels/gpu/log_softmax_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/log_softmax_kernel.cu | 3 ++- paddle/phi/kernels/gpu/logcumsumexp_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/logspace_kernel.cu | 3 ++- paddle/phi/kernels/gpu/logsumexp_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/logsumexp_kernel.cu | 3 ++- paddle/phi/kernels/gpu/masked_select_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/masked_select_kernel.cu | 3 ++- paddle/phi/kernels/gpu/matmul_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/matmul_kernel.cu | 3 ++- paddle/phi/kernels/gpu/matrix_power_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/matrix_power_kernel.cu | 3 ++- paddle/phi/kernels/gpu/matrix_rank_kernel.cu | 3 ++- paddle/phi/kernels/gpu/matrix_rank_tol_kernel.cu | 3 ++- paddle/phi/kernels/gpu/mean_all_kernel.cu | 3 ++- paddle/phi/kernels/gpu/mode_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/mode_kernel.cu | 3 ++- paddle/phi/kernels/gpu/momentum_kernel.cu | 3 ++- paddle/phi/kernels/gpu/multi_dot_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/multi_dot_kernel.cu | 3 ++- paddle/phi/kernels/gpu/multiplex_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/multiplex_kernel.cu | 3 ++- paddle/phi/kernels/gpu/mv_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/mv_kernel.cu | 3 ++- paddle/phi/kernels/gpu/nanmedian_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/nanmedian_kernel.cu | 3 ++- paddle/phi/kernels/gpu/nll_loss_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/nll_loss_kernel.cu | 3 ++- paddle/phi/kernels/gpu/norm_grad_kernel.cu | 4 ++-- paddle/phi/kernels/gpu/norm_kernel.cu | 4 ++-- paddle/phi/kernels/gpu/one_hot_kernel.cu | 3 ++- paddle/phi/kernels/gpu/p_norm_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/p_norm_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pad3d_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pad3d_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pad_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pixel_shuffle_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pixel_shuffle_kernel.cu | 3 ++- .../phi/kernels/gpu/pixel_unshuffle_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pixel_unshuffle_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pool_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/pool_kernel.cu | 3 ++- paddle/phi/kernels/gpu/prelu_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/prelu_kernel.cu | 3 ++- paddle/phi/kernels/gpu/psroi_pool_kernel.cu | 3 ++- .../phi/kernels/gpu/put_along_axis_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/put_along_axis_kernel.cu | 3 ++- paddle/phi/kernels/gpu/randint_kernel.cu | 3 ++- paddle/phi/kernels/gpu/reduce_max_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/reduce_mean_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/reduce_min_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/reduce_prod_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/reduce_sum_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/rmsprop_kernel.cu | 3 ++- paddle/phi/kernels/gpu/roi_align_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/roi_align_kernel.cu | 3 ++- paddle/phi/kernels/gpu/roi_pool_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/roi_pool_kernel.cu | 3 ++- paddle/phi/kernels/gpu/roll_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/roll_kernel.cu | 3 ++- paddle/phi/kernels/gpu/rrelu_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/rrelu_kernel.cu | 3 ++- paddle/phi/kernels/gpu/scale_kernel.cu | 3 ++- paddle/phi/kernels/gpu/scatter_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/scatter_kernel.cu | 3 ++- .../phi/kernels/gpu/scatter_nd_add_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/scatter_nd_add_kernel.cu | 3 ++- paddle/phi/kernels/gpu/searchsorted_kernel.cu | 3 ++- paddle/phi/kernels/gpu/segment_pool_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/segment_pool_kernel.cu | 3 ++- paddle/phi/kernels/gpu/selu_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/selu_kernel.cu | 3 ++- paddle/phi/kernels/gpu/set_value_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/set_value_kernel.cu | 3 ++- paddle/phi/kernels/gpu/sgd_kernel.cu | 3 ++- paddle/phi/kernels/gpu/shard_index_kernel.cu | 3 ++- ...sigmoid_cross_entropy_with_logits_grad_kernel.cu | 3 ++- .../gpu/sigmoid_cross_entropy_with_logits_kernel.cu | 3 ++- paddle/phi/kernels/gpu/size_kernel.cu | 3 ++- paddle/phi/kernels/gpu/softmax_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/softmax_kernel.cu | 3 ++- paddle/phi/kernels/gpu/split_kernel.cu | 3 ++- paddle/phi/kernels/gpu/squeeze_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/squeeze_kernel.cu | 3 ++- paddle/phi/kernels/gpu/stack_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/stack_kernel.cu | 3 ++- paddle/phi/kernels/gpu/strided_slice_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/strided_slice_kernel.cu | 3 ++- .../phi/kernels/gpu/take_along_axis_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/take_along_axis_kernel.cu | 3 ++- .../phi/kernels/gpu/temporal_shift_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/temporal_shift_kernel.cu | 3 ++- paddle/phi/kernels/gpu/tile_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/tile_kernel.cu | 3 ++- paddle/phi/kernels/gpu/top_k_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/top_k_kernel.cu | 3 ++- paddle/phi/kernels/gpu/trace_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/trace_kernel.cu | 3 ++- paddle/phi/kernels/gpu/transpose_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/transpose_kernel.cu | 3 ++- paddle/phi/kernels/gpu/triangular_solve_kernel.cu | 3 ++- paddle/phi/kernels/gpu/tril_indices_kernel.cu | 3 ++- paddle/phi/kernels/gpu/trunc_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/trunc_kernel.cu | 3 ++- .../kernels/gpu/truncated_gaussian_random_kernel.cu | 3 ++- paddle/phi/kernels/gpu/unbind_kernel.cu | 3 ++- paddle/phi/kernels/gpu/unfold_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/unfold_kernel.cu | 3 ++- paddle/phi/kernels/gpu/uniform_random_kernel.cu | 3 ++- paddle/phi/kernels/gpu/unique_kernel.cu | 3 ++- paddle/phi/kernels/gpu/unsqueeze_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/unsqueeze_kernel.cu | 3 ++- paddle/phi/kernels/gpu/unstack_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/unstack_kernel.cu | 3 ++- paddle/phi/kernels/gpu/warpctc_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/warpctc_kernel.cu | 3 ++- paddle/phi/kernels/gpu/where_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpu/where_kernel.cu | 3 ++- paddle/phi/kernels/gpu/yolo_box_kernel.cu | 3 ++- paddle/phi/kernels/gpudnn/conv_grad_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpudnn/conv_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpudnn/conv_kernel.cu | 3 ++- .../kernels/gpudnn/conv_transpose_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpudnn/conv_transpose_kernel.cu | 3 ++- paddle/phi/kernels/gpudnn/pool_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpudnn/pool_kernel.cu | 3 ++- paddle/phi/kernels/gpudnn/softmax_grad_kernel.cu | 3 ++- paddle/phi/kernels/gpudnn/softmax_kernel.cu | 3 ++- paddle/phi/kernels/selected_rows/gpu/adam_kernel.cu | 3 ++- .../phi/kernels/selected_rows/gpu/adamw_kernel.cu | 3 ++- paddle/phi/kernels/selected_rows/gpu/clip_kernel.cu | 3 ++- paddle/phi/kernels/sparse/gpu/coalesced_kernel.cu | 3 ++- .../kernels/sparse/gpu/convolution_grad_kernel.cu | 3 ++- paddle/phi/kernels/sparse/gpu/convolution_kernel.cu | 3 ++- paddle/phi/kernels/sparse/gpu/full_kernel.cu | 3 ++- paddle/phi/kernels/sparse/gpu/matmul_grad_kernel.cu | 3 ++- paddle/phi/kernels/sparse/gpu/matmul_kernel.cu | 3 ++- paddle/phi/kernels/sparse/gpu/sparse_mask_kernel.cu | 3 ++- .../kernels/sparse/gpu/sparse_pool_grad_kernel.cu | 3 ++- paddle/phi/kernels/sparse/gpu/sparse_pool_kernel.cu | 3 ++- .../phi/kernels/sparse/gpu/sparse_utils_kernel.cu | 3 ++- .../phi/kernels/strings/gpu/strings_copy_kernel.cu | 3 ++- .../strings/gpu/strings_lower_upper_kernel.cu | 3 ++- 275 files changed, 551 insertions(+), 286 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e1b2ecf367..75ae8be2cb7 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: files: (api|backward)\.yaml$ - repo: local hooks: - - id: clang-format-with-version-check + - id: clang-format name: clang-format description: Format files with ClangFormat. entry: bash ./tools/codestyle/clang_format.hook -i diff --git a/paddle/phi/kernels/gpu/abs_grad_kernel.cu b/paddle/phi/kernels/gpu/abs_grad_kernel.cu index 1ce6a1638b1..2d96a7a88e3 100644 --- a/paddle/phi/kernels/gpu/abs_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/abs_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/abs_grad_kernel.h" + #include "paddle/phi/common/complex.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/abs_grad_kernel.h" #include "paddle/phi/kernels/impl/abs_grad_kernel_impl.h" using phi::dtype::complex; diff --git a/paddle/phi/kernels/gpu/abs_kernel.cu b/paddle/phi/kernels/gpu/abs_kernel.cu index 1364a1cd3fa..d025f4b61e7 100644 --- a/paddle/phi/kernels/gpu/abs_kernel.cu +++ b/paddle/phi/kernels/gpu/abs_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/abs_kernel.h" + #include #include #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/abs_kernel.h" #include "paddle/phi/kernels/funcs/complex_functors.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" diff --git a/paddle/phi/kernels/gpu/accuracy_kernel.cu b/paddle/phi/kernels/gpu/accuracy_kernel.cu index d5b50800f53..771b189f040 100644 --- a/paddle/phi/kernels/gpu/accuracy_kernel.cu +++ b/paddle/phi/kernels/gpu/accuracy_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/accuracy_kernel.h" + #include #include @@ -20,7 +22,6 @@ #include "paddle/phi/backends/gpu/gpu_info.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/accuracy_kernel.h" namespace phi { using paddle::platform::PADDLE_CUDA_NUM_THREADS; diff --git a/paddle/phi/kernels/gpu/activation_grad_kernel.cu b/paddle/phi/kernels/gpu/activation_grad_kernel.cu index 8d7b3e8dde6..a127c9e9135 100644 --- a/paddle/phi/kernels/gpu/activation_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/activation_grad_kernel.cu @@ -12,12 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/activation_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_device_function.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/activation_grad_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" #include "paddle/phi/kernels/impl/activation_grad_impl.h" diff --git a/paddle/phi/kernels/gpu/activation_kernel.cu b/paddle/phi/kernels/gpu/activation_kernel.cu index 05ec5dfb840..55df4268e00 100644 --- a/paddle/phi/kernels/gpu/activation_kernel.cu +++ b/paddle/phi/kernels/gpu/activation_kernel.cu @@ -12,12 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/activation_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_device_function.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/activation_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" #include "paddle/phi/kernels/impl/activation_grad_impl.h" #include "paddle/phi/kernels/impl/activation_impl.h" diff --git a/paddle/phi/kernels/gpu/adadelta_kernel.cu b/paddle/phi/kernels/gpu/adadelta_kernel.cu index 15c6ad18a96..7516a277a74 100644 --- a/paddle/phi/kernels/gpu/adadelta_kernel.cu +++ b/paddle/phi/kernels/gpu/adadelta_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/adadelta_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/adadelta_kernel.h" #include "paddle/phi/kernels/impl/adadelta_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/adagrad_kernel.cu b/paddle/phi/kernels/gpu/adagrad_kernel.cu index 381dde09be7..28db4d418b9 100644 --- a/paddle/phi/kernels/gpu/adagrad_kernel.cu +++ b/paddle/phi/kernels/gpu/adagrad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/adagrad_kernel.h" + #include "paddle/fluid/operators/math/selected_rows_functor.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/adagrad_kernel.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/impl/adagrad_kernel_impl.h" diff --git a/paddle/phi/kernels/gpu/adam_kernel.cu b/paddle/phi/kernels/gpu/adam_kernel.cu index edeeb64f5db..1322428270d 100644 --- a/paddle/phi/kernels/gpu/adam_kernel.cu +++ b/paddle/phi/kernels/gpu/adam_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/adam_kernel.h" + #include // for sqrt in CPU and CUDA #include @@ -22,7 +24,6 @@ #include "paddle/phi/common/amp_type_traits.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/adam_kernel.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/adam_functors.h" #include "paddle/phi/kernels/funcs/for_range.h" diff --git a/paddle/phi/kernels/gpu/adamax_kernel.cu b/paddle/phi/kernels/gpu/adamax_kernel.cu index d9171c80fa9..0817c531318 100644 --- a/paddle/phi/kernels/gpu/adamax_kernel.cu +++ b/paddle/phi/kernels/gpu/adamax_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/adamax_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/adamax_kernel.h" #include "paddle/phi/kernels/impl/adamax_kernel_impl.h" PD_REGISTER_KERNEL(adamax, GPU, ALL_LAYOUT, phi::AdamaxKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/adamw_kernel.cu b/paddle/phi/kernels/gpu/adamw_kernel.cu index 7c00cd13d6b..cead67fd39a 100644 --- a/paddle/phi/kernels/gpu/adamw_kernel.cu +++ b/paddle/phi/kernels/gpu/adamw_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/adamw_kernel.h" + #include // for sqrt in CPU and CUDA #include @@ -22,7 +24,6 @@ #include "paddle/phi/common/amp_type_traits.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/adamw_kernel.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/adam_functors.h" #include "paddle/phi/kernels/funcs/for_range.h" diff --git a/paddle/phi/kernels/gpu/add_n_kernel.cu b/paddle/phi/kernels/gpu/add_n_kernel.cu index d109ec49cfd..d165edaaed7 100644 --- a/paddle/phi/kernels/gpu/add_n_kernel.cu +++ b/paddle/phi/kernels/gpu/add_n_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/add_n_kernel.h" + #include "paddle/fluid/memory/malloc.h" #include "paddle/fluid/memory/memcpy.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/add_n_kernel.h" #include "paddle/phi/kernels/funcs/eigen/common.h" #include "paddle/phi/kernels/funcs/math_function.h" diff --git a/paddle/phi/kernels/gpu/addmm_grad_kernel.cu b/paddle/phi/kernels/gpu/addmm_grad_kernel.cu index be71f619aa1..65978da1374 100644 --- a/paddle/phi/kernels/gpu/addmm_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/addmm_grad_kernel.cu @@ -12,9 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/addmm_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/addmm_grad_kernel.h" #include "paddle/phi/kernels/impl/addmm_grad_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/addmm_kernel.cu b/paddle/phi/kernels/gpu/addmm_kernel.cu index e30d664068e..7b589ce20ac 100644 --- a/paddle/phi/kernels/gpu/addmm_kernel.cu +++ b/paddle/phi/kernels/gpu/addmm_kernel.cu @@ -12,9 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/addmm_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/addmm_kernel.h" #include "paddle/phi/kernels/impl/addmm_kernel_impl.h" PD_REGISTER_KERNEL(addmm, GPU, ALL_LAYOUT, phi::AddmmKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/allclose_kernel.cu b/paddle/phi/kernels/gpu/allclose_kernel.cu index cfa809f60c2..8abc6b272c5 100644 --- a/paddle/phi/kernels/gpu/allclose_kernel.cu +++ b/paddle/phi/kernels/gpu/allclose_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/allclose_kernel.h" + #include "paddle/phi/core/enforce.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/allclose_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/arange_kernel.cu b/paddle/phi/kernels/gpu/arange_kernel.cu index 99456147e5f..9ea0d7c5393 100644 --- a/paddle/phi/kernels/gpu/arange_kernel.cu +++ b/paddle/phi/kernels/gpu/arange_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/arange_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/arange_kernel.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/range_function.h" diff --git a/paddle/phi/kernels/gpu/arg_min_max_kernel.cu b/paddle/phi/kernels/gpu/arg_min_max_kernel.cu index 101e01df521..b1a40f03e61 100644 --- a/paddle/phi/kernels/gpu/arg_min_max_kernel.cu +++ b/paddle/phi/kernels/gpu/arg_min_max_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/arg_min_max_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/arg_min_max_kernel.h" #if defined(__NVCC__) || defined(__HIPCC__) diff --git a/paddle/phi/kernels/gpu/argsort_kernel.cu b/paddle/phi/kernels/gpu/argsort_kernel.cu index 6e8d47d9a57..6a9c1e27599 100644 --- a/paddle/phi/kernels/gpu/argsort_kernel.cu +++ b/paddle/phi/kernels/gpu/argsort_kernel.cu @@ -12,12 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/argsort_kernel.h" + #include #include #include #include - -#include "paddle/phi/kernels/argsort_kernel.h" #ifdef __NVCC__ #include "cub/cub.cuh" #endif diff --git a/paddle/phi/kernels/gpu/auc_kernel.cu b/paddle/phi/kernels/gpu/auc_kernel.cu index ef55fb9a5e3..5a1bb9874fe 100644 --- a/paddle/phi/kernels/gpu/auc_kernel.cu +++ b/paddle/phi/kernels/gpu/auc_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/auc_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/cpu/cpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/auc_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/bce_loss_grad_kernel.cu b/paddle/phi/kernels/gpu/bce_loss_grad_kernel.cu index b9f1680726d..94eabac4d13 100644 --- a/paddle/phi/kernels/gpu/bce_loss_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/bce_loss_grad_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/bce_loss_grad_kernel.h" + #include #include #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/hostdevice.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/bce_loss_grad_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/bce_loss_kernel.cu b/paddle/phi/kernels/gpu/bce_loss_kernel.cu index bc2d278049c..b190bce4742 100644 --- a/paddle/phi/kernels/gpu/bce_loss_kernel.cu +++ b/paddle/phi/kernels/gpu/bce_loss_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/bce_loss_kernel.h" + #include #include #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/hostdevice.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/bce_loss_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" #include "paddle/phi/kernels/primitive/functor_primitives.h" diff --git a/paddle/phi/kernels/gpu/bilinear_tensor_product_grad_kernel.cu b/paddle/phi/kernels/gpu/bilinear_tensor_product_grad_kernel.cu index 6186e90d54c..907b84b0a35 100644 --- a/paddle/phi/kernels/gpu/bilinear_tensor_product_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/bilinear_tensor_product_grad_kernel.cu @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/bilinear_tensor_product_grad_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/bilinear_tensor_product_grad_kernel_impl.h" PD_REGISTER_KERNEL(bilinear_tensor_product_grad, diff --git a/paddle/phi/kernels/gpu/bilinear_tensor_product_kernel.cu b/paddle/phi/kernels/gpu/bilinear_tensor_product_kernel.cu index b23e9ccfcc8..201650f9649 100644 --- a/paddle/phi/kernels/gpu/bilinear_tensor_product_kernel.cu +++ b/paddle/phi/kernels/gpu/bilinear_tensor_product_kernel.cu @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/bilinear_tensor_product_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/bilinear_tensor_product_kernel_impl.h" PD_REGISTER_KERNEL(bilinear_tensor_product, diff --git a/paddle/phi/kernels/gpu/bincount_kernel.cu b/paddle/phi/kernels/gpu/bincount_kernel.cu index 257c708ee53..d6073193a15 100644 --- a/paddle/phi/kernels/gpu/bincount_kernel.cu +++ b/paddle/phi/kernels/gpu/bincount_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/bincount_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/bincount_kernel.h" #include "paddle/phi/kernels/funcs/eigen/common.h" #include "paddle/phi/kernels/funcs/math_function.h" diff --git a/paddle/phi/kernels/gpu/broadcast_tensors_grad_kernel.cu b/paddle/phi/kernels/gpu/broadcast_tensors_grad_kernel.cu index eb70ef9ee76..02f06edd04f 100644 --- a/paddle/phi/kernels/gpu/broadcast_tensors_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/broadcast_tensors_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/broadcast_tensors_grad_kernel.h" + #include #include "paddle/fluid/framework/tensor_util.h" @@ -19,7 +21,6 @@ #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/enforce.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/broadcast_tensors_grad_kernel.h" #include "paddle/phi/kernels/funcs/reduce_function.h" #include "paddle/phi/kernels/primitive/functor_primitives.h" diff --git a/paddle/phi/kernels/gpu/broadcast_tensors_kernel.cu b/paddle/phi/kernels/gpu/broadcast_tensors_kernel.cu index 5c87c9fc907..82dac4552a4 100644 --- a/paddle/phi/kernels/gpu/broadcast_tensors_kernel.cu +++ b/paddle/phi/kernels/gpu/broadcast_tensors_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/broadcast_tensors_kernel.h" + #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/broadcast_tensors_kernel.h" #include "paddle/phi/kernels/impl/broadcast_tensors_kernel_impl.h" PD_REGISTER_KERNEL(broadcast_tensors, diff --git a/paddle/phi/kernels/gpu/cast_grad_kernel.cu b/paddle/phi/kernels/gpu/cast_grad_kernel.cu index 0029e6e954e..f4b61030158 100644 --- a/paddle/phi/kernels/gpu/cast_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/cast_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/cast_grad_kernel.h" + #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/visit_type.h" -#include "paddle/phi/kernels/cast_grad_kernel.h" #include "paddle/phi/kernels/gpu/cast_impl.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/cast_kernel.cu b/paddle/phi/kernels/gpu/cast_kernel.cu index b2b42482ad3..a879dc3bafd 100644 --- a/paddle/phi/kernels/gpu/cast_kernel.cu +++ b/paddle/phi/kernels/gpu/cast_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/cast_kernel.h" + #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/visit_type.h" -#include "paddle/phi/kernels/cast_kernel.h" #include "paddle/phi/kernels/gpu/cast_impl.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/channel_shuffle_grad_kernel.cu b/paddle/phi/kernels/gpu/channel_shuffle_grad_kernel.cu index 5fc67daf44a..a9f751bfbc0 100644 --- a/paddle/phi/kernels/gpu/channel_shuffle_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/channel_shuffle_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/channel_shuffle_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/channel_shuffle_grad_kernel.h" #include "paddle/phi/kernels/impl/channel_shuffle_grad_kernel_impl.h" PD_REGISTER_KERNEL(channel_shuffle_grad, diff --git a/paddle/phi/kernels/gpu/channel_shuffle_kernel.cu b/paddle/phi/kernels/gpu/channel_shuffle_kernel.cu index adecd2f9600..6be09721952 100644 --- a/paddle/phi/kernels/gpu/channel_shuffle_kernel.cu +++ b/paddle/phi/kernels/gpu/channel_shuffle_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/channel_shuffle_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/channel_shuffle_kernel.h" #include "paddle/phi/kernels/impl/channel_shuffle_kernel_impl.h" PD_REGISTER_KERNEL(channel_shuffle, diff --git a/paddle/phi/kernels/gpu/cholesky_grad_kernel.cu b/paddle/phi/kernels/gpu/cholesky_grad_kernel.cu index 0cff8de5294..9165e8ea414 100644 --- a/paddle/phi/kernels/gpu/cholesky_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/cholesky_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/cholesky_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/cholesky_grad_kernel.h" #include "paddle/phi/kernels/impl/cholesky_grad_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/cholesky_kernel.cu b/paddle/phi/kernels/gpu/cholesky_kernel.cu index ec9ac7545d2..66b3bf22b04 100644 --- a/paddle/phi/kernels/gpu/cholesky_kernel.cu +++ b/paddle/phi/kernels/gpu/cholesky_kernel.cu @@ -15,6 +15,8 @@ limitations under the License. */ #ifndef PADDLE_WITH_HIP // HIP not support cusolver +#include "paddle/phi/kernels/cholesky_kernel.h" + #include #include @@ -25,7 +27,6 @@ limitations under the License. */ #include "paddle/phi/backends/dynload/cusolver.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/cholesky_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/clip_grad_kernel.cu b/paddle/phi/kernels/gpu/clip_grad_kernel.cu index bab7dd41aee..4566e8468ec 100644 --- a/paddle/phi/kernels/gpu/clip_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/clip_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/clip_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/clip_grad_kernel.h" #include "paddle/phi/kernels/impl/clip_grad_kernel_impl.h" PD_REGISTER_KERNEL(clip_grad, diff --git a/paddle/phi/kernels/gpu/clip_kernel.cu b/paddle/phi/kernels/gpu/clip_kernel.cu index 9295b8b37a0..9e0050db7fd 100644 --- a/paddle/phi/kernels/gpu/clip_kernel.cu +++ b/paddle/phi/kernels/gpu/clip_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/clip_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/clip_kernel.h" #include "paddle/phi/kernels/impl/clip_kernel_impl.h" PD_REGISTER_KERNEL(clip, diff --git a/paddle/phi/kernels/gpu/complex_grad_kernel.cu b/paddle/phi/kernels/gpu/complex_grad_kernel.cu index b1a4c984eed..450b32291c4 100644 --- a/paddle/phi/kernels/gpu/complex_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/complex_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/complex_grad_kernel.h" + #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/complex_grad_kernel.h" #include "paddle/phi/kernels/impl/complex_grad_kernel_impl.h" PD_REGISTER_KERNEL(imag_grad, diff --git a/paddle/phi/kernels/gpu/complex_kernel.cu b/paddle/phi/kernels/gpu/complex_kernel.cu index ae53aa95102..d0ee78202b0 100644 --- a/paddle/phi/kernels/gpu/complex_kernel.cu +++ b/paddle/phi/kernels/gpu/complex_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/complex_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/complex_kernel.h" #include "paddle/phi/kernels/impl/complex_kernel_impl.h" // See Note [ Why still include the fluid headers? ] diff --git a/paddle/phi/kernels/gpu/concat_grad_kernel.cu b/paddle/phi/kernels/gpu/concat_grad_kernel.cu index 6b980c1a033..2445978daca 100644 --- a/paddle/phi/kernels/gpu/concat_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/concat_grad_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/concat_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/concat_grad_kernel.h" #include "paddle/phi/kernels/impl/concat_grad_kernel_impl.h" PD_REGISTER_KERNEL(concat_grad, diff --git a/paddle/phi/kernels/gpu/concat_kernel.cu b/paddle/phi/kernels/gpu/concat_kernel.cu index 9582110c621..accb1cc3d77 100644 --- a/paddle/phi/kernels/gpu/concat_kernel.cu +++ b/paddle/phi/kernels/gpu/concat_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/concat_kernel.h" + #include "paddle/fluid/operators/strided_memcpy.h" #include "paddle/fluid/platform/bfloat16.h" #include "paddle/fluid/platform/complex.h" @@ -20,7 +22,6 @@ #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/lod_utils.h" -#include "paddle/phi/kernels/concat_kernel.h" #include "paddle/phi/kernels/funcs/concat_and_split_functor.h" #include "paddle/phi/kernels/funcs/concat_funcs.h" diff --git a/paddle/phi/kernels/gpu/conv_grad_grad_kernel.cu b/paddle/phi/kernels/gpu/conv_grad_grad_kernel.cu index f2669ebe04b..9d3e6da944a 100644 --- a/paddle/phi/kernels/gpu/conv_grad_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/conv_grad_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/conv_grad_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_grad_grad_kernel.h" #include "paddle/phi/kernels/impl/conv_grad_grad_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/conv_grad_kernel.cu b/paddle/phi/kernels/gpu/conv_grad_kernel.cu index 5fae327c2a9..e4b094314f8 100644 --- a/paddle/phi/kernels/gpu/conv_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/conv_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/conv_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_grad_kernel.h" #include "paddle/phi/kernels/impl/conv_grad_kernel_impl.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/conv_kernel.cu b/paddle/phi/kernels/gpu/conv_kernel.cu index 3aa406af4c2..e548b6fbf6d 100644 --- a/paddle/phi/kernels/gpu/conv_kernel.cu +++ b/paddle/phi/kernels/gpu/conv_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/conv_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_kernel.h" #include "paddle/phi/kernels/impl/conv_kernel_impl.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/conv_transpose_grad_kernel.cu b/paddle/phi/kernels/gpu/conv_transpose_grad_kernel.cu index ee140a529b7..0f7498a16d6 100644 --- a/paddle/phi/kernels/gpu/conv_transpose_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/conv_transpose_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/conv_transpose_grad_kernel.h" + #include "paddle/phi/common/layout.h" #include "paddle/phi/core/ddim.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_transpose_grad_kernel.h" #include "paddle/phi/kernels/cpu/conv_util.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/gpu/depthwise_conv.h" diff --git a/paddle/phi/kernels/gpu/conv_transpose_kernel.cu b/paddle/phi/kernels/gpu/conv_transpose_kernel.cu index 4f8aae09a73..94d0d536a85 100644 --- a/paddle/phi/kernels/gpu/conv_transpose_kernel.cu +++ b/paddle/phi/kernels/gpu/conv_transpose_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/conv_transpose_kernel.h" + #include "paddle/phi/common/layout.h" #include "paddle/phi/core/ddim.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_transpose_kernel.h" #include "paddle/phi/kernels/cpu/conv_util.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/gpu/depthwise_conv.h" diff --git a/paddle/phi/kernels/gpu/copy_kernel.cu b/paddle/phi/kernels/gpu/copy_kernel.cu index c917ce75489..16eff5b26e3 100644 --- a/paddle/phi/kernels/gpu/copy_kernel.cu +++ b/paddle/phi/kernels/gpu/copy_kernel.cu @@ -12,11 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/copy_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/data_type.h" #include "paddle/phi/core/compat/convert_utils.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/copy_kernel.h" // See Note [ Why still include the fluid headers? ] #include "paddle/fluid/memory/malloc.h" diff --git a/paddle/phi/kernels/gpu/cross_grad_kernel.cu b/paddle/phi/kernels/gpu/cross_grad_kernel.cu index 97d6d6849ae..ada78adb77f 100644 --- a/paddle/phi/kernels/gpu/cross_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/cross_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/cross_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/cross_grad_kernel.h" #include "paddle/phi/kernels/funcs/reduce_function.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/cross_kernel.cu b/paddle/phi/kernels/gpu/cross_kernel.cu index 4d4588f9b51..44173f4fbe6 100644 --- a/paddle/phi/kernels/gpu/cross_kernel.cu +++ b/paddle/phi/kernels/gpu/cross_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/cross_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/cross_kernel.h" #include "paddle/phi/kernels/funcs/reduce_function.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/cum_kernel.cu b/paddle/phi/kernels/gpu/cum_kernel.cu index ad86fd9ba49..837914fb2db 100644 --- a/paddle/phi/kernels/gpu/cum_kernel.cu +++ b/paddle/phi/kernels/gpu/cum_kernel.cu @@ -12,12 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/cum_kernel.h" + #include #include #include #include - -#include "paddle/phi/kernels/cum_kernel.h" #ifdef __NVCC__ #include #endif @@ -271,7 +271,6 @@ void ScanKernel(const Context& dev_ctx, return; } - size_t height = 1; size_t width = 1; for (size_t i = 0; i <= axis; i++) { @@ -391,9 +390,5 @@ PD_REGISTER_KERNEL(cumsum, int, int64_t) {} -PD_REGISTER_KERNEL(logcumsumexp, - GPU, - ALL_LAYOUT, - phi::LogcumsumexpKernel, - float, - double) {} +PD_REGISTER_KERNEL( + logcumsumexp, GPU, ALL_LAYOUT, phi::LogcumsumexpKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/cumprod_grad_kernel.cu b/paddle/phi/kernels/gpu/cumprod_grad_kernel.cu index bbae4fd130c..aee1aaa9555 100644 --- a/paddle/phi/kernels/gpu/cumprod_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/cumprod_grad_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/cumprod_grad_kernel.h" + #include #include "paddle/fluid/operators/math/inclusive_scan.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/cumprod_grad_kernel.h" #include "paddle/phi/kernels/funcs/complex_functors.h" #include "paddle/phi/kernels/funcs/cumprod.h" #include "paddle/phi/kernels/funcs/elementwise_functor.h" diff --git a/paddle/phi/kernels/gpu/cumprod_kernel.cu b/paddle/phi/kernels/gpu/cumprod_kernel.cu index 86aef50ac32..1bbf8972a24 100644 --- a/paddle/phi/kernels/gpu/cumprod_kernel.cu +++ b/paddle/phi/kernels/gpu/cumprod_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/cumprod_kernel.h" + #include "paddle/fluid/operators/math/inclusive_scan.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/cumprod_kernel.h" #include "paddle/phi/kernels/funcs/complex_functors.h" #include "paddle/phi/kernels/funcs/cumprod.h" #include "paddle/phi/kernels/funcs/elementwise_functor.h" diff --git a/paddle/phi/kernels/gpu/deformable_conv_grad_kernel.cu b/paddle/phi/kernels/gpu/deformable_conv_grad_kernel.cu index d80a4b8cc4c..b46f1f4a331 100644 --- a/paddle/phi/kernels/gpu/deformable_conv_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/deformable_conv_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/deformable_conv_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/deformable_conv_grad_kernel.h" #include "paddle/phi/kernels/impl/deformable_conv_grad_kernel_impl.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/deformable_conv_kernel.cu b/paddle/phi/kernels/gpu/deformable_conv_kernel.cu index 17a7b3265ca..2476dcbafb9 100644 --- a/paddle/phi/kernels/gpu/deformable_conv_kernel.cu +++ b/paddle/phi/kernels/gpu/deformable_conv_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/deformable_conv_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/deformable_conv_kernel.h" #include "paddle/phi/kernels/impl/deformable_conv_kernel_impl.h" PD_REGISTER_KERNEL(deformable_conv, diff --git a/paddle/phi/kernels/gpu/determinant_grad_kernel.cu b/paddle/phi/kernels/gpu/determinant_grad_kernel.cu index 267a3b5e3fa..cce12a87fac 100644 --- a/paddle/phi/kernels/gpu/determinant_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/determinant_grad_kernel.cu @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/determinant_grad_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/determinant_grad_kernel_impl.h" PD_REGISTER_KERNEL(determinant_grad, diff --git a/paddle/phi/kernels/gpu/determinant_kernel.cu b/paddle/phi/kernels/gpu/determinant_kernel.cu index b2dddf1fdb8..25184083873 100644 --- a/paddle/phi/kernels/gpu/determinant_kernel.cu +++ b/paddle/phi/kernels/gpu/determinant_kernel.cu @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/determinant_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/determinant_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/diag_kernel.cu b/paddle/phi/kernels/gpu/diag_kernel.cu index fd63084ecb3..95d3d3365d9 100644 --- a/paddle/phi/kernels/gpu/diag_kernel.cu +++ b/paddle/phi/kernels/gpu/diag_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/diag_kernel.h" + #include #include #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/diag_kernel.h" #include "paddle/phi/kernels/funcs/diag_functor.h" #include "paddle/phi/kernels/funcs/math_function.h" diff --git a/paddle/phi/kernels/gpu/diagonal_grad_kernel.cu b/paddle/phi/kernels/gpu/diagonal_grad_kernel.cu index 423093728e9..a5c0e059598 100644 --- a/paddle/phi/kernels/gpu/diagonal_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/diagonal_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/diagonal_grad_kernel.h" + #include "paddle/fluid/framework/tensor_util.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/diagonal_grad_kernel.h" #include "paddle/phi/kernels/funcs/diagonal.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/diagonal_kernel.cu b/paddle/phi/kernels/gpu/diagonal_kernel.cu index 58da29b2224..2e4ae591997 100644 --- a/paddle/phi/kernels/gpu/diagonal_kernel.cu +++ b/paddle/phi/kernels/gpu/diagonal_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/diagonal_kernel.h" + #include "paddle/fluid/framework/tensor_util.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/diagonal_kernel.h" #include "paddle/phi/kernels/funcs/diagonal.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/digamma_grad_kernel.cu b/paddle/phi/kernels/gpu/digamma_grad_kernel.cu index 695227bba0f..5131c8f37f3 100644 --- a/paddle/phi/kernels/gpu/digamma_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/digamma_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/digamma_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/digamma_grad_kernel.h" #include "paddle/phi/kernels/impl/digamma_grad_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/digamma_kernel.cu b/paddle/phi/kernels/gpu/digamma_kernel.cu index 381c22a82e8..31fc2295b02 100644 --- a/paddle/phi/kernels/gpu/digamma_kernel.cu +++ b/paddle/phi/kernels/gpu/digamma_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/digamma_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/scalar.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/digamma_kernel.h" #include "paddle/phi/kernels/impl/digamma_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/dist_grad_kernel.cu b/paddle/phi/kernels/gpu/dist_grad_kernel.cu index cdfec8d4afd..df422e8b2da 100644 --- a/paddle/phi/kernels/gpu/dist_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/dist_grad_kernel.cu @@ -12,9 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/dist_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/dist_grad_kernel.h" #include "paddle/phi/kernels/impl/dist_grad_kernel_impl.h" #ifdef PADDLE_WITH_HIP diff --git a/paddle/phi/kernels/gpu/dist_kernel.cu b/paddle/phi/kernels/gpu/dist_kernel.cu index d5ed1721612..095110c2529 100644 --- a/paddle/phi/kernels/gpu/dist_kernel.cu +++ b/paddle/phi/kernels/gpu/dist_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/dist_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/dist_kernel.h" #include "paddle/phi/kernels/impl/dist_kernel_impl.h" #ifdef PADDLE_WITH_HIP diff --git a/paddle/phi/kernels/gpu/dot_grad_kernel.cu b/paddle/phi/kernels/gpu/dot_grad_kernel.cu index c299e11b1f9..874d0f03b7d 100644 --- a/paddle/phi/kernels/gpu/dot_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/dot_grad_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/dot_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/dot_grad_kernel.h" #include "paddle/phi/kernels/impl/dot_grad_kernel_impl.h" PD_REGISTER_KERNEL(dot_grad, diff --git a/paddle/phi/kernels/gpu/dot_kernel.cu b/paddle/phi/kernels/gpu/dot_kernel.cu index f947ef310eb..4442396f6c9 100644 --- a/paddle/phi/kernels/gpu/dot_kernel.cu +++ b/paddle/phi/kernels/gpu/dot_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/dot_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/dot_kernel.h" #include "paddle/phi/kernels/funcs/eigen/common.h" // See Note [ Why still include the fluid headers? ] diff --git a/paddle/phi/kernels/gpu/dropout_grad_kernel.cu b/paddle/phi/kernels/gpu/dropout_grad_kernel.cu index 1eea13a5a22..841d98fbc00 100644 --- a/paddle/phi/kernels/gpu/dropout_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/dropout_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/dropout_grad_kernel.h" + #include "paddle/fluid/operators/dropout_impl.cu.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/dropout_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/dropout_kernel.cu b/paddle/phi/kernels/gpu/dropout_kernel.cu index 3811440be75..2fa3c7639e3 100644 --- a/paddle/phi/kernels/gpu/dropout_kernel.cu +++ b/paddle/phi/kernels/gpu/dropout_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/dropout_kernel.h" + #include "paddle/fluid/operators/dropout_impl.cu.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/dropout_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/eigh_grad_kernel.cu b/paddle/phi/kernels/gpu/eigh_grad_kernel.cu index 51ff66b4a9c..85bc5e6f76e 100644 --- a/paddle/phi/kernels/gpu/eigh_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/eigh_grad_kernel.cu @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/eigh_grad_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/complex_functors.h" #include "paddle/phi/kernels/impl/eigh_grad_kernel_impl.h" diff --git a/paddle/phi/kernels/gpu/eigh_kernel.cu b/paddle/phi/kernels/gpu/eigh_kernel.cu index 8c3ebf5f12b..3ffbb0b95b6 100644 --- a/paddle/phi/kernels/gpu/eigh_kernel.cu +++ b/paddle/phi/kernels/gpu/eigh_kernel.cu @@ -15,8 +15,9 @@ #ifndef PADDLE_WITH_HIP // HIP not support cusolver -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/eigh_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/complex_functors.h" #include "paddle/phi/kernels/funcs/values_vectors_functor.h" diff --git a/paddle/phi/kernels/gpu/einsum_kernel.cu b/paddle/phi/kernels/gpu/einsum_kernel.cu index 08853890826..d1f4c659038 100644 --- a/paddle/phi/kernels/gpu/einsum_kernel.cu +++ b/paddle/phi/kernels/gpu/einsum_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/einsum_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/einsum_kernel.h" #include "paddle/phi/kernels/impl/einsum_impl.h" PD_REGISTER_KERNEL(einsum, diff --git a/paddle/phi/kernels/gpu/elementwise_add_grad_kernel.cu b/paddle/phi/kernels/gpu/elementwise_add_grad_kernel.cu index 4739d8cb334..517fbcba158 100644 --- a/paddle/phi/kernels/gpu/elementwise_add_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/elementwise_add_grad_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/elementwise_add_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" -#include "paddle/phi/kernels/elementwise_add_grad_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_functor.h" #include "paddle/phi/kernels/gpu/elementwise_grad.h" #include "paddle/phi/kernels/impl/elementwise_grad_kernel_impl.h" diff --git a/paddle/phi/kernels/gpu/elementwise_divide_grad_kernel.cu b/paddle/phi/kernels/gpu/elementwise_divide_grad_kernel.cu index 5ef0752d6c8..57bf6da4060 100644 --- a/paddle/phi/kernels/gpu/elementwise_divide_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/elementwise_divide_grad_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/elementwise_divide_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/elementwise_divide_grad_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_functor.h" #include "paddle/phi/kernels/gpu/elementwise_grad.h" #include "paddle/phi/kernels/impl/elementwise_grad_kernel_impl.h" diff --git a/paddle/phi/kernels/gpu/elementwise_grad_kernel.cu b/paddle/phi/kernels/gpu/elementwise_grad_kernel.cu index 8dc0917fef5..3e7430fd84e 100644 --- a/paddle/phi/kernels/gpu/elementwise_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/elementwise_grad_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/elementwise_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" -#include "paddle/phi/kernels/elementwise_grad_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_functor.h" #include "paddle/phi/kernels/gpu/elementwise_grad.h" #include "paddle/phi/kernels/impl/elementwise_grad_kernel_impl.h" diff --git a/paddle/phi/kernels/gpu/elementwise_multiply_grad_kernel.cu b/paddle/phi/kernels/gpu/elementwise_multiply_grad_kernel.cu index 0201854e533..3442d7f0285 100644 --- a/paddle/phi/kernels/gpu/elementwise_multiply_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/elementwise_multiply_grad_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/elementwise_multiply_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/elementwise_multiply_grad_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_functor.h" #include "paddle/phi/kernels/gpu/elementwise_grad.h" #include "paddle/phi/kernels/impl/elementwise_grad_kernel_impl.h" diff --git a/paddle/phi/kernels/gpu/embedding_grad_kernel.cu b/paddle/phi/kernels/gpu/embedding_grad_kernel.cu index d01674719ed..f11fd0191b9 100644 --- a/paddle/phi/kernels/gpu/embedding_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/embedding_grad_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/embedding_grad_kernel.h" + #include "paddle/fluid/framework/mixed_vector.h" #include "paddle/fluid/memory/memcpy.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/data_type.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/embedding_grad_kernel.h" #include "paddle/phi/kernels/funcs/eigen/common.h" #include "paddle/phi/kernels/funcs/embedding_util.h" diff --git a/paddle/phi/kernels/gpu/embedding_kernel.cu b/paddle/phi/kernels/gpu/embedding_kernel.cu index c0516d00899..90f3cc8d360 100644 --- a/paddle/phi/kernels/gpu/embedding_kernel.cu +++ b/paddle/phi/kernels/gpu/embedding_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/embedding_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/data_type.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/embedding_kernel.h" #include "paddle/phi/kernels/funcs/eigen/eigen_function.h" #include "paddle/phi/kernels/funcs/embedding_util.h" diff --git a/paddle/phi/kernels/gpu/erf_grad_kernel.cu b/paddle/phi/kernels/gpu/erf_grad_kernel.cu index a06863b0a87..bbe7a20217f 100644 --- a/paddle/phi/kernels/gpu/erf_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/erf_grad_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/erf_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/erf_grad_kernel.h" #include "paddle/phi/kernels/impl/erf_grad_kernel_impl.h" PD_REGISTER_KERNEL(erf_grad, diff --git a/paddle/phi/kernels/gpu/erf_kernel.cu b/paddle/phi/kernels/gpu/erf_kernel.cu index 8e741be3345..cdd77424f60 100644 --- a/paddle/phi/kernels/gpu/erf_kernel.cu +++ b/paddle/phi/kernels/gpu/erf_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/erf_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/erf_kernel.h" #include "paddle/phi/kernels/impl/erf_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/erfinv_grad_kernel.cu b/paddle/phi/kernels/gpu/erfinv_grad_kernel.cu index 078632fb4e6..ce45d4e018e 100644 --- a/paddle/phi/kernels/gpu/erfinv_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/erfinv_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/erfinv_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/erfinv_grad_kernel.h" #include "paddle/phi/kernels/impl/erfinv_grad_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/erfinv_kernel.cu b/paddle/phi/kernels/gpu/erfinv_kernel.cu index 3296bb3dbb1..2316e960396 100644 --- a/paddle/phi/kernels/gpu/erfinv_kernel.cu +++ b/paddle/phi/kernels/gpu/erfinv_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/erfinv_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/erfinv_kernel.h" #include "paddle/phi/kernels/impl/erfinv_kernel_impl.h" PD_REGISTER_KERNEL(erfinv, GPU, ALL_LAYOUT, phi::ErfinvKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/expand_as_grad_kernel.cu b/paddle/phi/kernels/gpu/expand_as_grad_kernel.cu index 387708af05b..f289b8ce3be 100644 --- a/paddle/phi/kernels/gpu/expand_as_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/expand_as_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/expand_as_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/expand_as_grad_kernel.h" #include "paddle/phi/kernels/impl/expand_as_grad_kernel_impl.h" PD_REGISTER_KERNEL(expand_as_grad, diff --git a/paddle/phi/kernels/gpu/expand_as_kernel.cu b/paddle/phi/kernels/gpu/expand_as_kernel.cu index 68e683127ba..bd3f915c1a0 100644 --- a/paddle/phi/kernels/gpu/expand_as_kernel.cu +++ b/paddle/phi/kernels/gpu/expand_as_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/expand_as_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/expand_as_kernel.h" #include "paddle/phi/kernels/impl/expand_as_kernel_impl.h" PD_REGISTER_KERNEL(expand_as, diff --git a/paddle/phi/kernels/gpu/expand_grad_kernel.cu b/paddle/phi/kernels/gpu/expand_grad_kernel.cu index 8e2c3fde04a..e8729942b6e 100644 --- a/paddle/phi/kernels/gpu/expand_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/expand_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/expand_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/expand_grad_kernel.h" #include "paddle/phi/kernels/impl/expand_grad_kernel_impl.h" PD_REGISTER_KERNEL(expand_grad, diff --git a/paddle/phi/kernels/gpu/expand_kernel.cu b/paddle/phi/kernels/gpu/expand_kernel.cu index d4275804b3d..27c4e82c635 100644 --- a/paddle/phi/kernels/gpu/expand_kernel.cu +++ b/paddle/phi/kernels/gpu/expand_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/expand_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/scalar.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/expand_kernel.h" #include "paddle/phi/kernels/impl/expand_kernel_impl.h" PD_REGISTER_KERNEL(expand, diff --git a/paddle/phi/kernels/gpu/eye_kernel.cu b/paddle/phi/kernels/gpu/eye_kernel.cu index d720feb9030..5cd8e5caabe 100644 --- a/paddle/phi/kernels/gpu/eye_kernel.cu +++ b/paddle/phi/kernels/gpu/eye_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/eye_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/eye_kernel.h" #include "paddle/phi/kernels/impl/eye_kernel_impl.h" PD_REGISTER_KERNEL(eye, diff --git a/paddle/phi/kernels/gpu/flip_kernel.cu b/paddle/phi/kernels/gpu/flip_kernel.cu index 519a57f3287..08ef6ddc5b2 100644 --- a/paddle/phi/kernels/gpu/flip_kernel.cu +++ b/paddle/phi/kernels/gpu/flip_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/flip_kernel.h" + #include "paddle/fluid/memory/malloc.h" #include "paddle/fluid/memory/memcpy.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/place.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/flip_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/frobenius_norm_grad_kernel.cu b/paddle/phi/kernels/gpu/frobenius_norm_grad_kernel.cu index 9011bb8c5d2..d79f7101420 100644 --- a/paddle/phi/kernels/gpu/frobenius_norm_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/frobenius_norm_grad_kernel.cu @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/frobenius_norm_grad_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/frobenius_norm_grad_kernel_impl.h" PD_REGISTER_KERNEL(frobenius_norm_grad, diff --git a/paddle/phi/kernels/gpu/frobenius_norm_kernel.cu b/paddle/phi/kernels/gpu/frobenius_norm_kernel.cu index f41ccfd3773..a439711f5d0 100644 --- a/paddle/phi/kernels/gpu/frobenius_norm_kernel.cu +++ b/paddle/phi/kernels/gpu/frobenius_norm_kernel.cu @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/frobenius_norm_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/activation_functor.h" #include "paddle/phi/kernels/gpu/reduce.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/full_kernel.cu b/paddle/phi/kernels/gpu/full_kernel.cu index b823bb6aa67..50e57a46317 100644 --- a/paddle/phi/kernels/gpu/full_kernel.cu +++ b/paddle/phi/kernels/gpu/full_kernel.cu @@ -12,9 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/full_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/full_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/gather_kernel.cu b/paddle/phi/kernels/gpu/gather_kernel.cu index ffec56073e6..7e0c6cc1685 100644 --- a/paddle/phi/kernels/gpu/gather_kernel.cu +++ b/paddle/phi/kernels/gpu/gather_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/gather_kernel.h" + #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/gather.cu.h" -#include "paddle/phi/kernels/gather_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/gather_nd_grad_kernel.cu b/paddle/phi/kernels/gpu/gather_nd_grad_kernel.cu index 5273902804a..a78dc717b04 100644 --- a/paddle/phi/kernels/gpu/gather_nd_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/gather_nd_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/gather_nd_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/eigen/common.h" #include "paddle/phi/kernels/funcs/scatter.cu.h" -#include "paddle/phi/kernels/gather_nd_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/gather_nd_kernel.cu b/paddle/phi/kernels/gpu/gather_nd_kernel.cu index 33745ef5f07..7b241295890 100644 --- a/paddle/phi/kernels/gpu/gather_nd_kernel.cu +++ b/paddle/phi/kernels/gpu/gather_nd_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/gather_nd_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/gather.cu.h" #include "paddle/phi/kernels/funcs/scatter.cu.h" -#include "paddle/phi/kernels/gather_nd_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/gather_tree_kernel.cu b/paddle/phi/kernels/gpu/gather_tree_kernel.cu index 0172933d1be..22b174b5f0b 100644 --- a/paddle/phi/kernels/gpu/gather_tree_kernel.cu +++ b/paddle/phi/kernels/gpu/gather_tree_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/gather_tree_kernel.h" + #include #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/gather_tree_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/gaussian_random_kernel.cu b/paddle/phi/kernels/gpu/gaussian_random_kernel.cu index 0494c38b213..f1edca70777 100644 --- a/paddle/phi/kernels/gpu/gaussian_random_kernel.cu +++ b/paddle/phi/kernels/gpu/gaussian_random_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/gaussian_random_kernel.h" + #include #include "paddle/fluid/framework/generator.h" @@ -21,7 +23,6 @@ #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/distribution_helper.h" #include "paddle/phi/kernels/funcs/index_impl.cu.h" -#include "paddle/phi/kernels/gaussian_random_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/graph_reindex_kernel.cu b/paddle/phi/kernels/gpu/graph_reindex_kernel.cu index c6be5231fe2..046c210e186 100644 --- a/paddle/phi/kernels/gpu/graph_reindex_kernel.cu +++ b/paddle/phi/kernels/gpu/graph_reindex_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/graph_reindex_kernel.h" + #include #include #include @@ -21,7 +23,6 @@ #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpu/graph_reindex_funcs.h" -#include "paddle/phi/kernels/graph_reindex_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/graph_send_recv_grad_kernel.cu b/paddle/phi/kernels/gpu/graph_send_recv_grad_kernel.cu index b00d9931646..e78fb7892ed 100644 --- a/paddle/phi/kernels/gpu/graph_send_recv_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/graph_send_recv_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/graph_send_recv_grad_kernel.h" + #include #include @@ -19,7 +21,6 @@ #include "paddle/phi/core/hostdevice.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpu/graph_send_recv_funcs.h" -#include "paddle/phi/kernels/graph_send_recv_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/graph_send_recv_kernel.cu b/paddle/phi/kernels/gpu/graph_send_recv_kernel.cu index 446a2361aed..7ecf352ffe9 100644 --- a/paddle/phi/kernels/gpu/graph_send_recv_kernel.cu +++ b/paddle/phi/kernels/gpu/graph_send_recv_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/graph_send_recv_kernel.h" + #include #include @@ -22,7 +24,6 @@ #include "paddle/phi/core/hostdevice.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpu/graph_send_recv_funcs.h" -#include "paddle/phi/kernels/graph_send_recv_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/grid_sample_grad_kernel.cu b/paddle/phi/kernels/gpu/grid_sample_grad_kernel.cu index 40633fed348..a258e041b17 100644 --- a/paddle/phi/kernels/gpu/grid_sample_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/grid_sample_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/grid_sample_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_device_function.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_info.h" @@ -19,7 +21,6 @@ #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/gpu/grid_sample_utils.h" -#include "paddle/phi/kernels/grid_sample_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/grid_sample_kernel.cu b/paddle/phi/kernels/gpu/grid_sample_kernel.cu index 4a5d567caa1..0bf0435240a 100644 --- a/paddle/phi/kernels/gpu/grid_sample_kernel.cu +++ b/paddle/phi/kernels/gpu/grid_sample_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/grid_sample_kernel.h" + #include "paddle/phi/backends/gpu/gpu_info.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpu/grid_sample_utils.h" -#include "paddle/phi/kernels/grid_sample_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/group_norm_grad_kernel.cu b/paddle/phi/kernels/gpu/group_norm_grad_kernel.cu index 8af66fe0f29..359dc8a0095 100644 --- a/paddle/phi/kernels/gpu/group_norm_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/group_norm_grad_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/group_norm_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/layout.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/gpu/group_norm_utils.h" -#include "paddle/phi/kernels/group_norm_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/group_norm_kernel.cu b/paddle/phi/kernels/gpu/group_norm_kernel.cu index 127677233b8..012f224f044 100644 --- a/paddle/phi/kernels/gpu/group_norm_kernel.cu +++ b/paddle/phi/kernels/gpu/group_norm_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/group_norm_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/layout.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/gpu/group_norm_utils.h" -#include "paddle/phi/kernels/group_norm_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/gumbel_softmax_grad_kernel.cu b/paddle/phi/kernels/gpu/gumbel_softmax_grad_kernel.cu index 71d9859c8a3..2d7b4bdeb69 100644 --- a/paddle/phi/kernels/gpu/gumbel_softmax_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/gumbel_softmax_grad_kernel.cu @@ -12,8 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gumbel_softmax_grad_kernel.h" + +#include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/gumbel_softmax_grad_kernel_impl.h" PD_REGISTER_KERNEL(gumbel_softmax_grad, diff --git a/paddle/phi/kernels/gpu/gumbel_softmax_kernel.cu b/paddle/phi/kernels/gpu/gumbel_softmax_kernel.cu index d68c77de02f..33bf0eba380 100644 --- a/paddle/phi/kernels/gpu/gumbel_softmax_kernel.cu +++ b/paddle/phi/kernels/gpu/gumbel_softmax_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/gumbel_softmax_kernel.h" + #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/axis_utils.h" -#include "paddle/phi/kernels/gumbel_softmax_kernel.h" #include "paddle/phi/kernels/impl/gumbel_softmax_kernel_impl.h" #if defined(__NVCC__) || defined(__HIPCC__) diff --git a/paddle/phi/kernels/gpu/histogram_kernel.cu b/paddle/phi/kernels/gpu/histogram_kernel.cu index 2950aef15ca..cd89bf98a30 100644 --- a/paddle/phi/kernels/gpu/histogram_kernel.cu +++ b/paddle/phi/kernels/gpu/histogram_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/histogram_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_launch_config.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" @@ -19,7 +21,6 @@ #include "paddle/phi/kernels/funcs/eigen/common.h" #include "paddle/phi/kernels/funcs/eigen/eigen_function.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/histogram_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/huber_loss_grad_kernel.cu b/paddle/phi/kernels/gpu/huber_loss_grad_kernel.cu index 20cc2ed669a..9e169cbdcb7 100644 --- a/paddle/phi/kernels/gpu/huber_loss_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/huber_loss_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/huber_loss_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/huber_loss_grad_kernel.h" #include "paddle/phi/kernels/impl/huber_loss_grad_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/huber_loss_kernel.cu b/paddle/phi/kernels/gpu/huber_loss_kernel.cu index 26648a260b9..efb454832cd 100644 --- a/paddle/phi/kernels/gpu/huber_loss_kernel.cu +++ b/paddle/phi/kernels/gpu/huber_loss_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/huber_loss_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/huber_loss_kernel.h" #include "paddle/phi/kernels/impl/huber_loss_kernel_impl.h" PD_REGISTER_KERNEL( diff --git a/paddle/phi/kernels/gpu/increment_kernel.cu b/paddle/phi/kernels/gpu/increment_kernel.cu index 8e7cb6e8b3c..b3c31271911 100644 --- a/paddle/phi/kernels/gpu/increment_kernel.cu +++ b/paddle/phi/kernels/gpu/increment_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/increment_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/increment_kernel_impl.h" -#include "paddle/phi/kernels/increment_kernel.h" PD_REGISTER_KERNEL(increment, GPU, diff --git a/paddle/phi/kernels/gpu/index_sample_grad_kernel.cu b/paddle/phi/kernels/gpu/index_sample_grad_kernel.cu index b763f05531d..d2671dff7b0 100644 --- a/paddle/phi/kernels/gpu/index_sample_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/index_sample_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/index_sample_grad_kernel.h" + #include #include @@ -21,7 +23,6 @@ #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/index_sample_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/index_sample_kernel.cu b/paddle/phi/kernels/gpu/index_sample_kernel.cu index 702c955cd7e..9b95d761fcb 100644 --- a/paddle/phi/kernels/gpu/index_sample_kernel.cu +++ b/paddle/phi/kernels/gpu/index_sample_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/index_sample_kernel.h" + #include #include @@ -20,7 +22,6 @@ #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/index_sample_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/index_select_grad_kernel.cu b/paddle/phi/kernels/gpu/index_select_grad_kernel.cu index 75f74e4afdf..8561744e87b 100644 --- a/paddle/phi/kernels/gpu/index_select_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/index_select_grad_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/index_select_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_launch_config.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_info.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/utils/data_type.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/index_select_grad_kernel.h" DECLARE_bool(cudnn_deterministic); diff --git a/paddle/phi/kernels/gpu/index_select_kernel.cu b/paddle/phi/kernels/gpu/index_select_kernel.cu index d2a2bff075b..0a6ac69cef0 100644 --- a/paddle/phi/kernels/gpu/index_select_kernel.cu +++ b/paddle/phi/kernels/gpu/index_select_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/index_select_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_launch_config.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_info.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/utils/data_type.h" -#include "paddle/phi/kernels/index_select_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/instance_norm_grad_kernel.cu b/paddle/phi/kernels/gpu/instance_norm_grad_kernel.cu index bdc81b59f14..d7ea2340afc 100644 --- a/paddle/phi/kernels/gpu/instance_norm_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/instance_norm_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/instance_norm_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/layout.h" #include "paddle/phi/core/kernel_registry.h" @@ -19,7 +21,6 @@ #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/norm_utils.h" #include "paddle/phi/kernels/gpu/instance_norm_utils.h" -#include "paddle/phi/kernels/instance_norm_grad_kernel.h" namespace phi { template diff --git a/paddle/phi/kernels/gpu/instance_norm_kernel.cu b/paddle/phi/kernels/gpu/instance_norm_kernel.cu index c7696c2dab8..b7292236898 100644 --- a/paddle/phi/kernels/gpu/instance_norm_kernel.cu +++ b/paddle/phi/kernels/gpu/instance_norm_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/instance_norm_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/layout.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/norm_utils.h" #include "paddle/phi/kernels/gpu/instance_norm_utils.h" -#include "paddle/phi/kernels/instance_norm_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/interpolate_grad_kernel.cu b/paddle/phi/kernels/gpu/interpolate_grad_kernel.cu index 4b27e5dd359..175f09fccfa 100644 --- a/paddle/phi/kernels/gpu/interpolate_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/interpolate_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/interpolate_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/fluid/platform/fast_divmod.h" #include "paddle/phi/backends/gpu/gpu_context.h" @@ -21,7 +23,6 @@ #include "paddle/phi/kernels/funcs/interpolate_function.h" #include "paddle/phi/kernels/funcs/math_cuda_utils.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/interpolate_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/interpolate_kernel.cu b/paddle/phi/kernels/gpu/interpolate_kernel.cu index 108449c52ad..7bc331c52a0 100644 --- a/paddle/phi/kernels/gpu/interpolate_kernel.cu +++ b/paddle/phi/kernels/gpu/interpolate_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/interpolate_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_device_function.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/fluid/platform/fast_divmod.h" @@ -20,7 +22,6 @@ #include "paddle/phi/common/layout.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/interpolate_function.h" -#include "paddle/phi/kernels/interpolate_kernel.h" namespace phi { using paddle::platform::FastDivMod; diff --git a/paddle/phi/kernels/gpu/isclose_kernel.cu b/paddle/phi/kernels/gpu/isclose_kernel.cu index 20540521510..34774ec715c 100644 --- a/paddle/phi/kernels/gpu/isclose_kernel.cu +++ b/paddle/phi/kernels/gpu/isclose_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/isclose_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/isclose_kernel_impl.h" -#include "paddle/phi/kernels/isclose_kernel.h" PD_REGISTER_KERNEL( isclose, GPU, ALL_LAYOUT, phi::IscloseKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/isfinite_kernel.cu b/paddle/phi/kernels/gpu/isfinite_kernel.cu index 4b41ed1e55d..17ea2586517 100644 --- a/paddle/phi/kernels/gpu/isfinite_kernel.cu +++ b/paddle/phi/kernels/gpu/isfinite_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/isfinite_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/isfinite_kernel_impl.h" -#include "paddle/phi/kernels/isfinite_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/kldiv_loss_grad_kernel.cu b/paddle/phi/kernels/gpu/kldiv_loss_grad_kernel.cu index de3f6bc3f40..8ca53f021f0 100644 --- a/paddle/phi/kernels/gpu/kldiv_loss_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/kldiv_loss_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/kldiv_loss_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/kldiv_loss_grad_kernel_impl.h" -#include "paddle/phi/kernels/kldiv_loss_grad_kernel.h" PD_REGISTER_KERNEL( kldiv_loss_grad, GPU, ALL_LAYOUT, phi::KLDivLossGradKernel, float, double) { } diff --git a/paddle/phi/kernels/gpu/kldiv_loss_kernel.cu b/paddle/phi/kernels/gpu/kldiv_loss_kernel.cu index adaf6963bb8..9388ac7071c 100644 --- a/paddle/phi/kernels/gpu/kldiv_loss_kernel.cu +++ b/paddle/phi/kernels/gpu/kldiv_loss_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/kldiv_loss_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/kldiv_loss_kernel_impl.h" -#include "paddle/phi/kernels/kldiv_loss_kernel.h" PD_REGISTER_KERNEL( kldiv_loss, GPU, ALL_LAYOUT, phi::KLDivLossKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/kron_grad_kernel.cu b/paddle/phi/kernels/gpu/kron_grad_kernel.cu index 4f4e329ed84..13ef2adaab3 100644 --- a/paddle/phi/kernels/gpu/kron_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/kron_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/kron_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/kron_grad_kernel_impl.h" -#include "paddle/phi/kernels/kron_grad_kernel.h" PD_REGISTER_KERNEL(kron_grad, GPU, diff --git a/paddle/phi/kernels/gpu/kron_kernel.cu b/paddle/phi/kernels/gpu/kron_kernel.cu index 3d2b1573e89..a2124fd5af7 100644 --- a/paddle/phi/kernels/gpu/kron_kernel.cu +++ b/paddle/phi/kernels/gpu/kron_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/kron_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/kron_kernel_impl.h" -#include "paddle/phi/kernels/kron_kernel.h" PD_REGISTER_KERNEL(kron, GPU, diff --git a/paddle/phi/kernels/gpu/kthvalue_grad_kernel.cu b/paddle/phi/kernels/gpu/kthvalue_grad_kernel.cu index 4b317e3b942..997cf7ccf57 100644 --- a/paddle/phi/kernels/gpu/kthvalue_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/kthvalue_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/kthvalue_grad_kernel.h" + #include "paddle/fluid/operators/top_k_function_cuda.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/kthvalue_grad_kernel.h" namespace phi { static int getBlockSize(int col) { diff --git a/paddle/phi/kernels/gpu/kthvalue_kernel.cu b/paddle/phi/kernels/gpu/kthvalue_kernel.cu index bd2b16fb378..c677e26d0ae 100644 --- a/paddle/phi/kernels/gpu/kthvalue_kernel.cu +++ b/paddle/phi/kernels/gpu/kthvalue_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/kthvalue_kernel.h" + #include "paddle/fluid/operators/top_k_function_cuda.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/eigen/common.h" #include "paddle/phi/kernels/funcs/eigen/eigen_function.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/kthvalue_kernel.h" namespace phi { inline int getBlockSize(int col) { diff --git a/paddle/phi/kernels/gpu/label_smooth_grad_kernel.cu b/paddle/phi/kernels/gpu/label_smooth_grad_kernel.cu index f30e8c3cdcf..ddf7657fe52 100644 --- a/paddle/phi/kernels/gpu/label_smooth_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/label_smooth_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/label_smooth_grad_kernel.h" + #include "paddle/fluid/operators/elementwise/elementwise_op_impl.cu.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/label_smooth_grad_kernel.h" namespace phi { template diff --git a/paddle/phi/kernels/gpu/label_smooth_kernel.cu b/paddle/phi/kernels/gpu/label_smooth_kernel.cu index 2bcb0ce5f3a..4a2f27d3018 100644 --- a/paddle/phi/kernels/gpu/label_smooth_kernel.cu +++ b/paddle/phi/kernels/gpu/label_smooth_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/label_smooth_kernel.h" + #include #include "paddle/fluid/operators/elementwise/elementwise_op_impl.cu.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/label_smooth_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/layer_norm_grad_kernel.cu b/paddle/phi/kernels/gpu/layer_norm_grad_kernel.cu index 5a399361aaa..961937441e1 100644 --- a/paddle/phi/kernels/gpu/layer_norm_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/layer_norm_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/layer_norm_grad_kernel.h" + #include "paddle/fluid/operators/layer_norm_kernel.cu.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/layer_norm_util.h" -#include "paddle/phi/kernels/layer_norm_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/layer_norm_kernel.cu b/paddle/phi/kernels/gpu/layer_norm_kernel.cu index 10aeba339cb..4922ba0cc27 100644 --- a/paddle/phi/kernels/gpu/layer_norm_kernel.cu +++ b/paddle/phi/kernels/gpu/layer_norm_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/layer_norm_kernel.h" + #include "paddle/fluid/operators/layer_norm_kernel.cu.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/layer_norm_util.h" -#include "paddle/phi/kernels/layer_norm_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/lerp_grad_kernel.cu b/paddle/phi/kernels/gpu/lerp_grad_kernel.cu index 0a5ac99fa8e..39abe1e055d 100644 --- a/paddle/phi/kernels/gpu/lerp_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/lerp_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/lerp_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/lerp_grad_kernel_impl.h" -#include "paddle/phi/kernels/lerp_grad_kernel.h" PD_REGISTER_KERNEL( lerp_grad, GPU, ALL_LAYOUT, phi::LerpGradKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/lerp_kernel.cu b/paddle/phi/kernels/gpu/lerp_kernel.cu index 96010aff4e7..3f6862ff979 100644 --- a/paddle/phi/kernels/gpu/lerp_kernel.cu +++ b/paddle/phi/kernels/gpu/lerp_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/lerp_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/lerp_kernel_impl.h" -#include "paddle/phi/kernels/lerp_kernel.h" PD_REGISTER_KERNEL(lerp, GPU, ALL_LAYOUT, phi::LerpKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/lgamma_grad_kernel.cu b/paddle/phi/kernels/gpu/lgamma_grad_kernel.cu index c7e82b8cd7e..3e4cd21a658 100644 --- a/paddle/phi/kernels/gpu/lgamma_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/lgamma_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/lgamma_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/lgamma_grad_kernel_impl.h" -#include "paddle/phi/kernels/lgamma_grad_kernel.h" PD_REGISTER_KERNEL( lgamma_grad, GPU, ALL_LAYOUT, phi::LgammaGradKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/lgamma_kernel.cu b/paddle/phi/kernels/gpu/lgamma_kernel.cu index 050002f0555..e94d67f4ce3 100644 --- a/paddle/phi/kernels/gpu/lgamma_kernel.cu +++ b/paddle/phi/kernels/gpu/lgamma_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/lgamma_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" -#include "paddle/phi/kernels/lgamma_kernel.h" namespace phi { template diff --git a/paddle/phi/kernels/gpu/linspace_kernel.cu b/paddle/phi/kernels/gpu/linspace_kernel.cu index f16347cd3b6..66a3f833d27 100644 --- a/paddle/phi/kernels/gpu/linspace_kernel.cu +++ b/paddle/phi/kernels/gpu/linspace_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/linspace_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/linspace_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/log_loss_grad_kernel.cu b/paddle/phi/kernels/gpu/log_loss_grad_kernel.cu index bc14bd8f3c7..3bb256ad032 100644 --- a/paddle/phi/kernels/gpu/log_loss_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/log_loss_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/log_loss_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/log_loss_grad_kernel_impl.h" -#include "paddle/phi/kernels/log_loss_grad_kernel.h" PD_REGISTER_KERNEL( log_loss_grad, GPU, ALL_LAYOUT, phi::LogLossGradKernel, float) {} diff --git a/paddle/phi/kernels/gpu/log_loss_kernel.cu b/paddle/phi/kernels/gpu/log_loss_kernel.cu index e7982b0b6fd..0934520ea4a 100644 --- a/paddle/phi/kernels/gpu/log_loss_kernel.cu +++ b/paddle/phi/kernels/gpu/log_loss_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/log_loss_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/log_loss_kernel_impl.h" -#include "paddle/phi/kernels/log_loss_kernel.h" PD_REGISTER_KERNEL(log_loss, GPU, ALL_LAYOUT, phi::LogLossKernel, float) {} diff --git a/paddle/phi/kernels/gpu/log_softmax_grad_kernel.cu b/paddle/phi/kernels/gpu/log_softmax_grad_kernel.cu index 78d1261df6f..f7b28253655 100644 --- a/paddle/phi/kernels/gpu/log_softmax_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/log_softmax_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/log_softmax_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpudnn/softmax_gpudnn.h" -#include "paddle/phi/kernels/log_softmax_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/log_softmax_kernel.cu b/paddle/phi/kernels/gpu/log_softmax_kernel.cu index b73bd6d6a9d..d7e34c6c14e 100644 --- a/paddle/phi/kernels/gpu/log_softmax_kernel.cu +++ b/paddle/phi/kernels/gpu/log_softmax_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/log_softmax_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpudnn/softmax_gpudnn.h" -#include "paddle/phi/kernels/log_softmax_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/logcumsumexp_grad_kernel.cu b/paddle/phi/kernels/gpu/logcumsumexp_grad_kernel.cu index 43744210e32..9f4633a1e02 100644 --- a/paddle/phi/kernels/gpu/logcumsumexp_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/logcumsumexp_grad_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/logcumsumexp_grad_kernel.h" + #include #include "paddle/phi/backends/cpu/cpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/logcumsumexp_grad_impl.h" -#include "paddle/phi/kernels/logcumsumexp_grad_kernel.h" PD_REGISTER_KERNEL(logcumsumexp_grad, GPU, diff --git a/paddle/phi/kernels/gpu/logspace_kernel.cu b/paddle/phi/kernels/gpu/logspace_kernel.cu index 673e8f04320..95a196fe1b2 100644 --- a/paddle/phi/kernels/gpu/logspace_kernel.cu +++ b/paddle/phi/kernels/gpu/logspace_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/logspace_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/data_type_transform.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/logspace_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/logsumexp_grad_kernel.cu b/paddle/phi/kernels/gpu/logsumexp_grad_kernel.cu index a5555bf7b59..490b3e94045 100644 --- a/paddle/phi/kernels/gpu/logsumexp_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/logsumexp_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/logsumexp_grad_kernel.h" + #include "paddle/phi/backends/cpu/cpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/logsumexp_grad_kernel_impl.h" -#include "paddle/phi/kernels/logsumexp_grad_kernel.h" PD_REGISTER_KERNEL( logsumexp_grad, GPU, ALL_LAYOUT, phi::LogsumexpGradKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/logsumexp_kernel.cu b/paddle/phi/kernels/gpu/logsumexp_kernel.cu index c7c23fc307f..18249ff3baf 100644 --- a/paddle/phi/kernels/gpu/logsumexp_kernel.cu +++ b/paddle/phi/kernels/gpu/logsumexp_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/logsumexp_kernel.h" + #include "paddle/phi/backends/cpu/cpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/logsumexp_kernel_impl.h" -#include "paddle/phi/kernels/logsumexp_kernel.h" PD_REGISTER_KERNEL( logsumexp, GPU, ALL_LAYOUT, phi::LogsumexpKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/masked_select_grad_kernel.cu b/paddle/phi/kernels/gpu/masked_select_grad_kernel.cu index 171baab5513..05f85ac1e61 100644 --- a/paddle/phi/kernels/gpu/masked_select_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/masked_select_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/masked_select_grad_kernel.h" + #include #include #include @@ -19,7 +21,6 @@ #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/select_impl.cu.h" -#include "paddle/phi/kernels/masked_select_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/masked_select_kernel.cu b/paddle/phi/kernels/gpu/masked_select_kernel.cu index b443ae6b8fb..632d79929cc 100644 --- a/paddle/phi/kernels/gpu/masked_select_kernel.cu +++ b/paddle/phi/kernels/gpu/masked_select_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/masked_select_kernel.h" + #include #include #include @@ -20,7 +22,6 @@ #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/select_impl.cu.h" -#include "paddle/phi/kernels/masked_select_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/matmul_grad_kernel.cu b/paddle/phi/kernels/gpu/matmul_grad_kernel.cu index b6c13360cd4..2753937eb71 100644 --- a/paddle/phi/kernels/gpu/matmul_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/matmul_grad_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/matmul_grad_kernel.h" + #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/matmul_grad_kernel_impl.h" -#include "paddle/phi/kernels/matmul_grad_kernel.h" PD_REGISTER_KERNEL(matmul_grad, GPU, diff --git a/paddle/phi/kernels/gpu/matmul_kernel.cu b/paddle/phi/kernels/gpu/matmul_kernel.cu index 32d70ae0763..e5de7966c2e 100644 --- a/paddle/phi/kernels/gpu/matmul_kernel.cu +++ b/paddle/phi/kernels/gpu/matmul_kernel.cu @@ -12,11 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/matmul_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/matmul_kernel_impl.h" -#include "paddle/phi/kernels/matmul_kernel.h" PD_REGISTER_KERNEL(matmul, GPU, diff --git a/paddle/phi/kernels/gpu/matrix_power_grad_kernel.cu b/paddle/phi/kernels/gpu/matrix_power_grad_kernel.cu index 3739d7f2eed..25a9de8f8be 100644 --- a/paddle/phi/kernels/gpu/matrix_power_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/matrix_power_grad_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/matrix_power_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/matrix_power_grad_kernel_impl.h" -#include "paddle/phi/kernels/matrix_power_grad_kernel.h" PD_REGISTER_KERNEL(matrix_power_grad, GPU, diff --git a/paddle/phi/kernels/gpu/matrix_power_kernel.cu b/paddle/phi/kernels/gpu/matrix_power_kernel.cu index f474090f9db..d7ae7d8a3f7 100644 --- a/paddle/phi/kernels/gpu/matrix_power_kernel.cu +++ b/paddle/phi/kernels/gpu/matrix_power_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/matrix_power_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/matrix_power_kernel_impl.h" -#include "paddle/phi/kernels/matrix_power_kernel.h" PD_REGISTER_KERNEL( matrix_power, GPU, ALL_LAYOUT, phi::MatrixPowerKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/matrix_rank_kernel.cu b/paddle/phi/kernels/gpu/matrix_rank_kernel.cu index 8d69e6d896a..9727e2cc114 100644 --- a/paddle/phi/kernels/gpu/matrix_rank_kernel.cu +++ b/paddle/phi/kernels/gpu/matrix_rank_kernel.cu @@ -15,9 +15,10 @@ #ifndef PADDLE_WITH_HIP // HIP not support cusolver +#include "paddle/phi/kernels/matrix_rank_kernel.h" + #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/full_kernel.h" -#include "paddle/phi/kernels/matrix_rank_kernel.h" #include "paddle/phi/kernels/matrix_rank_tol_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/matrix_rank_tol_kernel.cu b/paddle/phi/kernels/gpu/matrix_rank_tol_kernel.cu index f3030d7f6cd..c3aa64fe185 100644 --- a/paddle/phi/kernels/gpu/matrix_rank_tol_kernel.cu +++ b/paddle/phi/kernels/gpu/matrix_rank_tol_kernel.cu @@ -15,6 +15,8 @@ #ifndef PADDLE_WITH_HIP // HIP not support cusolver +#include "paddle/phi/kernels/matrix_rank_tol_kernel.h" + #include #include @@ -27,7 +29,6 @@ #include "paddle/phi/kernels/funcs/broadcast_function.h" #include "paddle/phi/kernels/funcs/compare_functors.h" #include "paddle/phi/kernels/impl/matrix_rank_kernel_impl.h" -#include "paddle/phi/kernels/matrix_rank_tol_kernel.h" #include "paddle/phi/kernels/reduce_max_kernel.h" #include "paddle/phi/kernels/reduce_sum_kernel.h" diff --git a/paddle/phi/kernels/gpu/mean_all_kernel.cu b/paddle/phi/kernels/gpu/mean_all_kernel.cu index d87b738f4e7..da47bea57ed 100644 --- a/paddle/phi/kernels/gpu/mean_all_kernel.cu +++ b/paddle/phi/kernels/gpu/mean_all_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/mean_all_kernel.h" + #include "paddle/fluid/memory/memcpy.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/reduce_function.h" -#include "paddle/phi/kernels/mean_all_kernel.h" #include "paddle/phi/kernels/primitive/functor_primitives.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/mode_grad_kernel.cu b/paddle/phi/kernels/gpu/mode_grad_kernel.cu index 77235c1da39..43502621c2d 100644 --- a/paddle/phi/kernels/gpu/mode_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/mode_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/mode_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/mode.h" -#include "paddle/phi/kernels/mode_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/mode_kernel.cu b/paddle/phi/kernels/gpu/mode_kernel.cu index ee255f10ebc..629b9722cd6 100644 --- a/paddle/phi/kernels/gpu/mode_kernel.cu +++ b/paddle/phi/kernels/gpu/mode_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/mode_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/mode.h" -#include "paddle/phi/kernels/mode_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/momentum_kernel.cu b/paddle/phi/kernels/gpu/momentum_kernel.cu index 5e00e074fe8..5a4f5d33e61 100644 --- a/paddle/phi/kernels/gpu/momentum_kernel.cu +++ b/paddle/phi/kernels/gpu/momentum_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/momentum_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/momentum_kernel_impl.h" -#include "paddle/phi/kernels/momentum_kernel.h" PD_REGISTER_KERNEL(momentum, GPU, diff --git a/paddle/phi/kernels/gpu/multi_dot_grad_kernel.cu b/paddle/phi/kernels/gpu/multi_dot_grad_kernel.cu index 61aeff9f3c7..9c665ed1233 100644 --- a/paddle/phi/kernels/gpu/multi_dot_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/multi_dot_grad_kernel.cu @@ -12,11 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/multi_dot_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/multi_dot_kernel_impl.h" -#include "paddle/phi/kernels/multi_dot_grad_kernel.h" using float16 = phi::dtype::float16; diff --git a/paddle/phi/kernels/gpu/multi_dot_kernel.cu b/paddle/phi/kernels/gpu/multi_dot_kernel.cu index e890c03c345..be73e2d162a 100644 --- a/paddle/phi/kernels/gpu/multi_dot_kernel.cu +++ b/paddle/phi/kernels/gpu/multi_dot_kernel.cu @@ -12,11 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/multi_dot_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/multi_dot_kernel_impl.h" -#include "paddle/phi/kernels/multi_dot_kernel.h" using float16 = phi::dtype::float16; diff --git a/paddle/phi/kernels/gpu/multiplex_grad_kernel.cu b/paddle/phi/kernels/gpu/multiplex_grad_kernel.cu index 35258280f04..21576ab608d 100644 --- a/paddle/phi/kernels/gpu/multiplex_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/multiplex_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/multiplex_grad_kernel.h" + #include "paddle/phi/api/lib/utils/tensor_utils.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/eigen/common.h" -#include "paddle/phi/kernels/multiplex_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/multiplex_kernel.cu b/paddle/phi/kernels/gpu/multiplex_kernel.cu index e1fbd7abdc4..743448a4686 100644 --- a/paddle/phi/kernels/gpu/multiplex_kernel.cu +++ b/paddle/phi/kernels/gpu/multiplex_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/multiplex_kernel.h" + #include "paddle/phi/api/lib/utils/tensor_utils.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/multiplex_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/mv_grad_kernel.cu b/paddle/phi/kernels/gpu/mv_grad_kernel.cu index 58788492a74..5de66855f80 100644 --- a/paddle/phi/kernels/gpu/mv_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/mv_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/mv_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/blas/blas.h" -#include "paddle/phi/kernels/mv_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/mv_kernel.cu b/paddle/phi/kernels/gpu/mv_kernel.cu index 82122723258..fff548a9af3 100644 --- a/paddle/phi/kernels/gpu/mv_kernel.cu +++ b/paddle/phi/kernels/gpu/mv_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/mv_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/mv_kernel_impl.h" -#include "paddle/phi/kernels/mv_kernel.h" PD_REGISTER_KERNEL(mv, GPU, ALL_LAYOUT, phi::MvKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/nanmedian_grad_kernel.cu b/paddle/phi/kernels/gpu/nanmedian_grad_kernel.cu index d373e3bd9f3..b6333110485 100644 --- a/paddle/phi/kernels/gpu/nanmedian_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/nanmedian_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/nanmedian_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_launch_config.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" @@ -19,7 +21,6 @@ #include "paddle/phi/core/tensor_meta.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/impl/nanmedian_grad_kernel_impl.h" -#include "paddle/phi/kernels/nanmedian_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/nanmedian_kernel.cu b/paddle/phi/kernels/gpu/nanmedian_kernel.cu index 5ebf8637bfe..f61e413c988 100644 --- a/paddle/phi/kernels/gpu/nanmedian_kernel.cu +++ b/paddle/phi/kernels/gpu/nanmedian_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/nanmedian_kernel.h" + #include "paddle/fluid/memory/memcpy.h" #include "paddle/fluid/platform/device/gpu/gpu_launch_config.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" @@ -19,7 +21,6 @@ #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/full_kernel.h" #include "paddle/phi/kernels/impl/nanmedian_kernel_impl.h" -#include "paddle/phi/kernels/nanmedian_kernel.h" #include "paddle/phi/kernels/top_k_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/nll_loss_grad_kernel.cu b/paddle/phi/kernels/gpu/nll_loss_grad_kernel.cu index 7b356826f5d..7895983236f 100644 --- a/paddle/phi/kernels/gpu/nll_loss_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/nll_loss_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/nll_loss_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpu/nll_loss.h" -#include "paddle/phi/kernels/nll_loss_grad_kernel.h" namespace phi { template diff --git a/paddle/phi/kernels/gpu/nll_loss_kernel.cu b/paddle/phi/kernels/gpu/nll_loss_kernel.cu index bdb110fa929..1e80eb9bb46 100644 --- a/paddle/phi/kernels/gpu/nll_loss_kernel.cu +++ b/paddle/phi/kernels/gpu/nll_loss_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/nll_loss_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpu/nll_loss.h" -#include "paddle/phi/kernels/nll_loss_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/norm_grad_kernel.cu b/paddle/phi/kernels/gpu/norm_grad_kernel.cu index 388e7b889a1..bbbb6e9c018 100644 --- a/paddle/phi/kernels/gpu/norm_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/norm_grad_kernel.cu @@ -12,9 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include - #include "paddle/phi/kernels/norm_grad_kernel.h" + +#include #ifdef __NVCC__ #include "cub/cub.cuh" #endif diff --git a/paddle/phi/kernels/gpu/norm_kernel.cu b/paddle/phi/kernels/gpu/norm_kernel.cu index 2877069a226..bd9cffe7961 100644 --- a/paddle/phi/kernels/gpu/norm_kernel.cu +++ b/paddle/phi/kernels/gpu/norm_kernel.cu @@ -12,9 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include - #include "paddle/phi/kernels/norm_kernel.h" + +#include #ifdef __NVCC__ #include "cub/cub.cuh" #endif diff --git a/paddle/phi/kernels/gpu/one_hot_kernel.cu b/paddle/phi/kernels/gpu/one_hot_kernel.cu index adc87b049ee..2ae9e9333ec 100644 --- a/paddle/phi/kernels/gpu/one_hot_kernel.cu +++ b/paddle/phi/kernels/gpu/one_hot_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/one_hot_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_info.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/one_hot_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/p_norm_grad_kernel.cu b/paddle/phi/kernels/gpu/p_norm_grad_kernel.cu index 9305f30939f..fdfed25b3dd 100644 --- a/paddle/phi/kernels/gpu/p_norm_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/p_norm_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/p_norm_grad_kernel.h" + #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/reduce_grad_functions.h" -#include "paddle/phi/kernels/p_norm_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/p_norm_kernel.cu b/paddle/phi/kernels/gpu/p_norm_kernel.cu index 12038fa2243..80ef97d9cf8 100644 --- a/paddle/phi/kernels/gpu/p_norm_kernel.cu +++ b/paddle/phi/kernels/gpu/p_norm_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/p_norm_kernel.h" + #include "paddle/fluid/operators/elementwise/elementwise_op_impl.cu.h" #include "paddle/phi/common/amp_type_traits.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/reduce_function.h" #include "paddle/phi/kernels/gpu/reduce.h" -#include "paddle/phi/kernels/p_norm_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/pad3d_grad_kernel.cu b/paddle/phi/kernels/gpu/pad3d_grad_kernel.cu index 8832bf6a3a4..8f4af0a4508 100644 --- a/paddle/phi/kernels/gpu/pad3d_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/pad3d_grad_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pad3d_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_info.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/pad3d_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/pad3d_kernel.cu b/paddle/phi/kernels/gpu/pad3d_kernel.cu index eb8dfa52767..d1b1d706676 100644 --- a/paddle/phi/kernels/gpu/pad3d_kernel.cu +++ b/paddle/phi/kernels/gpu/pad3d_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pad3d_kernel.h" + #include #include "paddle/fluid/platform/device/gpu/gpu_info.h" @@ -19,7 +21,6 @@ #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/pad3d_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/pad_grad_kernel.cu b/paddle/phi/kernels/gpu/pad_grad_kernel.cu index c5e2e077e41..a25472d122b 100644 --- a/paddle/phi/kernels/gpu/pad_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/pad_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pad_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/pad_grad_kernel_impl.h" -#include "paddle/phi/kernels/pad_grad_kernel.h" PD_REGISTER_KERNEL(pad_grad, GPU, diff --git a/paddle/phi/kernels/gpu/pad_kernel.cu b/paddle/phi/kernels/gpu/pad_kernel.cu index 2b77a5f1aeb..cdf90513a39 100644 --- a/paddle/phi/kernels/gpu/pad_kernel.cu +++ b/paddle/phi/kernels/gpu/pad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pad_kernel.h" + #include "paddle/fluid/platform/complex.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/pad_kernel_impl.h" -#include "paddle/phi/kernels/pad_kernel.h" PD_REGISTER_KERNEL(pad, GPU, diff --git a/paddle/phi/kernels/gpu/pixel_shuffle_grad_kernel.cu b/paddle/phi/kernels/gpu/pixel_shuffle_grad_kernel.cu index 6634d863fc1..1414fb9df0b 100644 --- a/paddle/phi/kernels/gpu/pixel_shuffle_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/pixel_shuffle_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pixel_shuffle_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/pixel_shuffle_grad_kernel_impl.h" -#include "paddle/phi/kernels/pixel_shuffle_grad_kernel.h" PD_REGISTER_KERNEL(pixel_shuffle_grad, GPU, diff --git a/paddle/phi/kernels/gpu/pixel_shuffle_kernel.cu b/paddle/phi/kernels/gpu/pixel_shuffle_kernel.cu index 8ceb1b70011..e43d6f96123 100644 --- a/paddle/phi/kernels/gpu/pixel_shuffle_kernel.cu +++ b/paddle/phi/kernels/gpu/pixel_shuffle_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pixel_shuffle_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/pixel_shuffle_kernel_impl.h" -#include "paddle/phi/kernels/pixel_shuffle_kernel.h" PD_REGISTER_KERNEL( pixel_shuffle, GPU, ALL_LAYOUT, phi::PixelShuffleKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/pixel_unshuffle_grad_kernel.cu b/paddle/phi/kernels/gpu/pixel_unshuffle_grad_kernel.cu index f36c0e45174..d7d2cde4eba 100644 --- a/paddle/phi/kernels/gpu/pixel_unshuffle_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/pixel_unshuffle_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pixel_unshuffle_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/pixel_unshuffle_grad_kernel_impl.h" -#include "paddle/phi/kernels/pixel_unshuffle_grad_kernel.h" PD_REGISTER_KERNEL(pixel_unshuffle_grad, GPU, diff --git a/paddle/phi/kernels/gpu/pixel_unshuffle_kernel.cu b/paddle/phi/kernels/gpu/pixel_unshuffle_kernel.cu index 54d29ab7b13..fcc53cbee1e 100644 --- a/paddle/phi/kernels/gpu/pixel_unshuffle_kernel.cu +++ b/paddle/phi/kernels/gpu/pixel_unshuffle_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pixel_unshuffle_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/pixel_unshuffle_kernel_impl.h" -#include "paddle/phi/kernels/pixel_unshuffle_kernel.h" PD_REGISTER_KERNEL(pixel_unshuffle, GPU, diff --git a/paddle/phi/kernels/gpu/pool_grad_kernel.cu b/paddle/phi/kernels/gpu/pool_grad_kernel.cu index 832f9ad3118..9cdf94b2be8 100644 --- a/paddle/phi/kernels/gpu/pool_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/pool_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pool_grad_kernel.h" + #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/pool_grad_kernel_impl.h" -#include "paddle/phi/kernels/pool_grad_kernel.h" PD_REGISTER_KERNEL(pool2d_grad, GPU, diff --git a/paddle/phi/kernels/gpu/pool_kernel.cu b/paddle/phi/kernels/gpu/pool_kernel.cu index ac3718cfb80..81fce2060e4 100644 --- a/paddle/phi/kernels/gpu/pool_kernel.cu +++ b/paddle/phi/kernels/gpu/pool_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/pool_kernel.h" + #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/pool_kernel_impl.h" -#include "paddle/phi/kernels/pool_kernel.h" PD_REGISTER_KERNEL(pool2d, GPU, diff --git a/paddle/phi/kernels/gpu/prelu_grad_kernel.cu b/paddle/phi/kernels/gpu/prelu_grad_kernel.cu index 57d1838e904..c280873d8f7 100644 --- a/paddle/phi/kernels/gpu/prelu_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/prelu_grad_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/prelu_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/tensor_meta.h" #include "paddle/phi/kernels/empty_kernel.h" #include "paddle/phi/kernels/funcs/reduce_function.h" #include "paddle/phi/kernels/gpu/prelu_funcs.h" -#include "paddle/phi/kernels/prelu_grad_kernel.h" #include "paddle/phi/kernels/primitive/functor_primitives.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/prelu_kernel.cu b/paddle/phi/kernels/gpu/prelu_kernel.cu index ad87012485e..c4730768982 100644 --- a/paddle/phi/kernels/gpu/prelu_kernel.cu +++ b/paddle/phi/kernels/gpu/prelu_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/prelu_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpu/prelu_funcs.h" -#include "paddle/phi/kernels/prelu_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/psroi_pool_kernel.cu b/paddle/phi/kernels/gpu/psroi_pool_kernel.cu index d392ae7432f..e0b17a55933 100644 --- a/paddle/phi/kernels/gpu/psroi_pool_kernel.cu +++ b/paddle/phi/kernels/gpu/psroi_pool_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/psroi_pool_kernel.h" + #include #include @@ -19,7 +21,6 @@ #include "paddle/phi/common/place.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" -#include "paddle/phi/kernels/psroi_pool_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/put_along_axis_grad_kernel.cu b/paddle/phi/kernels/gpu/put_along_axis_grad_kernel.cu index 209dd07d950..f553da361f1 100644 --- a/paddle/phi/kernels/gpu/put_along_axis_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/put_along_axis_grad_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/put_along_axis_grad_kernel.h" + #include "paddle/fluid/framework/convert_utils.h" #include "paddle/fluid/operators/gather_scatter_kernel.h" #include "paddle/fluid/platform/place.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" -#include "paddle/phi/kernels/put_along_axis_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/put_along_axis_kernel.cu b/paddle/phi/kernels/gpu/put_along_axis_kernel.cu index b52f2ae0ce1..d363c0c2836 100644 --- a/paddle/phi/kernels/gpu/put_along_axis_kernel.cu +++ b/paddle/phi/kernels/gpu/put_along_axis_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/put_along_axis_kernel.h" + #include "paddle/fluid/framework/convert_utils.h" #include "paddle/fluid/operators/gather_scatter_kernel.h" #include "paddle/fluid/platform/place.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" -#include "paddle/phi/kernels/put_along_axis_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/randint_kernel.cu b/paddle/phi/kernels/gpu/randint_kernel.cu index 0882114e846..90eaea6a086 100644 --- a/paddle/phi/kernels/gpu/randint_kernel.cu +++ b/paddle/phi/kernels/gpu/randint_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/randint_kernel.h" + #include #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/distribution_helper.h" -#include "paddle/phi/kernels/randint_kernel.h" // See Note [ Why still include the fluid headers? ] #include "paddle/fluid/memory/memcpy.h" diff --git a/paddle/phi/kernels/gpu/reduce_max_grad_kernel.cu b/paddle/phi/kernels/gpu/reduce_max_grad_kernel.cu index 7ce58bf8b2b..b4ff277b502 100644 --- a/paddle/phi/kernels/gpu/reduce_max_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/reduce_max_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/reduce_max_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/reduce_max_grad_kernel_impl.h" -#include "paddle/phi/kernels/reduce_max_grad_kernel.h" PD_REGISTER_KERNEL(max_grad, GPU, diff --git a/paddle/phi/kernels/gpu/reduce_mean_grad_kernel.cu b/paddle/phi/kernels/gpu/reduce_mean_grad_kernel.cu index 57a86c63bfc..50564a339dd 100644 --- a/paddle/phi/kernels/gpu/reduce_mean_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/reduce_mean_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/reduce_mean_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/reduce_function.h" #include "paddle/phi/kernels/gpu/reduce_grad.h" -#include "paddle/phi/kernels/reduce_mean_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/reduce_min_grad_kernel.cu b/paddle/phi/kernels/gpu/reduce_min_grad_kernel.cu index 16914860491..ea1d377c459 100644 --- a/paddle/phi/kernels/gpu/reduce_min_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/reduce_min_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/reduce_min_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/reduce_min_grad_kernel_impl.h" -#include "paddle/phi/kernels/reduce_min_grad_kernel.h" PD_REGISTER_KERNEL(min_grad, GPU, diff --git a/paddle/phi/kernels/gpu/reduce_prod_grad_kernel.cu b/paddle/phi/kernels/gpu/reduce_prod_grad_kernel.cu index 25f5ea33fbf..08444cf95d6 100644 --- a/paddle/phi/kernels/gpu/reduce_prod_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/reduce_prod_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/reduce_prod_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/reduce_prod_grad_kernel_impl.h" -#include "paddle/phi/kernels/reduce_prod_grad_kernel.h" PD_REGISTER_KERNEL(prod_grad, GPU, diff --git a/paddle/phi/kernels/gpu/reduce_sum_grad_kernel.cu b/paddle/phi/kernels/gpu/reduce_sum_grad_kernel.cu index f5d75b621c0..8b111641cfa 100644 --- a/paddle/phi/kernels/gpu/reduce_sum_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/reduce_sum_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/reduce_sum_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/reduce_function.h" #include "paddle/phi/kernels/gpu/reduce_grad.h" -#include "paddle/phi/kernels/reduce_sum_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/rmsprop_kernel.cu b/paddle/phi/kernels/gpu/rmsprop_kernel.cu index c49910e88b5..071c09ea675 100644 --- a/paddle/phi/kernels/gpu/rmsprop_kernel.cu +++ b/paddle/phi/kernels/gpu/rmsprop_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/rmsprop_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/rmsprop_kernel_impl.h" -#include "paddle/phi/kernels/rmsprop_kernel.h" PD_REGISTER_KERNEL( rmsprop, GPU, ALL_LAYOUT, phi::RmspropDenseKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/roi_align_grad_kernel.cu b/paddle/phi/kernels/gpu/roi_align_grad_kernel.cu index cfb9033bd9c..d173030a9c9 100644 --- a/paddle/phi/kernels/gpu/roi_align_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/roi_align_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/roi_align_grad_kernel.h" + #include "paddle/fluid/memory/memory.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" @@ -20,7 +22,6 @@ #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/empty_kernel.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/roi_align_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/roi_align_kernel.cu b/paddle/phi/kernels/gpu/roi_align_kernel.cu index 0bf96a729fc..a1824cc8fe4 100644 --- a/paddle/phi/kernels/gpu/roi_align_kernel.cu +++ b/paddle/phi/kernels/gpu/roi_align_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/roi_align_kernel.h" + #include "paddle/fluid/memory/memory.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/common/place.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/roi_align_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/roi_pool_grad_kernel.cu b/paddle/phi/kernels/gpu/roi_pool_grad_kernel.cu index f66d6633b9e..8b74e4bf2c6 100644 --- a/paddle/phi/kernels/gpu/roi_pool_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/roi_pool_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/roi_pool_grad_kernel.h" + #include "paddle/fluid/memory/memory.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" @@ -19,7 +21,6 @@ #include "paddle/phi/common/place.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/roi_pool_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/roi_pool_kernel.cu b/paddle/phi/kernels/gpu/roi_pool_kernel.cu index 4d3576f0c2f..03c92e8727f 100644 --- a/paddle/phi/kernels/gpu/roi_pool_kernel.cu +++ b/paddle/phi/kernels/gpu/roi_pool_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/roi_pool_kernel.h" + #include "paddle/fluid/memory/memory.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/common/place.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/roi_pool_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/roll_grad_kernel.cu b/paddle/phi/kernels/gpu/roll_grad_kernel.cu index fc5d4ff5386..82e0fa72ab0 100644 --- a/paddle/phi/kernels/gpu/roll_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/roll_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/roll_grad_kernel.h" + #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpu/roll_kernel_impl.h" -#include "paddle/phi/kernels/roll_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/roll_kernel.cu b/paddle/phi/kernels/gpu/roll_kernel.cu index 8b137e1a5aa..5d3584e4f44 100644 --- a/paddle/phi/kernels/gpu/roll_kernel.cu +++ b/paddle/phi/kernels/gpu/roll_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/roll_kernel.h" + #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/utils/array.h" #include "paddle/phi/kernels/gpu/roll_kernel_impl.h" -#include "paddle/phi/kernels/roll_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/rrelu_grad_kernel.cu b/paddle/phi/kernels/gpu/rrelu_grad_kernel.cu index e2ebfc2ca02..fa9ef450307 100644 --- a/paddle/phi/kernels/gpu/rrelu_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/rrelu_grad_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/rrelu_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/tensor_meta.h" @@ -19,7 +21,6 @@ #include "paddle/phi/kernels/funcs/reduce_function.h" #include "paddle/phi/kernels/gpu/prelu_funcs.h" #include "paddle/phi/kernels/primitive/functor_primitives.h" -#include "paddle/phi/kernels/rrelu_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/rrelu_kernel.cu b/paddle/phi/kernels/gpu/rrelu_kernel.cu index 39582d5872a..e872cbf3cb6 100644 --- a/paddle/phi/kernels/gpu/rrelu_kernel.cu +++ b/paddle/phi/kernels/gpu/rrelu_kernel.cu @@ -12,11 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/rrelu_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/distribution_helper.h" #include "paddle/phi/kernels/funcs/for_range.h" -#include "paddle/phi/kernels/rrelu_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/scale_kernel.cu b/paddle/phi/kernels/gpu/scale_kernel.cu index 52b28bf37f0..6f96a697b2f 100644 --- a/paddle/phi/kernels/gpu/scale_kernel.cu +++ b/paddle/phi/kernels/gpu/scale_kernel.cu @@ -12,11 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/scale_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" -#include "paddle/phi/kernels/scale_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/scatter_grad_kernel.cu b/paddle/phi/kernels/gpu/scatter_grad_kernel.cu index 75506e2a0a1..7f93fd0a905 100644 --- a/paddle/phi/kernels/gpu/scatter_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/scatter_grad_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/scatter_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/gather.cu.h" #include "paddle/phi/kernels/funcs/scatter.cu.h" -#include "paddle/phi/kernels/scatter_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/scatter_kernel.cu b/paddle/phi/kernels/gpu/scatter_kernel.cu index 811eae1bc02..af8919bec41 100644 --- a/paddle/phi/kernels/gpu/scatter_kernel.cu +++ b/paddle/phi/kernels/gpu/scatter_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/scatter_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/scatter.cu.h" -#include "paddle/phi/kernels/scatter_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/scatter_nd_add_grad_kernel.cu b/paddle/phi/kernels/gpu/scatter_nd_add_grad_kernel.cu index 71924befe8c..66b373f3b28 100644 --- a/paddle/phi/kernels/gpu/scatter_nd_add_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/scatter_nd_add_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/scatter_nd_add_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/gather.cu.h" -#include "paddle/phi/kernels/scatter_nd_add_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/scatter_nd_add_kernel.cu b/paddle/phi/kernels/gpu/scatter_nd_add_kernel.cu index 2ae8911fde5..a7b8bebd38c 100644 --- a/paddle/phi/kernels/gpu/scatter_nd_add_kernel.cu +++ b/paddle/phi/kernels/gpu/scatter_nd_add_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/scatter_nd_add_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/scatter.cu.h" -#include "paddle/phi/kernels/scatter_nd_add_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/searchsorted_kernel.cu b/paddle/phi/kernels/gpu/searchsorted_kernel.cu index 5976c14d9a9..4a2ce2241c2 100644 --- a/paddle/phi/kernels/gpu/searchsorted_kernel.cu +++ b/paddle/phi/kernels/gpu/searchsorted_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/searchsorted_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/searchsorted_kernel_impl.h" -#include "paddle/phi/kernels/searchsorted_kernel.h" PD_REGISTER_KERNEL(searchsorted, GPU, diff --git a/paddle/phi/kernels/gpu/segment_pool_grad_kernel.cu b/paddle/phi/kernels/gpu/segment_pool_grad_kernel.cu index 5f636ea7f9d..3cfbcc83cb1 100644 --- a/paddle/phi/kernels/gpu/segment_pool_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/segment_pool_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/segment_pool_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/segment_pool_grad_kernel_impl.h" -#include "paddle/phi/kernels/segment_pool_grad_kernel.h" PD_REGISTER_KERNEL(segment_pool_grad, GPU, diff --git a/paddle/phi/kernels/gpu/segment_pool_kernel.cu b/paddle/phi/kernels/gpu/segment_pool_kernel.cu index 4f24cf518d6..55ab822f5f5 100644 --- a/paddle/phi/kernels/gpu/segment_pool_kernel.cu +++ b/paddle/phi/kernels/gpu/segment_pool_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/segment_pool_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/segment_pool_kernel_impl.h" -#include "paddle/phi/kernels/segment_pool_kernel.h" PD_REGISTER_KERNEL(segment_pool, GPU, diff --git a/paddle/phi/kernels/gpu/selu_grad_kernel.cu b/paddle/phi/kernels/gpu/selu_grad_kernel.cu index c6dffc33ae6..0ed299413c1 100644 --- a/paddle/phi/kernels/gpu/selu_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/selu_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/selu_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/selu_grad_kernel_impl.h" -#include "paddle/phi/kernels/selu_grad_kernel.h" PD_REGISTER_KERNEL( selu_grad, GPU, ALL_LAYOUT, phi::SeluGradKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/selu_kernel.cu b/paddle/phi/kernels/gpu/selu_kernel.cu index 57be1087b44..99303d8c18a 100644 --- a/paddle/phi/kernels/gpu/selu_kernel.cu +++ b/paddle/phi/kernels/gpu/selu_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/selu_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/selu_kernel_impl.h" -#include "paddle/phi/kernels/selu_kernel.h" PD_REGISTER_KERNEL(selu, GPU, ALL_LAYOUT, phi::SeluKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/set_value_grad_kernel.cu b/paddle/phi/kernels/gpu/set_value_grad_kernel.cu index aafb374af63..7eed96699e7 100644 --- a/paddle/phi/kernels/gpu/set_value_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/set_value_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/set_value_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/set_value_grad_kernel_impl.h" -#include "paddle/phi/kernels/set_value_grad_kernel.h" PD_REGISTER_KERNEL(set_value_grad, GPU, diff --git a/paddle/phi/kernels/gpu/set_value_kernel.cu b/paddle/phi/kernels/gpu/set_value_kernel.cu index b744cfc768e..f788da010b6 100644 --- a/paddle/phi/kernels/gpu/set_value_kernel.cu +++ b/paddle/phi/kernels/gpu/set_value_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/set_value_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/set_value_kernel_impl.h" -#include "paddle/phi/kernels/set_value_kernel.h" PD_REGISTER_KERNEL(set_value, GPU, diff --git a/paddle/phi/kernels/gpu/sgd_kernel.cu b/paddle/phi/kernels/gpu/sgd_kernel.cu index 6d27843f138..b2b73b2812c 100644 --- a/paddle/phi/kernels/gpu/sgd_kernel.cu +++ b/paddle/phi/kernels/gpu/sgd_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/sgd_kernel.h" + #include "paddle/fluid/framework/mixed_vector.h" #include "paddle/fluid/operators/amp/fp16_type_traits.h" #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_helper.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/sgd_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/shard_index_kernel.cu b/paddle/phi/kernels/gpu/shard_index_kernel.cu index b20c229a89f..d2497f56a0c 100644 --- a/paddle/phi/kernels/gpu/shard_index_kernel.cu +++ b/paddle/phi/kernels/gpu/shard_index_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/shard_index_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/shard_index_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits_grad_kernel.cu b/paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits_grad_kernel.cu index 8425f71cc26..f61cd2c3967 100644 --- a/paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits.h" #include "paddle/phi/kernels/sigmoid_cross_entropy_with_logits_grad_kernel.h" +#include "paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits.h" + namespace phi { template diff --git a/paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits_kernel.cu b/paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits_kernel.cu index 245ac95eeac..b0e9efe5bba 100644 --- a/paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits_kernel.cu +++ b/paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits.h" #include "paddle/phi/kernels/sigmoid_cross_entropy_with_logits_kernel.h" +#include "paddle/phi/kernels/gpu/sigmoid_cross_entropy_with_logits.h" + namespace phi { template diff --git a/paddle/phi/kernels/gpu/size_kernel.cu b/paddle/phi/kernels/gpu/size_kernel.cu index 3ca1a1d6b76..fb6acd5599a 100644 --- a/paddle/phi/kernels/gpu/size_kernel.cu +++ b/paddle/phi/kernels/gpu/size_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/size_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/size_kernel_impl.h" -#include "paddle/phi/kernels/size_kernel.h" PD_REGISTER_KERNEL(size, GPU, diff --git a/paddle/phi/kernels/gpu/softmax_grad_kernel.cu b/paddle/phi/kernels/gpu/softmax_grad_kernel.cu index fe213e923a9..04052e0dfc3 100644 --- a/paddle/phi/kernels/gpu/softmax_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/softmax_grad_kernel.cu @@ -12,12 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/softmax_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/softmax_grad_kernel_impl.h" -#include "paddle/phi/kernels/softmax_grad_kernel.h" PD_REGISTER_KERNEL(softmax_grad, GPU, diff --git a/paddle/phi/kernels/gpu/softmax_kernel.cu b/paddle/phi/kernels/gpu/softmax_kernel.cu index 9415e6b2bad..4a02f438c7e 100644 --- a/paddle/phi/kernels/gpu/softmax_kernel.cu +++ b/paddle/phi/kernels/gpu/softmax_kernel.cu @@ -12,12 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/softmax_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/softmax_kernel_impl.h" -#include "paddle/phi/kernels/softmax_kernel.h" PD_REGISTER_KERNEL(softmax, GPU, diff --git a/paddle/phi/kernels/gpu/split_kernel.cu b/paddle/phi/kernels/gpu/split_kernel.cu index 9a854378fb5..5f2741e53dd 100644 --- a/paddle/phi/kernels/gpu/split_kernel.cu +++ b/paddle/phi/kernels/gpu/split_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/split_kernel.h" + #include "paddle/fluid/operators/strided_memcpy.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/concat_and_split_functor.h" -#include "paddle/phi/kernels/split_kernel.h" namespace phi { template diff --git a/paddle/phi/kernels/gpu/squeeze_grad_kernel.cu b/paddle/phi/kernels/gpu/squeeze_grad_kernel.cu index 8b2d00c5170..c5a243f45bd 100644 --- a/paddle/phi/kernels/gpu/squeeze_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/squeeze_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/squeeze_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/squeeze_grad_kernel_impl.h" -#include "paddle/phi/kernels/squeeze_grad_kernel.h" PD_REGISTER_KERNEL(squeeze_grad, GPU, diff --git a/paddle/phi/kernels/gpu/squeeze_kernel.cu b/paddle/phi/kernels/gpu/squeeze_kernel.cu index 6088e384c2e..ae15e210a02 100644 --- a/paddle/phi/kernels/gpu/squeeze_kernel.cu +++ b/paddle/phi/kernels/gpu/squeeze_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/squeeze_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/squeeze_kernel_impl.h" -#include "paddle/phi/kernels/squeeze_kernel.h" PD_REGISTER_KERNEL(squeeze, GPU, diff --git a/paddle/phi/kernels/gpu/stack_grad_kernel.cu b/paddle/phi/kernels/gpu/stack_grad_kernel.cu index a24b48e0cf2..97923eedcfc 100644 --- a/paddle/phi/kernels/gpu/stack_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/stack_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/stack_grad_kernel.h" + #include "paddle/fluid/memory/memory.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/stack_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/stack_kernel.cu b/paddle/phi/kernels/gpu/stack_kernel.cu index 54bee95356e..22e8a3e4870 100644 --- a/paddle/phi/kernels/gpu/stack_kernel.cu +++ b/paddle/phi/kernels/gpu/stack_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/stack_kernel.h" + #include "paddle/fluid/memory/memory.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/stack_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/strided_slice_grad_kernel.cu b/paddle/phi/kernels/gpu/strided_slice_grad_kernel.cu index cae05b67fef..90d9f1d9865 100644 --- a/paddle/phi/kernels/gpu/strided_slice_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/strided_slice_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/strided_slice_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/strided_slice_grad_kernel_impl.h" -#include "paddle/phi/kernels/strided_slice_grad_kernel.h" PD_REGISTER_KERNEL(strided_slice_raw_grad, GPU, diff --git a/paddle/phi/kernels/gpu/strided_slice_kernel.cu b/paddle/phi/kernels/gpu/strided_slice_kernel.cu index fa7f5532f55..716150ff47d 100644 --- a/paddle/phi/kernels/gpu/strided_slice_kernel.cu +++ b/paddle/phi/kernels/gpu/strided_slice_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/strided_slice_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/complex.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/strided_slice_kernel_impl.h" -#include "paddle/phi/kernels/strided_slice_kernel.h" PD_REGISTER_KERNEL(strided_slice_raw, GPU, diff --git a/paddle/phi/kernels/gpu/take_along_axis_grad_kernel.cu b/paddle/phi/kernels/gpu/take_along_axis_grad_kernel.cu index 61363ce8c49..e09cfd370a4 100644 --- a/paddle/phi/kernels/gpu/take_along_axis_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/take_along_axis_grad_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/take_along_axis_grad_kernel.h" + #include "paddle/fluid/framework/convert_utils.h" #include "paddle/fluid/operators/gather_scatter_kernel.h" #include "paddle/fluid/platform/place.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/take_along_axis_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/take_along_axis_kernel.cu b/paddle/phi/kernels/gpu/take_along_axis_kernel.cu index cb567ef9915..9665a917d9d 100644 --- a/paddle/phi/kernels/gpu/take_along_axis_kernel.cu +++ b/paddle/phi/kernels/gpu/take_along_axis_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/take_along_axis_kernel.h" + #include "paddle/fluid/framework/convert_utils.h" #include "paddle/fluid/operators/gather_scatter_kernel.h" #include "paddle/fluid/platform/place.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/take_along_axis_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/temporal_shift_grad_kernel.cu b/paddle/phi/kernels/gpu/temporal_shift_grad_kernel.cu index 065b1726dce..2bbfab9876b 100644 --- a/paddle/phi/kernels/gpu/temporal_shift_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/temporal_shift_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/temporal_shift_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/layout.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/temporal_shift_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/temporal_shift_kernel.cu b/paddle/phi/kernels/gpu/temporal_shift_kernel.cu index 34d80a1bc80..990d882c2a5 100644 --- a/paddle/phi/kernels/gpu/temporal_shift_kernel.cu +++ b/paddle/phi/kernels/gpu/temporal_shift_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/temporal_shift_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/layout.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/temporal_shift_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/tile_grad_kernel.cu b/paddle/phi/kernels/gpu/tile_grad_kernel.cu index 32e78bbdb7c..c092609e623 100644 --- a/paddle/phi/kernels/gpu/tile_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/tile_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/tile_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/tile_grad_kernel_impl.h" -#include "paddle/phi/kernels/tile_grad_kernel.h" PD_REGISTER_KERNEL(tile_grad, GPU, diff --git a/paddle/phi/kernels/gpu/tile_kernel.cu b/paddle/phi/kernels/gpu/tile_kernel.cu index 40ee38f73b3..990877a8445 100644 --- a/paddle/phi/kernels/gpu/tile_kernel.cu +++ b/paddle/phi/kernels/gpu/tile_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/tile_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/tile_kernel_impl.h" -#include "paddle/phi/kernels/tile_kernel.h" PD_REGISTER_KERNEL(tile, GPU, diff --git a/paddle/phi/kernels/gpu/top_k_grad_kernel.cu b/paddle/phi/kernels/gpu/top_k_grad_kernel.cu index 1db05ed18b0..8a8ea7ff122 100644 --- a/paddle/phi/kernels/gpu/top_k_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/top_k_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/top_k_grad_kernel.h" + #include "paddle/fluid/operators/top_k_function_cuda.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/top_k_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/top_k_kernel.cu b/paddle/phi/kernels/gpu/top_k_kernel.cu index b160ad1d1c5..e5038e0f3be 100644 --- a/paddle/phi/kernels/gpu/top_k_kernel.cu +++ b/paddle/phi/kernels/gpu/top_k_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/top_k_kernel.h" + #include "paddle/fluid/operators/top_k_function_cuda.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/gather.cu.h" #include "paddle/phi/kernels/funcs/math_function.h" -#include "paddle/phi/kernels/top_k_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/trace_grad_kernel.cu b/paddle/phi/kernels/gpu/trace_grad_kernel.cu index 5b2575f48b8..6692c1e19b0 100644 --- a/paddle/phi/kernels/gpu/trace_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/trace_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/trace_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/trace_grad_kernel_impl.h" -#include "paddle/phi/kernels/trace_grad_kernel.h" PD_REGISTER_KERNEL(trace_grad, GPU, diff --git a/paddle/phi/kernels/gpu/trace_kernel.cu b/paddle/phi/kernels/gpu/trace_kernel.cu index 7f22c14c6b6..4a749c5b334 100644 --- a/paddle/phi/kernels/gpu/trace_kernel.cu +++ b/paddle/phi/kernels/gpu/trace_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/trace_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/diagonal.h" #include "paddle/phi/kernels/funcs/reduce_function.h" -#include "paddle/phi/kernels/trace_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/transpose_grad_kernel.cu b/paddle/phi/kernels/gpu/transpose_grad_kernel.cu index 1439b2aa2ab..e8ad456084a 100644 --- a/paddle/phi/kernels/gpu/transpose_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/transpose_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/transpose_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/transpose_grad_kernel_impl.h" -#include "paddle/phi/kernels/transpose_grad_kernel.h" PD_REGISTER_KERNEL(transpose_grad, GPU, diff --git a/paddle/phi/kernels/gpu/transpose_kernel.cu b/paddle/phi/kernels/gpu/transpose_kernel.cu index d7daaff2d41..62e29950e2d 100644 --- a/paddle/phi/kernels/gpu/transpose_kernel.cu +++ b/paddle/phi/kernels/gpu/transpose_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/transpose_kernel.h" + #include #include "paddle/fluid/framework/gpu_utils.h" @@ -22,7 +24,6 @@ #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/transpose_grad_kernel_impl.h" -#include "paddle/phi/kernels/transpose_kernel.h" namespace phi { template diff --git a/paddle/phi/kernels/gpu/triangular_solve_kernel.cu b/paddle/phi/kernels/gpu/triangular_solve_kernel.cu index 22629582bed..a48afeb2c79 100644 --- a/paddle/phi/kernels/gpu/triangular_solve_kernel.cu +++ b/paddle/phi/kernels/gpu/triangular_solve_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/triangular_solve_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/ddim.h" #include "paddle/phi/core/kernel_registry.h" @@ -19,7 +21,6 @@ #include "paddle/phi/kernels/expand_kernel.h" #include "paddle/phi/kernels/funcs/blas/blas.h" #include "paddle/phi/kernels/funcs/common_shape.h" -#include "paddle/phi/kernels/triangular_solve_kernel.h" // See Note [ Why still include the fluid headers? ] #include "paddle/fluid/memory/allocation/allocator.h" diff --git a/paddle/phi/kernels/gpu/tril_indices_kernel.cu b/paddle/phi/kernels/gpu/tril_indices_kernel.cu index 7068ab1775f..be83f284511 100644 --- a/paddle/phi/kernels/gpu/tril_indices_kernel.cu +++ b/paddle/phi/kernels/gpu/tril_indices_kernel.cu @@ -12,12 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/tril_indices_kernel.h" + #include #include #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/tril_indices_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/trunc_grad_kernel.cu b/paddle/phi/kernels/gpu/trunc_grad_kernel.cu index 92d95e7259b..92797833918 100644 --- a/paddle/phi/kernels/gpu/trunc_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/trunc_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/trunc_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_info.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/trunc_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/trunc_kernel.cu b/paddle/phi/kernels/gpu/trunc_kernel.cu index cc44602b657..1f374714a6f 100644 --- a/paddle/phi/kernels/gpu/trunc_kernel.cu +++ b/paddle/phi/kernels/gpu/trunc_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/trunc_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_primitives.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_info.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/trunc_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/truncated_gaussian_random_kernel.cu b/paddle/phi/kernels/gpu/truncated_gaussian_random_kernel.cu index 7c59b39890f..698dcc20ad3 100644 --- a/paddle/phi/kernels/gpu/truncated_gaussian_random_kernel.cu +++ b/paddle/phi/kernels/gpu/truncated_gaussian_random_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/truncated_gaussian_random_kernel.h" + #include #include #include @@ -22,7 +24,6 @@ #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/truncated_gaussian_random_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/unbind_kernel.cu b/paddle/phi/kernels/gpu/unbind_kernel.cu index 1efc3a1094d..8a7aa8f6033 100644 --- a/paddle/phi/kernels/gpu/unbind_kernel.cu +++ b/paddle/phi/kernels/gpu/unbind_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/unbind_kernel.h" + #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/unbind_kernel_impl.h" -#include "paddle/phi/kernels/unbind_kernel.h" PD_REGISTER_KERNEL(unbind, GPU, diff --git a/paddle/phi/kernels/gpu/unfold_grad_kernel.cu b/paddle/phi/kernels/gpu/unfold_grad_kernel.cu index 3740f59603b..9cd874ec6a6 100644 --- a/paddle/phi/kernels/gpu/unfold_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/unfold_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/unfold_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/unfold_grad_kernel_impl.h" -#include "paddle/phi/kernels/unfold_grad_kernel.h" PD_REGISTER_KERNEL( unfold_grad, GPU, ALL_LAYOUT, phi::UnfoldGradKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/unfold_kernel.cu b/paddle/phi/kernels/gpu/unfold_kernel.cu index 4f72a6f794e..db0d259791b 100644 --- a/paddle/phi/kernels/gpu/unfold_kernel.cu +++ b/paddle/phi/kernels/gpu/unfold_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/unfold_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/unfold_kernel_impl.h" -#include "paddle/phi/kernels/unfold_kernel.h" PD_REGISTER_KERNEL(unfold, GPU, ALL_LAYOUT, phi::UnfoldKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/uniform_random_kernel.cu b/paddle/phi/kernels/gpu/uniform_random_kernel.cu index b149110bddc..ee486976a45 100644 --- a/paddle/phi/kernels/gpu/uniform_random_kernel.cu +++ b/paddle/phi/kernels/gpu/uniform_random_kernel.cu @@ -12,13 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/uniform_random_kernel.h" + #include #include "gflags/gflags.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/distribution_helper.h" #include "paddle/phi/kernels/funcs/index_impl.cu.h" -#include "paddle/phi/kernels/uniform_random_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/unique_kernel.cu b/paddle/phi/kernels/gpu/unique_kernel.cu index fe9304d0e15..2f24a44c232 100644 --- a/paddle/phi/kernels/gpu/unique_kernel.cu +++ b/paddle/phi/kernels/gpu/unique_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/unique_kernel.h" + #include #include #include @@ -28,7 +30,6 @@ #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/unique_functor.h" -#include "paddle/phi/kernels/unique_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/unsqueeze_grad_kernel.cu b/paddle/phi/kernels/gpu/unsqueeze_grad_kernel.cu index 6bd3f307794..6c3a2066f0f 100644 --- a/paddle/phi/kernels/gpu/unsqueeze_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/unsqueeze_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/unsqueeze_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/unsqueeze_grad_kernel_impl.h" -#include "paddle/phi/kernels/unsqueeze_grad_kernel.h" PD_REGISTER_KERNEL(unsqueeze_grad, GPU, diff --git a/paddle/phi/kernels/gpu/unsqueeze_kernel.cu b/paddle/phi/kernels/gpu/unsqueeze_kernel.cu index 78f1fafda9b..86b44622546 100644 --- a/paddle/phi/kernels/gpu/unsqueeze_kernel.cu +++ b/paddle/phi/kernels/gpu/unsqueeze_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/unsqueeze_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/unsqueeze_kernel_impl.h" -#include "paddle/phi/kernels/unsqueeze_kernel.h" PD_REGISTER_KERNEL(unsqueeze, GPU, diff --git a/paddle/phi/kernels/gpu/unstack_grad_kernel.cu b/paddle/phi/kernels/gpu/unstack_grad_kernel.cu index 6245e8258f8..b7c349de0df 100644 --- a/paddle/phi/kernels/gpu/unstack_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/unstack_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/unstack_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/unstack_grad_kernel_impl.h" -#include "paddle/phi/kernels/unstack_grad_kernel.h" PD_REGISTER_KERNEL(unstack_grad, GPU, diff --git a/paddle/phi/kernels/gpu/unstack_kernel.cu b/paddle/phi/kernels/gpu/unstack_kernel.cu index dde6d926b7c..f147f4c0f0e 100644 --- a/paddle/phi/kernels/gpu/unstack_kernel.cu +++ b/paddle/phi/kernels/gpu/unstack_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/unstack_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/unstack_kernel_impl.h" -#include "paddle/phi/kernels/unstack_kernel.h" PD_REGISTER_KERNEL(unstack, GPU, diff --git a/paddle/phi/kernels/gpu/warpctc_grad_kernel.cu b/paddle/phi/kernels/gpu/warpctc_grad_kernel.cu index 97a75bf6849..612b03555c6 100644 --- a/paddle/phi/kernels/gpu/warpctc_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/warpctc_grad_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/warpctc_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/warpctc_grad_kernel_impl.h" -#include "paddle/phi/kernels/warpctc_grad_kernel.h" PD_REGISTER_KERNEL( warpctc_grad, GPU, ALL_LAYOUT, phi::WarpctcGradKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/warpctc_kernel.cu b/paddle/phi/kernels/gpu/warpctc_kernel.cu index 8d93f24b659..3379322f3df 100644 --- a/paddle/phi/kernels/gpu/warpctc_kernel.cu +++ b/paddle/phi/kernels/gpu/warpctc_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/warpctc_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/impl/warpctc_kernel_impl.h" -#include "paddle/phi/kernels/warpctc_kernel.h" PD_REGISTER_KERNEL( warpctc, GPU, ALL_LAYOUT, phi::WarpctcKernel, float, double) {} diff --git a/paddle/phi/kernels/gpu/where_grad_kernel.cu b/paddle/phi/kernels/gpu/where_grad_kernel.cu index 2be698c3455..709dddcb82c 100644 --- a/paddle/phi/kernels/gpu/where_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/where_grad_kernel.cu @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/where_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/where_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/where_kernel.cu b/paddle/phi/kernels/gpu/where_kernel.cu index c623b6ec8b7..441be02b99e 100644 --- a/paddle/phi/kernels/gpu/where_kernel.cu +++ b/paddle/phi/kernels/gpu/where_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/where_kernel.h" + #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/broadcast_function.h" #include "paddle/phi/kernels/funcs/elementwise_functor.h" -#include "paddle/phi/kernels/where_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/yolo_box_kernel.cu b/paddle/phi/kernels/gpu/yolo_box_kernel.cu index 2719dcd9e54..446a21e6a80 100644 --- a/paddle/phi/kernels/gpu/yolo_box_kernel.cu +++ b/paddle/phi/kernels/gpu/yolo_box_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/yolo_box_kernel.h" + #include "paddle/fluid/memory/malloc.h" #include "paddle/fluid/memory/memcpy.h" #include "paddle/phi/backends/gpu/gpu_context.h" @@ -19,7 +21,6 @@ #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/yolo_box_util.h" -#include "paddle/phi/kernels/yolo_box_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpudnn/conv_grad_grad_kernel.cu b/paddle/phi/kernels/gpudnn/conv_grad_grad_kernel.cu index 13d85ed1d36..ef70907b59a 100644 --- a/paddle/phi/kernels/gpudnn/conv_grad_grad_kernel.cu +++ b/paddle/phi/kernels/gpudnn/conv_grad_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/conv_grad_grad_kernel.h" + #include "paddle/fluid/framework/eigen.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_grad_grad_kernel.h" #ifdef PADDLE_WITH_HIP #include "paddle/fluid/operators/conv_miopen_helper.h" #else diff --git a/paddle/phi/kernels/gpudnn/conv_grad_kernel.cu b/paddle/phi/kernels/gpudnn/conv_grad_kernel.cu index 80100ba8ff4..4e9c37879c0 100644 --- a/paddle/phi/kernels/gpudnn/conv_grad_kernel.cu +++ b/paddle/phi/kernels/gpudnn/conv_grad_kernel.cu @@ -12,11 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/conv_grad_kernel.h" + #include "paddle/fluid/framework/eigen.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_grad_kernel.h" #ifdef PADDLE_WITH_HIP #include "paddle/fluid/operators/conv_miopen_helper.h" #else diff --git a/paddle/phi/kernels/gpudnn/conv_kernel.cu b/paddle/phi/kernels/gpudnn/conv_kernel.cu index c746c4db9dc..bd95a32bc72 100644 --- a/paddle/phi/kernels/gpudnn/conv_kernel.cu +++ b/paddle/phi/kernels/gpudnn/conv_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/conv_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_kernel.h" #ifdef PADDLE_WITH_HIP #include "paddle/fluid/operators/conv_miopen_helper.h" diff --git a/paddle/phi/kernels/gpudnn/conv_transpose_grad_kernel.cu b/paddle/phi/kernels/gpudnn/conv_transpose_grad_kernel.cu index 6d5a0dd5e0b..0ce16f66bec 100644 --- a/paddle/phi/kernels/gpudnn/conv_transpose_grad_kernel.cu +++ b/paddle/phi/kernels/gpudnn/conv_transpose_grad_kernel.cu @@ -12,13 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/conv_transpose_grad_kernel.h" + #include #include "paddle/phi/backends/dynload/cudnn.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/ddim.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_transpose_grad_kernel.h" #include "paddle/phi/kernels/cpu/conv_util.h" #include "paddle/phi/kernels/funcs/batch_norm_utils.h" #include "paddle/phi/kernels/funcs/math_function.h" diff --git a/paddle/phi/kernels/gpudnn/conv_transpose_kernel.cu b/paddle/phi/kernels/gpudnn/conv_transpose_kernel.cu index 67a2f381d76..58ead4c3287 100644 --- a/paddle/phi/kernels/gpudnn/conv_transpose_kernel.cu +++ b/paddle/phi/kernels/gpudnn/conv_transpose_kernel.cu @@ -12,13 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/conv_transpose_kernel.h" + #include #include "paddle/phi/backends/dynload/cudnn.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/ddim.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/conv_transpose_kernel.h" #include "paddle/phi/kernels/cpu/conv_util.h" #include "paddle/phi/kernels/funcs/padding.h" #include "paddle/phi/kernels/funcs/slice.h" diff --git a/paddle/phi/kernels/gpudnn/pool_grad_kernel.cu b/paddle/phi/kernels/gpudnn/pool_grad_kernel.cu index 919a2a2193a..4a7d417f2b6 100644 --- a/paddle/phi/kernels/gpudnn/pool_grad_kernel.cu +++ b/paddle/phi/kernels/gpudnn/pool_grad_kernel.cu @@ -12,13 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/pool_grad_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_dnn.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/pooling.h" #include "paddle/phi/kernels/gpudnn/pool_gpudnn.h" -#include "paddle/phi/kernels/pool_grad_kernel.h" #include "paddle/phi/kernels/pool_kernel.h" #ifdef PADDLE_WITH_HIP diff --git a/paddle/phi/kernels/gpudnn/pool_kernel.cu b/paddle/phi/kernels/gpudnn/pool_kernel.cu index 53e3d7c9426..9981ac5b53e 100644 --- a/paddle/phi/kernels/gpudnn/pool_kernel.cu +++ b/paddle/phi/kernels/gpudnn/pool_kernel.cu @@ -12,12 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/pool_kernel.h" + #include "paddle/fluid/platform/device/gpu/gpu_dnn.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/pooling.h" #include "paddle/phi/kernels/gpudnn/pool_gpudnn.h" -#include "paddle/phi/kernels/pool_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpudnn/softmax_grad_kernel.cu b/paddle/phi/kernels/gpudnn/softmax_grad_kernel.cu index 343cba311ae..45ab645d373 100644 --- a/paddle/phi/kernels/gpudnn/softmax_grad_kernel.cu +++ b/paddle/phi/kernels/gpudnn/softmax_grad_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/softmax_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpudnn/softmax_gpudnn.h" -#include "paddle/phi/kernels/softmax_grad_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/gpudnn/softmax_kernel.cu b/paddle/phi/kernels/gpudnn/softmax_kernel.cu index b71f39722c9..37175c427ff 100644 --- a/paddle/phi/kernels/gpudnn/softmax_kernel.cu +++ b/paddle/phi/kernels/gpudnn/softmax_kernel.cu @@ -12,10 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/softmax_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/gpudnn/softmax_gpudnn.h" -#include "paddle/phi/kernels/softmax_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/selected_rows/gpu/adam_kernel.cu b/paddle/phi/kernels/selected_rows/gpu/adam_kernel.cu index ec9fed6e3d9..842e05fe58e 100644 --- a/paddle/phi/kernels/selected_rows/gpu/adam_kernel.cu +++ b/paddle/phi/kernels/selected_rows/gpu/adam_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/selected_rows/adam_kernel.h" + #include "paddle/fluid/framework/tensor_util.h" #include "paddle/fluid/operators/math/selected_rows_functor.h" #include "paddle/phi/backends/gpu/gpu_context.h" @@ -21,7 +23,6 @@ #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/adam_functors.h" #include "paddle/phi/kernels/funcs/for_range.h" -#include "paddle/phi/kernels/selected_rows/adam_kernel.h" namespace phi { namespace sr { diff --git a/paddle/phi/kernels/selected_rows/gpu/adamw_kernel.cu b/paddle/phi/kernels/selected_rows/gpu/adamw_kernel.cu index 35a349a277d..6e0123d2fca 100644 --- a/paddle/phi/kernels/selected_rows/gpu/adamw_kernel.cu +++ b/paddle/phi/kernels/selected_rows/gpu/adamw_kernel.cu @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/selected_rows/adamw_kernel.h" + #include // for sqrt in CPU and CUDA #include @@ -25,7 +27,6 @@ #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/adam_functors.h" #include "paddle/phi/kernels/funcs/for_range.h" -#include "paddle/phi/kernels/selected_rows/adamw_kernel.h" namespace phi { namespace sr { diff --git a/paddle/phi/kernels/selected_rows/gpu/clip_kernel.cu b/paddle/phi/kernels/selected_rows/gpu/clip_kernel.cu index b9f4febb3b4..a8d659559e1 100644 --- a/paddle/phi/kernels/selected_rows/gpu/clip_kernel.cu +++ b/paddle/phi/kernels/selected_rows/gpu/clip_kernel.cu @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "paddle/phi/kernels/selected_rows/clip_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/common/float16.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/selected_rows/clip_kernel.h" #include "paddle/phi/kernels/selected_rows/impl/clip_kernel_impl.h" PD_REGISTER_KERNEL(clip_sr, diff --git a/paddle/phi/kernels/sparse/gpu/coalesced_kernel.cu b/paddle/phi/kernels/sparse/gpu/coalesced_kernel.cu index 7d9e566916a..405384009df 100644 --- a/paddle/phi/kernels/sparse/gpu/coalesced_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/coalesced_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/coalesced_kernel.h" + #include "paddle/phi/backends/gpu/gpu_info.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/core/kernel_registry.h" @@ -20,7 +22,6 @@ limitations under the License. */ #include "paddle/phi/kernels/funcs/sparse/flatten_indices.cu.h" #include "paddle/phi/kernels/funcs/sparse/scatter.cu.h" #include "paddle/phi/kernels/funcs/sparse/utils.cu.h" -#include "paddle/phi/kernels/sparse/coalesced_kernel.h" namespace phi { namespace sparse { diff --git a/paddle/phi/kernels/sparse/gpu/convolution_grad_kernel.cu b/paddle/phi/kernels/sparse/gpu/convolution_grad_kernel.cu index d83d064418e..805c417b8db 100644 --- a/paddle/phi/kernels/sparse/gpu/convolution_grad_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/convolution_grad_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/convolution_grad_kernel.h" + #include "glog/logging.h" #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_info.h" @@ -23,7 +25,6 @@ limitations under the License. */ #include "paddle/phi/kernels/funcs/blas/blas.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/scatter.cu.h" -#include "paddle/phi/kernels/sparse/convolution_grad_kernel.h" #include "paddle/phi/kernels/sparse/gpu/convolution.cu.h" namespace phi { diff --git a/paddle/phi/kernels/sparse/gpu/convolution_kernel.cu b/paddle/phi/kernels/sparse/gpu/convolution_kernel.cu index c3b6c8c6abc..fe66fb5cff9 100644 --- a/paddle/phi/kernels/sparse/gpu/convolution_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/convolution_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/convolution_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/tensor_meta.h" @@ -19,7 +21,6 @@ limitations under the License. */ #include "paddle/phi/kernels/funcs/blas/blas.h" #include "paddle/phi/kernels/funcs/scatter.cu.h" #include "paddle/phi/kernels/funcs/sparse/scatter.cu.h" -#include "paddle/phi/kernels/sparse/convolution_kernel.h" #include "paddle/phi/kernels/sparse/gpu/convolution.cu.h" namespace phi { diff --git a/paddle/phi/kernels/sparse/gpu/full_kernel.cu b/paddle/phi/kernels/sparse/gpu/full_kernel.cu index 6c1e0160bca..500217d6edc 100644 --- a/paddle/phi/kernels/sparse/gpu/full_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/full_kernel.cu @@ -12,12 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/full_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/funcs/elementwise_base.h" -#include "paddle/phi/kernels/sparse/full_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/sparse/gpu/matmul_grad_kernel.cu b/paddle/phi/kernels/sparse/gpu/matmul_grad_kernel.cu index 30344c30754..6db1bfac6bc 100644 --- a/paddle/phi/kernels/sparse/gpu/matmul_grad_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/matmul_grad_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/matmul_grad_kernel.h" + #include #include "paddle/phi/backends/gpu/gpu_context.h" @@ -19,7 +21,6 @@ limitations under the License. */ #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/empty_kernel.h" #include "paddle/phi/kernels/funcs/sparse/sparse_blas.h" -#include "paddle/phi/kernels/sparse/matmul_grad_kernel.h" #include "paddle/phi/kernels/transpose_kernel.h" namespace phi { diff --git a/paddle/phi/kernels/sparse/gpu/matmul_kernel.cu b/paddle/phi/kernels/sparse/gpu/matmul_kernel.cu index f8590737eda..e1192687ac4 100644 --- a/paddle/phi/kernels/sparse/gpu/matmul_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/matmul_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/matmul_kernel.h" + #include #include "paddle/phi/backends/gpu/gpu_context.h" @@ -24,7 +26,6 @@ limitations under the License. */ #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/empty_kernel.h" #include "paddle/phi/kernels/funcs/sparse/sparse_blas.h" -#include "paddle/phi/kernels/sparse/matmul_kernel.h" namespace phi { namespace sparse { diff --git a/paddle/phi/kernels/sparse/gpu/sparse_mask_kernel.cu b/paddle/phi/kernels/sparse/gpu/sparse_mask_kernel.cu index cbbdc122f61..2153d9dfe68 100644 --- a/paddle/phi/kernels/sparse/gpu/sparse_mask_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/sparse_mask_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/sparse_mask_kernel.h" + #include #include "paddle/phi/backends/gpu/gpu_info.h" @@ -24,7 +26,6 @@ limitations under the License. */ #include "paddle/phi/kernels/empty_kernel.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/sparse/flatten_indices.cu.h" -#include "paddle/phi/kernels/sparse/sparse_mask_kernel.h" namespace phi { namespace sparse { diff --git a/paddle/phi/kernels/sparse/gpu/sparse_pool_grad_kernel.cu b/paddle/phi/kernels/sparse/gpu/sparse_pool_grad_kernel.cu index 694fe667c87..669ecb017dc 100644 --- a/paddle/phi/kernels/sparse/gpu/sparse_pool_grad_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/sparse_pool_grad_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/sparse_pool_grad_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_info.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" @@ -22,7 +24,6 @@ limitations under the License. */ #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/pooling.h" #include "paddle/phi/kernels/funcs/sparse/convolution.h" -#include "paddle/phi/kernels/sparse/sparse_pool_grad_kernel.h" namespace phi { namespace sparse { diff --git a/paddle/phi/kernels/sparse/gpu/sparse_pool_kernel.cu b/paddle/phi/kernels/sparse/gpu/sparse_pool_kernel.cu index 534afbd0f14..bc6723d26b7 100644 --- a/paddle/phi/kernels/sparse/gpu/sparse_pool_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/sparse_pool_kernel.cu @@ -12,13 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/sparse_pool_kernel.h" + #include "paddle/phi/core/kernel_registry.h" #include "paddle/phi/core/tensor_meta.h" #include "paddle/phi/core/visit_type.h" #include "paddle/phi/kernels/funcs/pooling.h" #include "paddle/phi/kernels/funcs/sparse/convolution.h" #include "paddle/phi/kernels/sparse/gpu/convolution.cu.h" -#include "paddle/phi/kernels/sparse/sparse_pool_kernel.h" namespace phi { namespace sparse { diff --git a/paddle/phi/kernels/sparse/gpu/sparse_utils_kernel.cu b/paddle/phi/kernels/sparse/gpu/sparse_utils_kernel.cu index 1ed4ebd23db..52b905e1bdf 100644 --- a/paddle/phi/kernels/sparse/gpu/sparse_utils_kernel.cu +++ b/paddle/phi/kernels/sparse/gpu/sparse_utils_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/sparse/sparse_utils_kernel.h" + #include #include @@ -23,7 +25,6 @@ limitations under the License. */ #include "paddle/phi/core/visit_type.h" #include "paddle/phi/kernels/funcs/math_function.h" #include "paddle/phi/kernels/funcs/sparse/common_shape.h" -#include "paddle/phi/kernels/sparse/sparse_utils_kernel.h" namespace phi { namespace sparse { diff --git a/paddle/phi/kernels/strings/gpu/strings_copy_kernel.cu b/paddle/phi/kernels/strings/gpu/strings_copy_kernel.cu index 7a2d61f29f7..c49b41e0d3f 100644 --- a/paddle/phi/kernels/strings/gpu/strings_copy_kernel.cu +++ b/paddle/phi/kernels/strings/gpu/strings_copy_kernel.cu @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/strings/strings_copy_kernel.h" + #include "paddle/phi/backends/all_context.h" #include "paddle/phi/backends/gpu/gpu_helper.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" @@ -20,7 +22,6 @@ limitations under the License. */ #include "paddle/phi/kernels/copy_kernel.h" #include "paddle/phi/kernels/empty_kernel.h" #include "paddle/phi/kernels/strings/gpu/copy_utils.h" -#include "paddle/phi/kernels/strings/strings_copy_kernel.h" using pstring = ::phi::dtype::pstring; diff --git a/paddle/phi/kernels/strings/gpu/strings_lower_upper_kernel.cu b/paddle/phi/kernels/strings/gpu/strings_lower_upper_kernel.cu index 05d868f4db8..2237edae7eb 100644 --- a/paddle/phi/kernels/strings/gpu/strings_lower_upper_kernel.cu +++ b/paddle/phi/kernels/strings/gpu/strings_lower_upper_kernel.cu @@ -9,11 +9,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include "paddle/phi/kernels/strings/strings_lower_upper_kernel.h" + #include "paddle/phi/backends/gpu/gpu_context.h" #include "paddle/phi/backends/gpu/gpu_launch_config.h" #include "paddle/phi/common/pstring.h" #include "paddle/phi/core/kernel_registry.h" -#include "paddle/phi/kernels/strings/strings_lower_upper_kernel.h" #include "paddle/phi/kernels/strings/unicode.h" using pstring = ::phi::dtype::pstring; -- GitLab