Skip to content
Closed
Show file tree
Hide file tree
Changes from 11 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
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
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