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

[SYCL] Get pointer should not be called on host for local accessors #13747

Merged
merged 2 commits into from May 14, 2024

Conversation

hdelan
Copy link
Contributor

@hdelan hdelan commented May 10, 2024

Local accessors only have their memory allocated on device when a kernel starts executing. Any pointer that refers to local memory on host before kernel execution has begun is therefore invalid.

This function may only be called from within a SYCL kernel function.

Table 78 in
https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_interface_for_local_accessors

@hdelan hdelan requested a review from a team as a code owner May 10, 2024 14:28
@hdelan hdelan requested a review from cperkinsintel May 10, 2024 14:28
@hdelan hdelan changed the title [SYCL] Get pointer should not be called on host for local accessor [SYCL] Get pointer should not be called on host for local accessors May 10, 2024
Local accessors only have their memory allocated when a kernel starts
executing. Any pointer that refers to local memory on host before kernel
execution has begun is therefore invalid.
Remove test for get pointer for local accessors on the host.
@hdelan
Copy link
Contributor Author

hdelan commented May 14, 2024

Friendly ping @cperkinsintel @intel/llvm-reviewers-runtime

@steffenlarsen steffenlarsen merged commit 7698ff8 into intel:sycl May 14, 2024
13 checks passed
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.

None yet

3 participants