Skip to content

[SYCL][Test] Add e2e tests for register_host_memory with mmap and huge pages#22404

Draft
againull wants to merge 2 commits into
syclfrom
add_mmap_tests
Draft

[SYCL][Test] Add e2e tests for register_host_memory with mmap and huge pages#22404
againull wants to merge 2 commits into
syclfrom
add_mmap_tests

Conversation

@againull

Copy link
Copy Markdown
Contributor

Add two end-to-end tests for sycl_ext_oneapi_register_host_memory covering
host memory obtained from the OS mapping API:

  • register_host_memory_mmap.cpp: anonymous private read/write mapping,
    anonymous read-only mapping (mprotect + read_only property), and
    file-backed MAP_SHARED mapping.
  • register_host_memory_huge_pages.cpp: explicit huge pages via
    mmap(MAP_HUGETLB) and transparent huge pages via madvise(MADV_HUGEPAGE).
    The explicit huge-page path self-skips when no huge pages are reserved.

Assisted-By: Claude

Base automatically changed from reg_mem_sycl_rt to sycl June 25, 2026 22:54
againull added 2 commits June 25, 2026 16:07
…e pages

Add two end-to-end tests for sycl_ext_oneapi_register_host_memory covering
host memory obtained from the OS mapping API:

- register_host_memory_mmap.cpp: anonymous private read/write mapping,
  anonymous read-only mapping (mprotect + read_only property), and
  file-backed MAP_SHARED mapping.
- register_host_memory_huge_pages.cpp: explicit huge pages via
  mmap(MAP_HUGETLB) and transparent huge pages via madvise(MADV_HUGEPAGE).
  The explicit huge-page path self-skips when no huge pages are reserved.

Assisted-By: Claude
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.

1 participant