-
Notifications
You must be signed in to change notification settings - Fork 8
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
Provide a way to debug explicit CPU fallback #262
Comments
Also filed pytorch/pytorch#126488 for visibility at pytorch level. |
Thanks for your feedback. Replied in pytorch/pytorch#126488. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Jun 5, 2024
Fixes: #262, pytorch/pytorch#126488 5bf9e0c ("Register operator's implementation lazily") disabled warnings printout on explicit CPU fallback. I believe that users and customers will benefit from these warnings in all the cases. Note that "explicit fallback" seems to be some internal intel classification term for supported/unsupported operations unlikely known to others. Thus, non-intel users will likely care for cpu fallback in general regardless of its type. This PR adds warning back for all CPU fallback cases. We did discuss in pytorch/pytorch#126488 that maybe printout in Release build might not be needed - I am thinking otherwise and added printout for all the build modes. Let's discuss this in the PR review. CC: @gujinghui @EikanWang @fengyuan14 @guangyey @jgong5 Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com> Co-authored-by: Feng Yuan <feng1.yuan@intel.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@fengyuan14 - The commit 5bf9e0c muted debug logs of "explicit" CPU fallbacks. This complicated debug for 3d party contributors trying to evaluate XPU backend capabilities - now I am forced to revert noted commit to understand which operations are not currently implemented by XPU. Please:
PYTORCH_DEBUG_XPU_FALLBACK=1
to track any CPU fallback happening in XPU backend. Note: I am fine if "explicit" fallback will be muted by default, but I really need a way to be able to track it.CC: @jgong5 @mingfeima @XiaobingSuper @ashokei @jingxu10 @gujinghui @EikanWang @fengyuan14 @guangyey
The text was updated successfully, but these errors were encountered: