Skip to content

[ESIMD] Conditionally revert the recent changes for slm_gather() #12341

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

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

v-klochkov
Copy link
Contributor

@v-klochkov v-klochkov commented Jan 10, 2024

The previous fix (#12316) added usage of llvm.masked.gather for slm_gather(). Such usage does not work with current GPU drivers if ESIMD function is called via invoke_simd() API.

The fix here returns the previous lowering to GenX instead of llvm.masked.gather.
Using the lowering to llvm.masked.gather can be used if define __ESIMD_GATHER_SCATTER_LLVM_IR macro (turned off by default).

The previous fix (intel#12316) added usage
of llvm.masked.gather for slm_gather(). Such usage does not work with
current GPU drivers if ESIMD function is called via invoke_esimd() API.

The fix here returns the previous lowering to GenX instead of
llvm.masked.gather.
Using the lowering to llvm.masked.gather can be used if define
__ESIMD_GATHER_SCATTER_LLVM_IR macro (turned off by default).

Signed-off-by: Klochkov, Vyacheslav N <[email protected]>
@v-klochkov v-klochkov marked this pull request as ready for review January 10, 2024 04:59
@v-klochkov v-klochkov requested a review from a team as a code owner January 10, 2024 04:59
@v-klochkov v-klochkov merged commit 5e9564d into intel:sycl Jan 10, 2024
@v-klochkov v-klochkov deleted the esimd_fix_slm_gather_llvm_ir branch January 10, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants