Skip to content

[UR][L0v2] Remove checkP2PAccess() from appendUSMMemcpy()#22130

Open
ldorau wants to merge 1 commit into
intel:syclfrom
ldorau:URL0v2_Remove_checkP2PAccess_from_appendUSMMemcpy
Open

[UR][L0v2] Remove checkP2PAccess() from appendUSMMemcpy()#22130
ldorau wants to merge 1 commit into
intel:syclfrom
ldorau:URL0v2_Remove_checkP2PAccess_from_appendUSMMemcpy

Conversation

@ldorau
Copy link
Copy Markdown
Contributor

@ldorau ldorau commented May 27, 2026

The checkP2PAccess() helper in command_list_manager.cpp rejected
device-to-device USM memcpy operations between devices without P2P
access enabled, returning UR_RESULT_ERROR_INVALID_OPERATION.

Remove the check: P2P access controls memory residency (pinning), not
hardware data transfer. Level Zero can move data between devices via the
interconnect regardless of residency state, so blocking the copy at the
UR level is unnecessary and overly restrictive.

Update tests to match the new behavior.

@ldorau ldorau requested review from a team as code owners May 27, 2026 13:58
@ldorau ldorau requested a review from slawekptak May 27, 2026 13:58
@ldorau ldorau changed the title [UR][L0v2] Remove checkP2PAccess() from appendUSMMemcpy [UR][L0v2] Remove checkP2PAccess() from appendUSMMemcpy() May 27, 2026
@ldorau ldorau requested review from kswiecicki and pbalcer May 27, 2026 14:38
The checkP2PAccess() helper in command_list_manager.cpp rejected
device-to-device USM memcpy operations between devices without P2P
access enabled, returning UR_RESULT_ERROR_INVALID_OPERATION.

Remove the check: P2P access controls memory residency (pinning), not
hardware data transfer. Level Zero can move data between devices via the
interconnect regardless of residency state, so blocking the copy at the
UR level is unnecessary and overly restrictive.

Update tests to match the new behavior.

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