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

Implement tests for sycl_ext_oneapi_local_memory extension #958

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

0x12CC
Copy link
Contributor

@0x12CC 0x12CC commented Oct 7, 2024

Implement the tests from this test plan.

@0x12CC 0x12CC requested a review from a team as a code owner October 7, 2024 02:55
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.

LGTM.

@keryell, @ProGTX, do you want to take a look at this oneAPI vendor extension test before I merge it?

Comment on lines +31 to +34
Point3D() : x{0}, y{0}, z{0} {}
Point3D(int x) : x{x}, y{0}, z{0} {}
Point3D(int x, int y) : x{x}, y{y}, z{0} {}
Point3D(int x, int y, int z) : x{x}, y{y}, z{z} {}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Point3D() : x{0}, y{0}, z{0} {}
Point3D(int x) : x{x}, y{0}, z{0} {}
Point3D(int x, int y) : x{x}, y{y}, z{0} {}
Point3D(int x, int y, int z) : x{x}, y{y}, z{z} {}
Point3D(int x = 0, int y = 0, int z = 0) : x{x}, y{y}, z{z} {}

Copy link
Member

Choose a reason for hiding this comment

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

Otherwise, why 0 everywhere as it might hide some bugs? What about some negative and positive prime numbers?

Comment on lines +137 to +139
auto ptr = sycl::ext::oneapi::group_local_memory_for_overwrite<T[N]>(
item.get_group());
T(&array)[N] = *ptr;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
auto ptr = sycl::ext::oneapi::group_local_memory_for_overwrite<T[N]>(
item.get_group());
T(&array)[N] = *ptr;
auto array = *sycl::ext::oneapi::group_local_memory_for_overwrite<T[N]>(
item.get_group());

?

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