Skip to content

Conversation

CuiYifeng
Copy link
Contributor

This PR provides a work-around for the lack of exception vector within batch_error exception, otherwise segmentation fault would happen while accessing exceptions.

@Copilot Copilot AI review requested due to automatic review settings August 7, 2025 13:58
@CuiYifeng CuiYifeng added the mkl label Aug 7, 2025
@CuiYifeng
Copy link
Contributor Author

Plan to remove this WA after upgrading to oneMKL 2025.3.

Copilot

This comment was marked as outdated.

@CuiYifeng CuiYifeng force-pushed the yifeng/getrf_batch_wa branch from 15dac16 to 29605c0 Compare August 7, 2025 14:09
@CuiYifeng CuiYifeng requested review from toyxu and chunhuanMeng August 8, 2025 02:18
@CuiYifeng CuiYifeng requested a review from jianyizh August 11, 2025 14:35
@jianyizh jianyizh self-requested a review August 12, 2025 02:40
@CuiYifeng CuiYifeng force-pushed the yifeng/getrf_batch_wa branch from 29605c0 to 684d1cd Compare August 21, 2025 07:06
@CuiYifeng CuiYifeng requested a review from Copilot August 21, 2025 07:07
Copy link
Contributor

@Copilot Copilot AI left a 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.

@CuiYifeng CuiYifeng force-pushed the yifeng/getrf_batch_wa branch from 684d1cd to 6189925 Compare August 22, 2025 12:37
@CuiYifeng CuiYifeng added this pull request to the merge queue Aug 25, 2025
Merged via the queue into main with commit b7ccec0 Aug 25, 2025
55 of 57 checks passed
@CuiYifeng CuiYifeng deleted the yifeng/getrf_batch_wa branch August 25, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants