Skip to content

[SYCL][ESIMD] add indirect read and write methods #3039

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 20, 2021

Conversation

cmc-rep
Copy link
Contributor

@cmc-rep cmc-rep commented Jan 15, 2021

Signed-off-by: Gang Y Chen [email protected]

@cmc-rep cmc-rep requested a review from kbobrovs as a code owner January 15, 2021 01:05
@cmc-rep cmc-rep requested a review from kychendev January 15, 2021 01:15
@cmc-rep
Copy link
Contributor Author

cmc-rep commented Jan 15, 2021

@kychendev @kbobrovs please review and merge timely

sycl::INTEL::gpu::vector_type_t<T, M> Result;
for (int i = 0; i < M; ++i) {
uint16_t EltOffset = Offset[i] / sizeof(T);
assert(Offset[i] % sizeof(T) == 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could add safety check here and report error on out-of-bound access.

@cmc-rep
Copy link
Contributor Author

cmc-rep commented Jan 17, 2021

@kychendev @kbobrovs , update is ready for review

@cmc-rep
Copy link
Contributor Author

cmc-rep commented Jan 20, 2021

@konst, could you help with this merge?

@cmc-rep
Copy link
Contributor Author

cmc-rep commented Jan 20, 2021

@kbobrovs, could you help with this merge

@kbobrovs kbobrovs merged commit 8208427 into intel:sycl Jan 20, 2021
@cmc-rep cmc-rep deleted the cmc-rep-change branch January 22, 2021 22:53
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.

3 participants