@@ -188,8 +188,8 @@ static ur_result_t USMDeviceAllocImpl(void **ResultPtr,
188
188
}
189
189
190
190
ze_result_t ZeResult =
191
- zeMemAllocDevice (Context->ZeContext , &ZeDesc, Size, Alignment,
192
- Device->ZeDevice , ResultPtr);
191
+ ZE_CALL_NOCHECK ( zeMemAllocDevice (Context->ZeContext , &ZeDesc, Size, Alignment,
192
+ Device->ZeDevice , ResultPtr)) ;
193
193
if (ZeResult != ZE_RESULT_SUCCESS) {
194
194
if (ZeResult == ZE_RESULT_ERROR_UNSUPPORTED_SIZE) {
195
195
return UR_RESULT_ERROR_INVALID_USM_SIZE;
@@ -234,8 +234,8 @@ static ur_result_t USMSharedAllocImpl(void **ResultPtr,
234
234
}
235
235
236
236
ze_result_t ZeResult =
237
- zeMemAllocShared (Context->ZeContext , &ZeDevDesc, &ZeHostDesc, Size,
238
- Alignment, Device->ZeDevice , ResultPtr);
237
+ ZE_CALL_NOCHECK ( zeMemAllocShared (Context->ZeContext , &ZeDevDesc, &ZeHostDesc, Size,
238
+ Alignment, Device->ZeDevice , ResultPtr)) ;
239
239
if (ZeResult != ZE_RESULT_SUCCESS) {
240
240
if (ZeResult == ZE_RESULT_ERROR_UNSUPPORTED_SIZE) {
241
241
return UR_RESULT_ERROR_INVALID_USM_SIZE;
@@ -268,8 +268,8 @@ static ur_result_t USMHostAllocImpl(void **ResultPtr,
268
268
// TODO: translate PI properties to Level Zero flags
269
269
ZeStruct<ze_host_mem_alloc_desc_t > ZeHostDesc;
270
270
ZeHostDesc.flags = 0 ;
271
- ze_result_t ZeResult = zeMemAllocHost (Context->ZeContext , &ZeHostDesc, Size,
272
- Alignment, ResultPtr);
271
+ ze_result_t ZeResult = ZE_CALL_NOCHECK ( zeMemAllocHost (Context->ZeContext , &ZeHostDesc, Size,
272
+ Alignment, ResultPtr)) ;
273
273
if (ZeResult != ZE_RESULT_SUCCESS) {
274
274
if (ZeResult == ZE_RESULT_ERROR_UNSUPPORTED_SIZE) {
275
275
return UR_RESULT_ERROR_INVALID_USM_SIZE;
0 commit comments