Skip to content

Commit 06d0c05

Browse files
authored
Merge pull request #1786 from JackAKirk/l0-fix-enable-p2p
[L0] Return success on enable/disable p2p.
2 parents b5dc5b6 + 06ab0e2 commit 06d0c05

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

source/adapters/hip/device.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
549549
// native asserts are in progress
550550
std::string SupportedExtensions = "";
551551
SupportedExtensions += "pi_ext_intel_devicelib_assert ";
552+
SupportedExtensions += "ur_exp_usm_p2p ";
552553

553554
int RuntimeVersion = 0;
554555
UR_CHECK_ERROR(hipRuntimeGetVersion(&RuntimeVersion));

source/adapters/level_zero/device.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
247247
SupportedExtensions += ("ur_exp_command_buffer ");
248248
// Return supported for the UR multi-device compile experimental feature
249249
SupportedExtensions += ("ur_exp_multi_device_compile ");
250+
SupportedExtensions += ("ur_exp_usm_p2p ");
250251

251252
return ReturnValue(SupportedExtensions.c_str());
252253
}

source/adapters/level_zero/usm_p2p.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PEnablePeerAccessExp(
1717
std::ignore = commandDevice;
1818
std::ignore = peerDevice;
1919

20-
logger::error(logger::LegacyMessage("[UR][L0] {} function not implemented!"),
21-
"{} function not implemented!", __FUNCTION__);
22-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
20+
// L0 has peer devices enabled by default
21+
return UR_RESULT_SUCCESS;
2322
}
2423

2524
UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PDisablePeerAccessExp(
@@ -28,9 +27,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PDisablePeerAccessExp(
2827
std::ignore = commandDevice;
2928
std::ignore = peerDevice;
3029

31-
logger::error(logger::LegacyMessage("[UR][L0] {} function not implemented!"),
32-
"{} function not implemented!", __FUNCTION__);
33-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
30+
// L0 has peer devices enabled by default
31+
return UR_RESULT_SUCCESS;
3432
}
3533

3634
UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PPeerAccessGetInfoExp(

0 commit comments

Comments
 (0)