|
19 | 19 |
|
20 | 20 | /// USM: Implements USM Host allocations using CUDA Pinned Memory
|
21 | 21 | /// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#page-locked-host-memory
|
22 |
| -UR_APIEXPORT ur_result_t UR_APICALL |
23 |
| -urUSMHostAlloc(ur_context_handle_t hContext, const ur_usm_desc_t *pUSMDesc, |
24 |
| - ur_usm_pool_handle_t pool, size_t size, void **ppMem) { |
| 22 | +UR_APIEXPORT ur_result_t UR_APICALL urUSMHostAlloc( |
| 23 | + ur_context_handle_t hContext, const ur_usm_desc_t *pUSMDesc, |
| 24 | + [[maybe_unused]] ur_usm_pool_handle_t pool, size_t size, void **ppMem) { |
25 | 25 | UR_ASSERT(ppMem, UR_RESULT_ERROR_INVALID_NULL_POINTER);
|
26 | 26 | UR_ASSERT(hContext, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
|
27 | 27 |
|
@@ -55,10 +55,10 @@ urUSMHostAlloc(ur_context_handle_t hContext, const ur_usm_desc_t *pUSMDesc,
|
55 | 55 |
|
56 | 56 | /// USM: Implements USM device allocations using a normal CUDA device pointer
|
57 | 57 | ///
|
58 |
| -UR_APIEXPORT ur_result_t UR_APICALL |
59 |
| -urUSMDeviceAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice, |
60 |
| - const ur_usm_desc_t *pUSMDesc, ur_usm_pool_handle_t pool, |
61 |
| - size_t size, void **ppMem) { |
| 58 | +UR_APIEXPORT ur_result_t UR_APICALL urUSMDeviceAlloc( |
| 59 | + ur_context_handle_t hContext, ur_device_handle_t hDevice, |
| 60 | + const ur_usm_desc_t *pUSMDesc, [[maybe_unused]] ur_usm_pool_handle_t pool, |
| 61 | + size_t size, void **ppMem) { |
62 | 62 | UR_ASSERT(ppMem, UR_RESULT_ERROR_INVALID_NULL_POINTER);
|
63 | 63 | UR_ASSERT(hContext, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
|
64 | 64 | UR_ASSERT(hDevice, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
|
@@ -92,10 +92,10 @@ urUSMDeviceAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
|
92 | 92 |
|
93 | 93 | /// USM: Implements USM Shared allocations using CUDA Managed Memory
|
94 | 94 | ///
|
95 |
| -UR_APIEXPORT ur_result_t UR_APICALL |
96 |
| -urUSMSharedAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice, |
97 |
| - const ur_usm_desc_t *pUSMDesc, ur_usm_pool_handle_t pool, |
98 |
| - size_t size, void **ppMem) { |
| 95 | +UR_APIEXPORT ur_result_t UR_APICALL urUSMSharedAlloc( |
| 96 | + ur_context_handle_t hContext, ur_device_handle_t hDevice, |
| 97 | + const ur_usm_desc_t *pUSMDesc, [[maybe_unused]] ur_usm_pool_handle_t pool, |
| 98 | + size_t size, void **ppMem) { |
99 | 99 | UR_ASSERT(ppMem, UR_RESULT_ERROR_INVALID_NULL_POINTER);
|
100 | 100 | UR_ASSERT(hContext, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
|
101 | 101 | UR_ASSERT(hDevice, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
|
|
0 commit comments