Skip to content

[SYCL][Doc] Update sycl_ext_oneapi_register_host_memory spec#22406

Merged
againull merged 4 commits into
intel:syclfrom
againull:update_spec
Jun 25, 2026
Merged

[SYCL][Doc] Update sycl_ext_oneapi_register_host_memory spec#22406
againull merged 4 commits into
intel:syclfrom
againull:update_spec

Conversation

@againull

Copy link
Copy Markdown
Contributor

No description provided.

@againull againull requested a review from a team as a code owner June 23, 2026 18:42
@againull

Copy link
Copy Markdown
Contributor Author

@gmlueck I'm sorry, #22324 got merged without fully addressing your review.

I've tested common scenarios with mmap and huge pages locally
#22404
and they work.

So I was wondering if adding the note as in this PR makes sense and will address the concern.

provided the range satisfies the requirements above and can be registered by the
implementation. This extension does not guarantee support for every
operating-system mapping type, protection mode, or backing object. _{endnote}_]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't want the SYCL specification to provide more guarantees that the Level Zero spec. Right now the proposed Level Zero spec only guarantees that that you can register heap memory, automatic (stack) memory, and static (global) storage memory. Until / unless Level Zero provides more guarantees, I think this is all we can guarantee in SYCL also.

I think we could clarify the restrictions by adding a precondition like:

  • The memory range is one of the following storage durations: heap memory, automatic (stack), or static (global) storage

@againull againull Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Applied your suggestion with a note similar to L0 spec. Please let me now if the note should be removed.

@againull againull requested a review from gmlueck June 24, 2026 20:20
Comment thread sycl/doc/extensions/proposed/sycl_ext_oneapi_register_host_memory.asciidoc Outdated
againull and others added 2 commits June 25, 2026 08:45
…ory.asciidoc

Co-authored-by: Greg Lueck <gregory.m.lueck@intel.com>
@againull againull merged commit c198922 into intel:sycl Jun 25, 2026
3 of 4 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.

2 participants