@@ -187,9 +187,9 @@ static ur_result_t USMDeviceAllocImpl(void **ResultPtr,
187
187
ZeDesc.pNext = &RelaxedDesc;
188
188
}
189
189
190
- ze_result_t ZeResult =
191
- ZE_CALL_NOCHECK ( zeMemAllocDevice (Context->ZeContext , &ZeDesc, Size,
192
- Alignment, Device->ZeDevice , ResultPtr));
190
+ ze_result_t ZeResult = ZE_CALL_NOCHECK (
191
+ 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 = ZE_CALL_NOCHECK (
237
- zeMemAllocShared (Context->ZeContext , &ZeDevDesc, &ZeHostDesc, Size,
238
- Alignment, Device->ZeDevice , ResultPtr));
237
+ 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,9 @@ 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 = ZE_CALL_NOCHECK (zeMemAllocHost (
272
- Context->ZeContext , &ZeHostDesc, Size, Alignment, ResultPtr));
271
+ ze_result_t ZeResult =
272
+ ZE_CALL_NOCHECK (zeMemAllocHost, (Context->ZeContext , &ZeHostDesc, Size,
273
+ Alignment, ResultPtr));
273
274
if (ZeResult != ZE_RESULT_SUCCESS) {
274
275
if (ZeResult == ZE_RESULT_ERROR_UNSUPPORTED_SIZE) {
275
276
return UR_RESULT_ERROR_INVALID_USM_SIZE;
0 commit comments