Skip to content

[DRAFT] [SYCL][E2E][USM] Add P2P USM residency test for L0 v2 adapter#21944

Draft
ldorau wants to merge 3 commits intointel:syclfrom
ldorau:SYCLE2EUSM_Add_P2P_USM_residency_test_for_L0_v2_adapter
Draft

[DRAFT] [SYCL][E2E][USM] Add P2P USM residency test for L0 v2 adapter#21944
ldorau wants to merge 3 commits intointel:syclfrom
ldorau:SYCLE2EUSM_Add_P2P_USM_residency_test_for_L0_v2_adapter

Conversation

@ldorau
Copy link
Copy Markdown
Contributor

@ldorau ldorau commented May 6, 2026

No description provided.

@ldorau ldorau force-pushed the SYCLE2EUSM_Add_P2P_USM_residency_test_for_L0_v2_adapter branch 2 times, most recently from 07849b5 to 9bdacf8 Compare May 7, 2026 08:11
ldorau added 3 commits May 7, 2026 09:09
- Skip peers with disabled P2P in makeProvider (USM pool creation)
- Add urUsmP2PEnablePeerAccessExp / urUsmP2PDisablePeerAccessExp
- Track per-device peer status in ur_device_handle_t_::peers[]
- Update existing USM pool residency on P2P enable/disable

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
- Fill in three placeholder multi-device tests in memory_residency.cpp
- Tests verify P2P-driven residency: absent-on-peer without P2P,
  enable/disable state machine checks, end-to-end data transfer

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Adds sycl/test-e2e/USM/P2P/p2p_usm_residency.cpp to verify that
the Level Zero v2 adapter restricts USM device memory residency to
only those peer devices for which P2P access has been explicitly
enabled via ext_oneapi_enable_peer_access.

Phase 1 (P2P disabled): allocates 1 MB on dev0 and checks that
dev1 free memory does not decrease, proving the allocation is not
made resident on dev1.

Phase 2 (P2P enabled): allocates 1 MB on dev0 and checks that
dev1 free memory decreases by at least the allocation size,
proving the allocation is resident on dev1.

Also adds the 'two-or-more-gpu-devices' lit feature to
lit.cfg.py, set when sycl-ls reports at least two GPU devices.
The test uses this feature to skip on single-GPU machines.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
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