Skip to content

[PHI] Fix fp16/int16 atomic primitives#75142

Merged
zhangbo9674 merged 1 commit intoPaddlePaddle:developfrom
Enigmatisms:fix_i16_fp16
Sep 8, 2025
Merged

[PHI] Fix fp16/int16 atomic primitives#75142
zhangbo9674 merged 1 commit intoPaddlePaddle:developfrom
Enigmatisms:fix_i16_fp16

Conversation

@Enigmatisms
Copy link
Contributor

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

CUDA_ATOMIC_WRAPPER(Mul, phi::dtype::float16) {
  if (*address >= val) {
    return *address;
  }
  • 修改了gpu_primitives.h 中所有的 inline staticstatic 不应该在头文件中修饰函数。用 inline 就能达到唯一性。

Pcard-89620

@paddle-bot
Copy link

paddle-bot bot commented Sep 7, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

3 similar comments
@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@zhangbo9674 zhangbo9674 merged commit ca76fd2 into PaddlePaddle:develop Sep 8, 2025
124 of 130 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants