Skip to content

Conversation

algorithm1832
Copy link
Contributor

PR Category

Custom Device

PR Types

Improvements

Description

  • Include index_add_grad_kernel.h to replace .cu file include

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

ℹ️The index_add_grad_kernel.cu file has been included twice in iluvatar_gpu's cmakelists starting from line 269.

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

ℹ️The index_add_grad_kernel.cu file has been included in metax_gpu's cmakelists starting from line 107.

file(
  GLOB
  CUDA_SRCS
  ...
  ${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/index_add_grad_kernel.cu
  ...
)

Copy link

paddle-bot bot commented Oct 16, 2025

Thanks for your contribution!

@algorithm1832 algorithm1832 changed the title 【CUDA Kernel No.61】Include index_add_grad_kernel.h WIP:【CUDA Kernel No.61】Include index_add_grad_kernel.h Oct 16, 2025
@algorithm1832
Copy link
Contributor Author

The source branch is wrong, I will retry with a new PR. Sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant