Skip to content

Commit c40a8f7

Browse files
committed
[L0] fix return type for urUsmP2PPeerAccessGetInfoExp
and implement it for L0 v2
1 parent 93e6d8c commit c40a8f7

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

source/adapters/level_zero/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ if(UR_BUILD_ADAPTER_L0_V2)
136136
${CMAKE_CURRENT_SOURCE_DIR}/program.cpp
137137
${CMAKE_CURRENT_SOURCE_DIR}/helpers/kernel_helpers.cpp
138138
${CMAKE_CURRENT_SOURCE_DIR}/helpers/memory_helpers.cpp
139+
${CMAKE_CURRENT_SOURCE_DIR}/usm_p2p.cpp
139140
${CMAKE_CURRENT_SOURCE_DIR}/../../ur/ur.cpp
140141
# v2-only sources
141142
${CMAKE_CURRENT_SOURCE_DIR}/v2/command_list_cache.hpp

source/adapters/level_zero/v2/api.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -622,24 +622,4 @@ ur_result_t urUSMReleaseExp(ur_context_handle_t hContext, void *pMem) {
622622
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
623623
}
624624

625-
ur_result_t urUsmP2PEnablePeerAccessExp(ur_device_handle_t commandDevice,
626-
ur_device_handle_t peerDevice) {
627-
logger::error("{} function not implemented!", __FUNCTION__);
628-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
629-
}
630-
631-
ur_result_t urUsmP2PDisablePeerAccessExp(ur_device_handle_t commandDevice,
632-
ur_device_handle_t peerDevice) {
633-
logger::error("{} function not implemented!", __FUNCTION__);
634-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
635-
}
636-
637-
ur_result_t urUsmP2PPeerAccessGetInfoExp(ur_device_handle_t commandDevice,
638-
ur_device_handle_t peerDevice,
639-
ur_exp_peer_info_t propName,
640-
size_t propSize, void *pPropValue,
641-
size_t *pPropSizeRet) {
642-
logger::error("{} function not implemented!", __FUNCTION__);
643-
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
644-
}
645625
} // namespace ur::level_zero

0 commit comments

Comments
 (0)