|
| 1 | +//===--------- image.cpp - NativeCPU Adapter ------------------------------===// |
| 2 | +// |
| 3 | +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | +// See https://llvm.org/LICENSE.txt for license information. |
| 5 | +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | +// |
| 7 | +//===-----------------------------------------------------------------===// |
| 8 | + |
| 9 | +#include "ur/ur.hpp" |
| 10 | + |
| 11 | +UR_APIEXPORT ur_result_t UR_APICALL urUSMPitchedAllocExp( |
| 12 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 13 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 14 | + [[maybe_unused]] const ur_usm_desc_t *pUSMDesc, |
| 15 | + [[maybe_unused]] ur_usm_pool_handle_t pool, |
| 16 | + [[maybe_unused]] size_t widthInBytes, [[maybe_unused]] size_t height, |
| 17 | + [[maybe_unused]] size_t elementSizeBytes, [[maybe_unused]] void **ppMem, |
| 18 | + [[maybe_unused]] size_t *pResultPitch) { |
| 19 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 20 | +} |
| 21 | + |
| 22 | +UR_APIEXPORT ur_result_t UR_APICALL |
| 23 | +urBindlessImagesUnsampledImageHandleDestroyExp( |
| 24 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 25 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 26 | + [[maybe_unused]] ur_exp_image_handle_t hImage) { |
| 27 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 28 | +} |
| 29 | + |
| 30 | +UR_APIEXPORT ur_result_t UR_APICALL |
| 31 | +urBindlessImagesSampledImageHandleDestroyExp( |
| 32 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 33 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 34 | + [[maybe_unused]] ur_exp_image_handle_t hImage) { |
| 35 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 36 | +} |
| 37 | + |
| 38 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImageAllocateExp( |
| 39 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 40 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 41 | + [[maybe_unused]] const ur_image_format_t *pImageFormat, |
| 42 | + [[maybe_unused]] const ur_image_desc_t *pImageDesc, |
| 43 | + [[maybe_unused]] ur_exp_image_mem_handle_t *phImageMem) { |
| 44 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 45 | +} |
| 46 | + |
| 47 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImageFreeExp( |
| 48 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 49 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 50 | + [[maybe_unused]] ur_exp_image_mem_handle_t hImageMem) { |
| 51 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 52 | +} |
| 53 | + |
| 54 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp( |
| 55 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 56 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 57 | + [[maybe_unused]] ur_exp_image_mem_handle_t hImageMem, |
| 58 | + [[maybe_unused]] const ur_image_format_t *pImageFormat, |
| 59 | + [[maybe_unused]] const ur_image_desc_t *pImageDesc, |
| 60 | + [[maybe_unused]] ur_mem_handle_t *phMem, |
| 61 | + [[maybe_unused]] ur_exp_image_handle_t *phImage) { |
| 62 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 63 | +} |
| 64 | + |
| 65 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesSampledImageCreateExp( |
| 66 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 67 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 68 | + [[maybe_unused]] ur_exp_image_mem_handle_t hImageMem, |
| 69 | + [[maybe_unused]] const ur_image_format_t *pImageFormat, |
| 70 | + [[maybe_unused]] const ur_image_desc_t *pImageDesc, |
| 71 | + [[maybe_unused]] ur_sampler_handle_t hSampler, |
| 72 | + [[maybe_unused]] ur_mem_handle_t *phMem, |
| 73 | + [[maybe_unused]] ur_exp_image_handle_t *phImage) { |
| 74 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 75 | +} |
| 76 | + |
| 77 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImageCopyExp( |
| 78 | + [[maybe_unused]] ur_queue_handle_t hQueue, [[maybe_unused]] void *pDst, |
| 79 | + [[maybe_unused]] void *pSrc, |
| 80 | + [[maybe_unused]] const ur_image_format_t *pImageFormat, |
| 81 | + [[maybe_unused]] const ur_image_desc_t *pImageDesc, |
| 82 | + [[maybe_unused]] ur_exp_image_copy_flags_t imageCopyFlags, |
| 83 | + [[maybe_unused]] ur_rect_offset_t srcOffset, |
| 84 | + [[maybe_unused]] ur_rect_offset_t dstOffset, |
| 85 | + [[maybe_unused]] ur_rect_region_t copyExtent, |
| 86 | + [[maybe_unused]] ur_rect_region_t hostExtent, |
| 87 | + [[maybe_unused]] uint32_t numEventsInWaitList, |
| 88 | + [[maybe_unused]] const ur_event_handle_t *phEventWaitList, |
| 89 | + [[maybe_unused]] ur_event_handle_t *phEvent) { |
| 90 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 91 | +} |
| 92 | + |
| 93 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImageGetInfoExp( |
| 94 | + [[maybe_unused]] ur_exp_image_mem_handle_t hImageMem, |
| 95 | + [[maybe_unused]] ur_image_info_t propName, |
| 96 | + [[maybe_unused]] void *pPropValue, [[maybe_unused]] size_t *pPropSizeRet) { |
| 97 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 98 | +} |
| 99 | + |
| 100 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesMipmapGetLevelExp( |
| 101 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 102 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 103 | + [[maybe_unused]] ur_exp_image_mem_handle_t hImageMem, |
| 104 | + [[maybe_unused]] uint32_t mipmapLevel, |
| 105 | + [[maybe_unused]] ur_exp_image_mem_handle_t *phImageMem) { |
| 106 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 107 | +} |
| 108 | + |
| 109 | +UR_APIEXPORT ur_result_t UR_APICALL |
| 110 | +urBindlessImagesMipmapFreeExp([[maybe_unused]] ur_context_handle_t hContext, |
| 111 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 112 | + [[maybe_unused]] ur_exp_image_mem_handle_t hMem) { |
| 113 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 114 | +} |
| 115 | + |
| 116 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImportOpaqueFDExp( |
| 117 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 118 | + [[maybe_unused]] ur_device_handle_t hDevice, [[maybe_unused]] size_t size, |
| 119 | + [[maybe_unused]] ur_exp_interop_mem_desc_t *pInteropMemDesc, |
| 120 | + [[maybe_unused]] ur_exp_interop_mem_handle_t *phInteropMem) { |
| 121 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 122 | +} |
| 123 | + |
| 124 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesMapExternalArrayExp( |
| 125 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 126 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 127 | + [[maybe_unused]] const ur_image_format_t *pImageFormat, |
| 128 | + [[maybe_unused]] const ur_image_desc_t *pImageDesc, |
| 129 | + [[maybe_unused]] ur_exp_interop_mem_handle_t hInteropMem, |
| 130 | + [[maybe_unused]] ur_exp_image_mem_handle_t *phImageMem) { |
| 131 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 132 | +} |
| 133 | + |
| 134 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesReleaseInteropExp( |
| 135 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 136 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 137 | + [[maybe_unused]] ur_exp_interop_mem_handle_t hInteropMem) { |
| 138 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 139 | +} |
| 140 | + |
| 141 | +UR_APIEXPORT ur_result_t UR_APICALL |
| 142 | +urBindlessImagesImportExternalSemaphoreOpaqueFDExp( |
| 143 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 144 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 145 | + [[maybe_unused]] ur_exp_interop_semaphore_desc_t *pInteropSemaphoreDesc, |
| 146 | + [[maybe_unused]] ur_exp_interop_semaphore_handle_t *phInteropSemaphore) { |
| 147 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 148 | +} |
| 149 | + |
| 150 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesDestroyExternalSemaphoreExp( |
| 151 | + [[maybe_unused]] ur_context_handle_t hContext, |
| 152 | + [[maybe_unused]] ur_device_handle_t hDevice, |
| 153 | + [[maybe_unused]] ur_exp_interop_semaphore_handle_t hInteropSemaphore) { |
| 154 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 155 | +} |
| 156 | + |
| 157 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesWaitExternalSemaphoreExp( |
| 158 | + [[maybe_unused]] ur_queue_handle_t hQueue, |
| 159 | + [[maybe_unused]] ur_exp_interop_semaphore_handle_t hSemaphore, |
| 160 | + [[maybe_unused]] uint32_t numEventsInWaitList, |
| 161 | + [[maybe_unused]] const ur_event_handle_t *phEventWaitList, |
| 162 | + [[maybe_unused]] ur_event_handle_t *phEvent) { |
| 163 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 164 | +} |
| 165 | + |
| 166 | +UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesSignalExternalSemaphoreExp( |
| 167 | + [[maybe_unused]] ur_queue_handle_t hQueue, |
| 168 | + [[maybe_unused]] ur_exp_interop_semaphore_handle_t hSemaphore, |
| 169 | + [[maybe_unused]] uint32_t numEventsInWaitList, |
| 170 | + [[maybe_unused]] const ur_event_handle_t *phEventWaitList, |
| 171 | + [[maybe_unused]] ur_event_handle_t *phEvent) { |
| 172 | + return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; |
| 173 | +} |
0 commit comments