Skip to content

【CUDA Kernel No.103】seed算子Kernel修复 -part #75577

Merged
luotao1 merged 8 commits intoPaddlePaddle:developfrom
Le-soleile:kernel104
Oct 16, 2025
Merged

【CUDA Kernel No.103】seed算子Kernel修复 -part #75577
luotao1 merged 8 commits intoPaddlePaddle:developfrom
Le-soleile:kernel104

Conversation

@Le-soleile
Copy link
Copy Markdown
Contributor

PR Category

Performance Optimization

PR Types

Bug fixes

Description

新增paddle/phi/kernels/seed_kernel.h
修改paddle/phi/kernels/gpu/seed_kernel.cu、paddle/phi/kernels/cpu/seed_kernel.cc

Comment thread paddle/phi/kernels/seed_kernel.h Outdated
int get_seed(int user_seed, bool deterministic, const std::string& rng_name);

template <typename T>
void SeedKernel(const CPUContext& dev_ctx,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

context可以用模板

@paddle-bot paddle-bot Bot added the contributor External developers label Sep 28, 2025
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Sep 29, 2025
@Le-soleile
Copy link
Copy Markdown
Contributor Author

/re-run all-failed

Comment thread paddle/phi/kernels/seed_kernel.h Outdated
namespace phi {

template <typename T, typename Context>
void SeedKernel(const Context& dev_ctx,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

声明有误,GPUkernel名称为GPUSeedKernel,考虑在gpu目录下新增头文件

@YqGe585
Copy link
Copy Markdown
Member

YqGe585 commented Oct 10, 2025

请修复codestyle

@Le-soleile
Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@YqGe585
Copy link
Copy Markdown
Member

YqGe585 commented Oct 11, 2025

请修复codestyle

@Le-soleile
Copy link
Copy Markdown
Contributor Author

/re-run all-failed

Copy link
Copy Markdown
Member

@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

@luotao1 luotao1 merged commit 1aa4a86 into PaddlePaddle:develop Oct 16, 2025
87 of 89 checks passed
@Le-soleile Le-soleile deleted the kernel104 branch February 23, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants