[DRAFT] [SYCL][E2E][USM] Add P2P USM residency test for L0 v2 adapter#21944
Draft
ldorau wants to merge 3 commits intointel:syclfrom
Draft
[DRAFT] [SYCL][E2E][USM] Add P2P USM residency test for L0 v2 adapter#21944ldorau wants to merge 3 commits intointel:syclfrom
ldorau wants to merge 3 commits intointel:syclfrom
Conversation
07849b5 to
9bdacf8
Compare
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.