File tree 2 files changed +6
-2
lines changed
source/adapters/level_zero
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,10 @@ template <> ze_structure_type_t getZeStructureType<ze_device_properties_t>() {
254
254
return ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES;
255
255
}
256
256
template <>
257
+ ze_structure_type_t getZeStructureType<ze_device_p2p_properties_t >() {
258
+ return ZE_STRUCTURE_TYPE_DEVICE_P2P_PROPERTIES;
259
+ }
260
+ template <>
257
261
ze_structure_type_t getZeStructureType<ze_device_compute_properties_t >() {
258
262
return ZE_STRUCTURE_TYPE_DEVICE_COMPUTE_PROPERTIES;
259
263
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PPeerAccessGetInfoExp(
41
41
switch (propName) {
42
42
case UR_EXP_PEER_INFO_UR_PEER_ACCESS_SUPPORTED: {
43
43
bool p2pAccessSupported = false ;
44
- ze_device_p2p_properties_t p2pProperties;
44
+ ZeStruct< ze_device_p2p_properties_t > p2pProperties;
45
45
ZE2UR_CALL (zeDeviceGetP2PProperties,
46
46
(commandDevice->ZeDevice , peerDevice->ZeDevice , &p2pProperties));
47
47
if (p2pProperties.flags & ZE_DEVICE_P2P_PROPERTY_FLAG_ACCESS) {
@@ -55,7 +55,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PPeerAccessGetInfoExp(
55
55
break ;
56
56
}
57
57
case UR_EXP_PEER_INFO_UR_PEER_ATOMICS_SUPPORTED: {
58
- ze_device_p2p_properties_t p2pProperties;
58
+ ZeStruct< ze_device_p2p_properties_t > p2pProperties;
59
59
ZE2UR_CALL (zeDeviceGetP2PProperties,
60
60
(commandDevice->ZeDevice , peerDevice->ZeDevice , &p2pProperties));
61
61
propertyValue = p2pProperties.flags & ZE_DEVICE_P2P_PROPERTY_FLAG_ATOMICS;
You can’t perform that action at this time.
0 commit comments