-
Notifications
You must be signed in to change notification settings - Fork 54
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
Segmentation failure in matmul + reshape
fusion
#2127
Comments
Probably #1707 |
Yeah it really resembles it. However, in this case I believe it's a little easier. The segmenter is accepting these two segments:
But then it rejects the mma-only segment:
The issue is here: Fuser/csrc/scheduler/matmul_utils.cpp Lines 275 to 283 in 0382e80
We require inputs to be created with BroadcastOp . I don't think we really need that check. We should be able to handle 2D or 3D inputs for 2D matmul problems and just squeeze if necessary in the aten evaluator. cc @protonu
|
This bug is dependent on Protonu's Allocation Domain Inference issue #2058. |
We do not need to address this bug when using |
This example now runs correctly. The segmentation issue is resolved when using the ATen scheduler and MatmulOp nodes (PR #2175, #2209). We may still need to verify correctness on Matmul Scheduler. Issue #1707 is aimed at a similar issue for the Matmul Scheduler. |
Repro from @jjsjann123: Lightning-AI/lightning-thunder#207 (comment)
This fails with the error:
The text was updated successfully, but these errors were encountered: