@@ -27,7 +27,7 @@ urUSMHostAlloc(ur_context_handle_t hContext, const ur_usm_desc_t *pUSMDesc,
2727 UR_RESULT_ERROR_INVALID_VALUE);
2828
2929 if (!hPool) {
30- return USMHostAllocImpl (ppMem, hContext, nullptr , size, alignment);
30+ return USMHostAllocImpl (ppMem, hContext, /* flags */ 0 , size, alignment);
3131 }
3232
3333 return umfPoolMallocHelper (hPool, ppMem, size, alignment);
@@ -43,7 +43,7 @@ urUSMDeviceAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
4343 UR_RESULT_ERROR_INVALID_VALUE);
4444
4545 if (!hPool) {
46- return USMDeviceAllocImpl (ppMem, hContext, hDevice, nullptr , size,
46+ return USMDeviceAllocImpl (ppMem, hContext, hDevice, /* flags */ 0 , size,
4747 alignment);
4848 }
4949
@@ -60,8 +60,8 @@ urUSMSharedAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
6060 UR_RESULT_ERROR_INVALID_VALUE);
6161
6262 if (!hPool) {
63- return USMSharedAllocImpl (ppMem, hContext, hDevice, nullptr , nullptr , size ,
64- alignment);
63+ return USMSharedAllocImpl (ppMem, hContext, hDevice, /* host flags */ 0 ,
64+ /* device flags */ 0 , size, alignment);
6565 }
6666
6767 return umfPoolMallocHelper (hPool, ppMem, size, alignment);
@@ -105,7 +105,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMFree(ur_context_handle_t hContext,
105105
106106ur_result_t USMDeviceAllocImpl (void **ResultPtr, ur_context_handle_t ,
107107 ur_device_handle_t Device,
108- ur_usm_device_mem_flags_t * , size_t Size,
108+ ur_usm_device_mem_flags_t , size_t Size,
109109 [[maybe_unused]] uint32_t Alignment) {
110110 try {
111111 ScopedContext Active (Device);
@@ -120,8 +120,8 @@ ur_result_t USMDeviceAllocImpl(void **ResultPtr, ur_context_handle_t,
120120
121121ur_result_t USMSharedAllocImpl (void **ResultPtr, ur_context_handle_t ,
122122 ur_device_handle_t Device,
123- ur_usm_host_mem_flags_t * ,
124- ur_usm_device_mem_flags_t * , size_t Size,
123+ ur_usm_host_mem_flags_t ,
124+ ur_usm_device_mem_flags_t , size_t Size,
125125 [[maybe_unused]] uint32_t Alignment) {
126126 try {
127127 ScopedContext Active (Device);
@@ -136,7 +136,7 @@ ur_result_t USMSharedAllocImpl(void **ResultPtr, ur_context_handle_t,
136136
137137ur_result_t USMHostAllocImpl (void **ResultPtr,
138138 [[maybe_unused]] ur_context_handle_t Context,
139- ur_usm_host_mem_flags_t * , size_t Size,
139+ ur_usm_host_mem_flags_t , size_t Size,
140140 [[maybe_unused]] uint32_t Alignment) {
141141 try {
142142 UR_CHECK_ERROR (hipHostMalloc (ResultPtr, Size));
@@ -309,19 +309,19 @@ umf_result_t USMMemoryProvider::get_min_page_size(void *Ptr, size_t *PageSize) {
309309
310310ur_result_t USMSharedMemoryProvider::allocateImpl (void **ResultPtr, size_t Size,
311311 uint32_t Alignment) {
312- return USMSharedAllocImpl (ResultPtr, Context, Device, nullptr , nullptr , Size ,
313- Alignment);
312+ return USMSharedAllocImpl (ResultPtr, Context, Device, /* host flags */ 0 ,
313+ /* device flags */ 0 , Size, Alignment);
314314}
315315
316316ur_result_t USMDeviceMemoryProvider::allocateImpl (void **ResultPtr, size_t Size,
317317 uint32_t Alignment) {
318- return USMDeviceAllocImpl (ResultPtr, Context, Device, nullptr , Size,
318+ return USMDeviceAllocImpl (ResultPtr, Context, Device, /* flags */ 0 , Size,
319319 Alignment);
320320}
321321
322322ur_result_t USMHostMemoryProvider::allocateImpl (void **ResultPtr, size_t Size,
323323 uint32_t Alignment) {
324- return USMHostAllocImpl (ResultPtr, Context, nullptr , Size, Alignment);
324+ return USMHostAllocImpl (ResultPtr, Context, /* flags */ 0 , Size, Alignment);
325325}
326326
327327ur_usm_pool_handle_t_::ur_usm_pool_handle_t_ (ur_context_handle_t Context,
0 commit comments