Skip to content

Make image conv memory coalescence example more intuitive #160

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
May 20, 2022

Conversation

joeatodd
Copy link
Contributor

The previous arrangement used a rather devious (32, 1) group size to
enforce a requirement for flipping the globalId inside the
kernel. This is fine but it makes it seem like a sycl::id is row major
but a sycl::buffer is col major.

The exercise is now kind of reversed - we keep an intuitive work-group
shape in reference.cpp but we add the (now rogue) globalId flip so
that memory access isn't coalesced. The 'solution' for the coalescence
exercise now is to remove the globalId flip.

The previous arrangement used a rather devious (32, 1) group size to
enforce a requirement for flipping the globalId inside the
kernel. This is fine but it makes it seem like a sycl ID is row major
but a sycl::buffer is col major.

The exercise is now kind of reversed - we keep an intuitive work-group
shape in reference.cpp but we add the (now rogue) globalId flip so
that memory access isn't coalesced. The 'solution' for the coalescence
exercise now is to remove the globalId flip.
Copy link
Contributor

@AerialMantis AerialMantis left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@tomdeakin
Copy link
Contributor

Likewise, do we need his update for the isc22 branch?

@AerialMantis
Copy link
Contributor

Yeah that's a good point, we should apply these changes to the isc22 branch as well.

@joeatodd joeatodd merged commit 91aa17c into main May 20, 2022
@rodburns rodburns deleted the imageconv-perf-fix branch November 9, 2022 10:44
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