-
Notifications
You must be signed in to change notification settings - Fork 52
[WA] Fix the lack of exceptions vector in getrf_batch #1916
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
Conversation
Plan to remove this WA after upgrading to oneMKL 2025.3. |
15dac16
to
29605c0
Compare
29605c0
to
684d1cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a segmentation fault in the XPU MKL batch linear algebra implementation by addressing the lack of an exceptions vector in the batch_error
exception handling. The fix implements a workaround to prevent crashes when accessing exception information during error handling.
- Added defensive check for empty exceptions vector before accessing it
- Enhanced error handling with proper TORCH_WARN logging instead of std::cout
- Modified info handling to use CPU tensors for thread safety
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
684d1cd
to
6189925
Compare
This PR provides a work-around for the lack of exception vector within batch_error exception, otherwise segmentation fault would happen while accessing exceptions.