-
Notifications
You must be signed in to change notification settings - Fork 801
[SYCLLowerIR] Fix a hierarchical parallelism bug #20550
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
[SYCLLowerIR] Fix a hierarchical parallelism bug #20550
Conversation
|
Is it possible to extract LLVM snippet from the E2E test? Bypassing LIT test modification significantly complicates later upstreaming. |
I haven't been able to find an LLVM snipper to trigger this. This resulted from an high level client test failure whereas all the LLVM IR was passing. I think for now let's go ahead with the merge and I'll keep looking into it. Aside from this, there is a test already verifying this pass's output in |
|
@intel/llvm-gatekeepers please consider merging |
1 similar comment
|
@intel/llvm-gatekeepers please consider merging |
|
@maksimsab Please have a look at my comment above. Can we go ahead with the merge here? |
|
@intel/llvm-gatekeepers please consider merging |
Why do we need this change in test if it doesn't capture the bug? |
|
The latest outstanding comment was settled offline, hence the subsequent approval. |
There is a bug in my earlier PR #20484. When encountering an indirect call to a
parallel_for_work_itemfunction, the range of instructions that will be subjected to the lowering pass must be closed, whereas the current code simply skips over this instruction as its iterating the instructions of the basic block which effectively keeps extending the range. There is an E2E test that reflects this bug where it used to hang before this fix but so far I'm not aware of an LLVM-IR snippet of code that triggers it so for the moment, I'm just adding a SYCL-level test.