Skip to content

Conversation

fangfangssj
Copy link
Contributor

@fangfangssj fangfangssj commented May 19, 2025

PR Category

User Experience

PR Types

Bug fixes

Description

使用Paddle的时候,有很多算子的XPU端是未实现的,这时框架会自动fallback回CPU端
#55156 中把visit_type分为XPU和其他两类,会导致kernel在fallback回cpu端时使用了xpu相关的visit_type导致程序停止,并抛出一个不太明确的报错,如下图所示,使用了visit_type的有cast和reduce两种操作,有相关操作的kernel在fallback回cpu均会报错
e0d04d7605138bddfbc018d91fd68c41
本PR修复了新增了cpu相关的visit_type来避免触发上面的问题,让fallback回cpu的kernel可以正常运行
Pcard-75624

Copy link

paddle-bot bot commented May 19, 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.

@fangfangssj
Copy link
Contributor Author

fangfangssj commented May 19, 2025

/re-run sot

Copy link
Contributor

@HydrogenSulfate HydrogenSulfate left a comment

Choose a reason for hiding this comment

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

LGTM

@HydrogenSulfate HydrogenSulfate merged commit 8594860 into PaddlePaddle:develop May 20, 2025
69 of 72 checks passed
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 22, 2025
@fangfangssj fangfangssj deleted the visit_type branch August 20, 2025 16:36
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