Skip to content
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

Add SYCL kernels #441

Merged
merged 33 commits into from
Jun 10, 2024
Merged

Add SYCL kernels #441

merged 33 commits into from
Jun 10, 2024

Conversation

rhornung67
Copy link
Member

@rhornung67 rhornung67 commented May 3, 2024

Add SYCL kernel variants

This PR adds SYCL variants of many kernels. There are a few issues still to be worked out in subsequent PRs.

Resolves #433

@rhornung67 rhornung67 requested review from artv3 and homerdin May 3, 2024 22:33
@rhornung67 rhornung67 changed the title Rajaperf polybench [NO NOT MERGE YET!] Kernels that use RAJA::kernel and SYCL May 31, 2024
@rhornung67 rhornung67 requested a review from MrBurmark May 31, 2024 22:19
@LLNL LLNL deleted a comment from artv3 May 31, 2024
@rhornung67
Copy link
Member Author

@artv3 @MrBurmark @homerdin this should be good to go. I'll be making more modifications in subsequent PRs.

@rhornung67 rhornung67 changed the title Kernels that use RAJA::kernel and SYCL Add SYCL kernels Jun 5, 2024
}
POLYBENCH_2MM_BODY3;

sycl::range<3> global_dim1(1,
Copy link
Member

Choose a reason for hiding this comment

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

Don't we only need a 2d range?

Copy link
Member

Choose a reason for hiding this comment

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

the RAJA backend uses a 3D range

Copy link
Member Author

Choose a reason for hiding this comment

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

Technically, yes, only a 2d range is needed. I discussed the pattern and consistency across kernels with @homerdin and we agreed that this is how we should do it.

Copy link
Member

Choose a reason for hiding this comment

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

There are places where we use kernel for a 1d loop and then the base variant uses a 1d range instead of a 3d range, it makes sense to me to use what you would naturally use instead of doing what RAJA::kernel happens to use. If it ends up making a difference we could see it.

Copy link
Member

@artv3 artv3 left a comment

Choose a reason for hiding this comment

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

Looks good overall

}
POLYBENCH_2MM_BODY3;

sycl::range<3> global_dim1(1,
Copy link
Member

Choose a reason for hiding this comment

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

the RAJA backend uses a 3D range

@rhornung67
Copy link
Member Author

rhornung67 commented Jun 6, 2024

@MrBurmark I addressed all your comments. Anything else in here you would like me to address?

@rhornung67 rhornung67 merged commit 07704bb into develop Jun 10, 2024
20 checks passed
@rhornung67 rhornung67 deleted the rajaperf_polybench branch June 10, 2024 16:49
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.

Fill in missing SYCL variants of "polybench" kernels
3 participants