Skip to content

Commit 18b0fdb

Browse files
committed
Return success on enable/disable p2p.
Signed-off-by: JackAKirk <[email protected]>
1 parent f040b1f commit 18b0fdb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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)