You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compilation of JAX model fails in Stream Execution passes #13459
(I suspect we may have many latent bugs related to the same issue in the compiler and will try to squash what I can - it's proving hard to create a small reproducer for, though)
@benvanik I have time this afternoon if it would help to pair work on the issues you're running into. If I understand better, I may also be able to help distribute load. Lmk.
For the moment I think these are all coming from many people running approximately the same model from the same modeling codebase, so the IR will be very similar to the original reproducer.
Found the root cause - special case around cloned streamable ops that have uses outside of streams (here a splat that is both used by dispatches and returned from the main function).
Reacted by Stella Laurenzo, Scott Todd, menelaus and Rob Suderman
Activity
rsuderman commentedon May 8, 2023
I attempted to dump the IR immediately prior to both passes however segfaults occur when attempting to print prior to each of the passes.
allieculp commentedon May 8, 2023
@benvanik can you help triage?
ScottTodd commentedon May 8, 2023
Got a stack trace or error logs, @rsuderman ?
rsuderman commentedon May 9, 2023
Inlining the stack trace. It appears that the previous pass generates illegal IR
allieculp commentedon May 9, 2023
@benvanik This is the next task needed for our BF16 support #13370. Is this in progress?
benvanik commentedon May 9, 2023
I'll triage this now.
benvanik commentedon May 9, 2023
iree-opt --pass-pipeline=builtin.module(func.func(iree-stream-schedule-execution)): https://gist.github.com/benvanik/b530fd28f53c1e12524282ef151484a2benvanik commentedon May 10, 2023
I think I found both the issue and sadness, despair, and the need for a better utility for erasing sets of ops. Should be able to have a fix in a bit.
benvanik commentedon May 10, 2023
(I suspect we may have many latent bugs related to the same issue in the compiler and will try to squash what I can - it's proving hard to create a small reproducer for, though)
benvanik commentedon May 10, 2023
Nevermind, there's another issue and I'm so context switched out this is going to take me a decent chunk of time to figure out.
silvasean commentedon May 12, 2023
For completeness, error here is
LLVM ERROR: operation destroyed but still has useswith full error log here -- taken from this commentallieculp commentedon May 15, 2023
@benvanik Any update on this one?
silvasean commentedon May 15, 2023
cc @Young768 who is also hitting this
stellaraccident commentedon May 15, 2023
@benvanik I have time this afternoon if it would help to pair work on the issues you're running into. If I understand better, I may also be able to help distribute load. Lmk.
benvanik commentedon May 15, 2023
Will dig into it today. If others are hitting this does that mean there are other reproducers available, or is it with the same input?
silvasean commentedon May 15, 2023
For the moment I think these are all coming from many people running approximately the same model from the same modeling codebase, so the IR will be very similar to the original reproducer.
benvanik commentedon May 15, 2023
Found the root cause - special case around cloned streamable ops that have uses outside of streams (here a splat that is both used by dispatches and returned from the main function).
Allow cloned ops to escape stream execution regions.
Allow cloned ops to escape stream execution regions.
Allow cloned ops to escape stream execution regions. (#13625)
Allow cloned ops to escape stream execution regions. (iree-org#13625)