@@ -188,8 +188,8 @@ static ur_result_t USMDeviceAllocImpl(void **ResultPtr,
188188 }
189189
190190 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)) ;
193193 if (ZeResult != ZE_RESULT_SUCCESS) {
194194 if (ZeResult == ZE_RESULT_ERROR_UNSUPPORTED_SIZE) {
195195 return UR_RESULT_ERROR_INVALID_USM_SIZE;
@@ -234,8 +234,8 @@ static ur_result_t USMSharedAllocImpl(void **ResultPtr,
234234 }
235235
236236 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)) ;
239239 if (ZeResult != ZE_RESULT_SUCCESS) {
240240 if (ZeResult == ZE_RESULT_ERROR_UNSUPPORTED_SIZE) {
241241 return UR_RESULT_ERROR_INVALID_USM_SIZE;
@@ -268,8 +268,8 @@ static ur_result_t USMHostAllocImpl(void **ResultPtr,
268268 // TODO: translate PI properties to Level Zero flags
269269 ZeStruct<ze_host_mem_alloc_desc_t > ZeHostDesc;
270270 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)) ;
273273 if (ZeResult != ZE_RESULT_SUCCESS) {
274274 if (ZeResult == ZE_RESULT_ERROR_UNSUPPORTED_SIZE) {
275275 return UR_RESULT_ERROR_INVALID_USM_SIZE;
0 commit comments