Skip to content

Conversation

@algorithm1832
Copy link
Contributor

@algorithm1832 algorithm1832 commented Nov 21, 2025

PR Category

Custom Device

PR Types

Improvements

Description

  • Include kldiv_loss_kernel.h to replace .cu file include
  • Add kldiv_loss_kernel.cu to metax_gpu's cmakelists

ℹ️The .h file already exists in the Paddle repo: paddle/phi/kernels/kldiv_loss_kernel.h

ℹ️The kldiv_loss_kernel.cu file has been included in iluvatar_gpu's cmakelists starting from line 276.

file(
  GLOB
  CUDA_SRCS2
  ...
  ${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/kldiv_loss_kernel.cu
  ...
)
...
set(CUDA_SRCS ${CUDA_SRCS1} ${CUDA_SRCS2})
list(REMOVE_DUPLICATES CUDA_SRCS)

Used AI Studio

@paddle-bot
Copy link

paddle-bot bot commented Nov 21, 2025

Thanks for your contribution!

Copy link
Collaborator

@YqGe585 YqGe585 left a comment

Choose a reason for hiding this comment

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

LGTM

@YqGe585 YqGe585 merged commit 2ba4614 into PaddlePaddle:develop Nov 24, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants