Skip to content

[DCU] fix fused_bias_act op #65399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Conversation

Deleter-D
Copy link
Contributor

@Deleter-D Deleter-D commented Jun 24, 2024

PR Category

Custom Device

PR Types

Bug fixes

Description

card-84892
fix fused_bias_act_utils on DCU
fix load_store_util on DCU

Copy link

paddle-bot bot commented Jun 24, 2024

你的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.

@Deleter-D
Copy link
Contributor Author

PR-CI-Hygon-DCU-Test失败单测中不包含test_fused_bias_act_op,本算子修复通过测试

@Deleter-D
Copy link
Contributor Author

@qili93 已按照review修改,PR-CI-Hygon-DCU-Test失败原因非本算子单测

@@ -94,7 +94,8 @@ def fused_act_bias_wrapper(


@unittest.skipIf(
not core.is_compiled_with_cuda(), "core is not compiled with CUDA"
not core.is_compiled_with_cuda() and not core.is_compiled_with_rocm(),
"core is not compiled with CUDA or ROCm",
Copy link
Contributor

Choose a reason for hiding this comment

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

这里可以不用修改,你可以看下 is_compiled_with_cuda 的实现,当初了为支持HIP和CUDA的兼容,当编译的时候是HIP的时候,也会返回True,可以参考

#if !defined(PADDLE_WITH_CUDA) && !defined(PADDLE_WITH_HIP)

下面几行也是一样。

Copy link
Contributor

@qili93 qili93 left a comment

Choose a reason for hiding this comment

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

LGTM

@qili93 qili93 merged commit 19a9553 into PaddlePaddle:develop Jun 26, 2024
@Deleter-D Deleter-D deleted the fix_fused_bias_act branch June 26, 2024 10:52
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