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][COMPAT] Re-add buffer (USM_LEVEL_NONE) support #15683

Merged
merged 54 commits into from
Oct 23, 2024

Conversation

joeatodd
Copy link
Contributor

This PR enables (a subset of) the SYCLcompat memory APIs on devices which lack USM support.

Defining COMPAT_USM_LEVEL_NONE enables this mode, in which syclcompat memory APIs (malloc, memcpy, memset, free, etc) operate with virtual device pointers, backed by buffers.

@joeatodd
Copy link
Contributor Author

I've merged sycl to try to confirm that these failures are definitely resolved.

Copy link
Contributor

@Alcpz Alcpz left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the contribution. Most of the comments are minor.

sycl/doc/syclcompat/README.md Outdated Show resolved Hide resolved
sycl/doc/syclcompat/README.md Show resolved Hide resolved
sycl/include/syclcompat/memory.hpp Outdated Show resolved Hide resolved
sycl/include/syclcompat/memory.hpp Outdated Show resolved Hide resolved
sycl/include/syclcompat/memory.hpp Outdated Show resolved Hide resolved
sycl/test-e2e/syclcompat/memory/shared_memory_usmnone.cpp Outdated Show resolved Hide resolved
Co-authored-by: Alberto Cabrera Pérez <[email protected]>
Not allowed to nest q.submit for the memcpy when using buffer support.
Not sure why this was needed.
@Alcpz
Copy link
Contributor

Alcpz commented Oct 23, 2024

LGTM, great work @joeatodd

@joeatodd
Copy link
Contributor Author

@intel/llvm-gatekeepers this is ready to merge 🙏

@martygrant martygrant merged commit 799d267 into intel:sycl Oct 23, 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.

3 participants