Skip to content

[SYCL][ESIMD] LowerESIMD: add 'buffer_t' MD for accessor kernel args. #2748

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

Closed
wants to merge 2 commits into from

Conversation

kbobrovs
Copy link
Contributor

@kbobrovs kbobrovs commented Nov 9, 2020

LowerESIMD will now use the 'kernel_arg_accessor_ptr' to detect pointers originating from accessors (rather then svm pointers) and mark them appropriately for the BE.

The other two PRs needed for this one to work are:

The patches also require at least this Gen driver:
https://github.com/intel/compute-runtime/releases/tag/20.43.18277

Signed-off-by: Konstantin S Bobrovsky konstantin.s.bobrovsky@intel.com

…ents.

Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
…IMD.

Signed-off-by: Konstantin S Bobrovsky <konstantin.s.bobrovsky@intel.com>
Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add a regression test.

KernelArgAccPtrs
? cast<ConstantAsMetadata>(KernelArgAccPtrs->getOperand(Idx))
: nullptr;
unsigned IsAcc =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to have a kernel_arg_accessor_ptr metadata with 0 value?

@kbobrovs
Copy link
Contributor Author

now part of #2746

@kbobrovs kbobrovs closed this Nov 17, 2020
@kbobrovs kbobrovs deleted the drop_image_wrap_lwr_esimd branch January 19, 2022 22:51
jsji pushed a commit that referenced this pull request Oct 11, 2024
With the latest release of spirv-tools (1.3.296) this test now passes.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@a217f5e3449eaa8
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