Skip to content

Conversation

@algorithm1832
Copy link
Contributor

PR Category

Custom Device

PR Types

Improvements

Description

  • Include gru_kernel.h to replace .cu file include
  • Add gru_kernel.cu file to metax gpu's cmakelists

ℹ️The gru_kernel.cu file has already been included in iluvatar_gpu's cmakelists starting from line 275.

file(
  GLOB
  CUDA_SRCS2
  ...
  ${PADDLE_SOURCE_DIR}/paddle/phi/kernels/gpu/gru_kernel.cu
  ...
)

foreach(src ${CUDA_SRCS2})
  if(NOT EXISTS ${src})
    message(FATAL_ERROR "Missing CUDA source file: ${src}")
  endif()
endforeach()

set(CUDA_SRCS ${CUDA_SRCS1} ${CUDA_SRCS2})
list(REMOVE_DUPLICATES CUDA_SRCS)

Related Paddle PR: #75845

Used AI Studio

@paddle-bot
Copy link

paddle-bot bot commented Nov 4, 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 ddd5c22 into PaddlePaddle:develop Nov 13, 2025
13 of 15 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