Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Paddle
Submodule Paddle updated 976 files
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/global_gather_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/global_gather_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(global_gather,
iluvatar_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/global_scatter_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/global_scatter_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(global_scatter,
iluvatar_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/l1_norm_grad_kernel.cu" // NOLINT
#include "paddle/phi/kernels/l1_norm_grad_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(
l1_norm_grad, iluvatar_gpu, ALL_LAYOUT, phi::L1NormGradKernel, float) {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/lookup_table_grad_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/lookup_table_grad_kernel.h"
PD_CUSTOM_KERNEL_REGISTER(lookup_table_grad,
iluvatar_gpu,
ALL_LAYOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/lookup_table_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/lookup_table_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(lookup_table,
iluvatar_gpu,
Expand Down
19 changes: 5 additions & 14 deletions backends/metax_gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,11 @@ file(
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/funcs/math/*.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/funcs/eigen/*.cu
# kernels/gpu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/partial_send_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/partial_recv_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/partial_concat_grad_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/partial_allgather_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/ctc_align_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/yolo_box_head_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/stft_grad_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/soft_relu_grad_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/shuffle_channel_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/lgamma_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/lamb_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/label_smooth_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/label_smooth_grad_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/l1_norm_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/lookup_table_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/lookup_table_grad_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/l1_norm_grad_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/global_scatter_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/global_gather_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/yolo_box_post_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/spectral_norm_grad_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/spectral_norm_kernel.cu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/global_gather_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/global_gather_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(global_gather,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/global_scatter_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/global_scatter_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(global_scatter,
metax_gpu,
Expand Down
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要在metax的cmakelists中编译这个kernel,否则会导致报错:https://github.com/PaddlePaddle/PaddleCustomDevice/actions/runs/19930245237/job/57141413230?pr=2191#step:5:613

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/l1_norm_grad_kernel.cu" // NOLINT
#include "paddle/phi/kernels/l1_norm_grad_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(
l1_norm_grad, metax_gpu, ALL_LAYOUT, phi::L1NormGradKernel, float) {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/lookup_table_grad_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/lookup_table_grad_kernel.h"
PD_CUSTOM_KERNEL_REGISTER(lookup_table_grad,
metax_gpu,
ALL_LAYOUT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/lookup_table_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/lookup_table_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(lookup_table,
metax_gpu,
Expand Down
Loading