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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/math_function.h"
#include "paddle/phi/kernels/gpu/row_conv_grad_kernel.cu" //NOLINT
#include "paddle/phi/kernels/row_conv_grad_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(
row_conv_grad, iluvatar_gpu, ALL_LAYOUT, phi::RowConvGradKernel, float) {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/math_function.h"
#include "paddle/phi/kernels/gpu/row_conv_kernel.cu" //NOLINT
#include "paddle/phi/kernels/row_conv_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(
row_conv, iluvatar_gpu, ALL_LAYOUT, phi::RowConvKernel, float) {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/math_function.h"
#include "paddle/phi/kernels/gpu/seed_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/seed_kernel.h"
#include "paddle/phi/kernels/impl/seed_kernel_impl.h"

PD_CUSTOM_KERNEL_REGISTER(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "paddle/phi/kernels/gpu/sequence_expand_kernel.cu" //NOLINT
#include "paddle/phi/kernels/impl/sequence_expand_kernel_impl.h"
#include "paddle/phi/kernels/sequence_expand_kernel.h"

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

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/shuffle_channel.h"
#include "paddle/phi/kernels/gpu/shuffle_channel_grad_kernel.cu" //NOLINT
#include "paddle/phi/kernels/shuffle_channel_grad_kernel.h"
Copy link
Member

Choose a reason for hiding this comment

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

Paddle仓中的kernel声明有误,导致编译报错


PD_CUSTOM_KERNEL_REGISTER(shuffle_channel_grad,
iluvatar_gpu,
Expand Down
5 changes: 5 additions & 0 deletions backends/metax_gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +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/shuffle_channel_grad_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/sequence_expand_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/seed_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/row_conv_kernel.cu
${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/row_conv_grad_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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/math_function.h"
#include "paddle/phi/kernels/gpu/row_conv_grad_kernel.cu" //NOLINT
#include "paddle/phi/kernels/row_conv_grad_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(
row_conv_grad, metax_gpu, ALL_LAYOUT, phi::RowConvGradKernel, float) {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/math_function.h"
#include "paddle/phi/kernels/gpu/row_conv_kernel.cu" //NOLINT
#include "paddle/phi/kernels/row_conv_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(
row_conv, metax_gpu, ALL_LAYOUT, phi::RowConvKernel, float) {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/math_function.h"
#include "paddle/phi/kernels/gpu/seed_kernel.cu" //NOLINT
#include "paddle/phi/kernels/gpu/seed_kernel.h"
#include "paddle/phi/kernels/impl/seed_kernel_impl.h"

PD_CUSTOM_KERNEL_REGISTER(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "paddle/phi/kernels/gpu/sequence_expand_kernel.cu" //NOLINT
#include "paddle/phi/kernels/impl/sequence_expand_kernel_impl.h"
#include "paddle/phi/kernels/sequence_expand_kernel.h"

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

#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/gpu/shuffle_channel.h"
#include "paddle/phi/kernels/gpu/shuffle_channel_grad_kernel.cu" //NOLINT
#include "paddle/phi/kernels/shuffle_channel_grad_kernel.h"
Copy link
Member

Choose a reason for hiding this comment

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

Paddle仓中的kernel声明有误,导致编译报错

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PaddlePaddle/Paddle#76798
paddle仓库对应修改


PD_CUSTOM_KERNEL_REGISTER(shuffle_channel_grad,
metax_gpu,
Expand Down
Loading