|
| 1 | + |
| 2 | +<% |
| 3 | + OneApi=tags['$OneApi'] |
| 4 | + x=tags['$x'] |
| 5 | + X=x.upper() |
| 6 | +%> |
| 7 | + |
| 8 | +.. _exp-bindless-images: |
| 9 | + |
| 10 | +================================================================================ |
| 11 | +Bindless Images |
| 12 | +================================================================================ |
| 13 | + |
| 14 | +.. warning:: |
| 15 | + |
| 16 | + Experimental features: |
| 17 | + |
| 18 | + * May be replaced, updated, or removed at any time. |
| 19 | + * Do not require maintaining API/ABI stability of their own additions over |
| 20 | + time. |
| 21 | + * Do not require conformance testing of their own additions. |
| 22 | + |
| 23 | +================================================================================ |
| 24 | +Terminology |
| 25 | +================================================================================ |
| 26 | +For the purposes of this document, a bindless image is one which provides |
| 27 | +access to the underlying data via image reference handles. At the application |
| 28 | +level, this allows the user to implement programs where the number of images |
| 29 | +is not known at compile-time, and store all handles to images -- irrespective |
| 30 | +of varying formats and layouts -- in some container, e.g. a dynamic array. |
| 31 | + |
| 32 | +================================================================================ |
| 33 | +Motivation |
| 34 | +================================================================================ |
| 35 | +The `DPC++ bindless images extension <https://github.com/intel/llvm/pull/8307>`_ |
| 36 | +has sought to provide the flexibility of bindless images at the SYCL |
| 37 | +application level. This extension has been implemented using the CUDA backend of |
| 38 | +the DPC++ PI. With the movement to migrate from PI to the Unified Runtime in |
| 39 | +DPC++, as seen in `Port CUDA plugin to Unified Runtime |
| 40 | +<https://github.com/intel/llvm/pull/9512/>`_, the Unified Runtime's support for |
| 41 | +this experimental feature would enable the DPC++ bindless images extension to be |
| 42 | +migrated to UR without issue. |
| 43 | + |
| 44 | +================================================================================ |
| 45 | +Overview |
| 46 | +================================================================================ |
| 47 | + |
| 48 | +In this document, we propose the following experimental additions to the Unified |
| 49 | +Runtime: |
| 50 | + |
| 51 | +* Bindless images support |
| 52 | + |
| 53 | + * Sampled images |
| 54 | + * Unsampled images |
| 55 | + * Mipmaps |
| 56 | + * USM backed images |
| 57 | + |
| 58 | +* Interoperability support |
| 59 | + |
| 60 | + * External memory |
| 61 | + * Semaphores |
| 62 | + |
| 63 | +================================================================================ |
| 64 | +API |
| 65 | +================================================================================ |
| 66 | + |
| 67 | +-------------------------------------------------------------------------------- |
| 68 | +Definitions |
| 69 | +-------------------------------------------------------------------------------- |
| 70 | + |
| 71 | +* ${x}_exp_sampler_mip_properties_t |
| 72 | + |
| 73 | +The following definitions will be implementation-dependent |
| 74 | + |
| 75 | +* ${x}_exp_image_handle_t |
| 76 | +* ${x}_exp_image_mem_handle_t |
| 77 | +* ${x}_exp_interop_mem_handle_t |
| 78 | +* ${x}_exp_interop_semaphore_handle_t |
| 79 | + |
| 80 | +-------------------------------------------------------------------------------- |
| 81 | +Enums |
| 82 | +-------------------------------------------------------------------------------- |
| 83 | + |
| 84 | +* ${x}_device_info_t |
| 85 | +* ${x}_command_t |
| 86 | +* ${x}_exp_image_copy_flags_t |
| 87 | + |
| 88 | +-------------------------------------------------------------------------------- |
| 89 | +Interface |
| 90 | +-------------------------------------------------------------------------------- |
| 91 | + |
| 92 | +* USM |
| 93 | + * ${x}USMPitchedAllocExp |
| 94 | + |
| 95 | +* Bindless Images |
| 96 | + * ${x}BindlessImagesUnsampledImageHandleDestroyExp |
| 97 | + * ${x}BindlessImagesSampledImageHandleDestroyExp |
| 98 | + * ${x}BindlessImagesImageAllocateExp |
| 99 | + * ${x}BindlessImagesImageFreeExp |
| 100 | + * ${x}BindlessImagesUnsampledImageCreateExp |
| 101 | + * ${x}BindlessImagesSampledImageCreateExp |
| 102 | + * ${x}BindlessImagesImageCopyExp |
| 103 | + * ${x}BindlessImagesImageGetInfoExp |
| 104 | + * ${x}BindlessImagesMipmapGetLevelExp |
| 105 | + * ${x}BindlessImagesMipmapFreeExp |
| 106 | + |
| 107 | +* Interop |
| 108 | + * ${x}BindlessImagesImportOpaqueFDExp |
| 109 | + * ${x}BindlessImagesMapExternalArrayExp |
| 110 | + * ${x}BindlessImagesReleaseInteropExp |
| 111 | + * ${x}BindlessImagesImportExternalSemaphoreOpaqueFDExp |
| 112 | + * ${x}BindlessImagesDestroyExternalSemaphoreExp |
| 113 | + * ${x}BindlessImagesWaitExternalSemaphoreExp |
| 114 | + * ${x}BindlessImagesSignalExternalSemaphoreExp |
| 115 | + |
| 116 | + |
| 117 | +================================================================================ |
| 118 | +Changelog |
| 119 | +================================================================================ |
| 120 | + |
| 121 | ++-----------+------------------------+ |
| 122 | +| Revision | Changes | |
| 123 | ++===========+========================+ |
| 124 | +| 1 | Intial Draft | |
| 125 | ++-----------+------------------------+ |
| 126 | + |
| 127 | +================================================================================ |
| 128 | +Contributors |
| 129 | +================================================================================ |
| 130 | + |
| 131 | +* Isaac Ault `isaac.ault@codeplay.com <isaac.ault@codeplay.com>`_ |
| 132 | +* Duncan Brawley `duncan.brawley@codeplay.com <duncan.brawley@codeplay.com>`_ |
| 133 | +* Przemek Malon `przemek.malon@codeplay.com <przemek.malon@codeplay.com>`_ |
| 134 | +* Chedy Najjar `chedy.najjar@codeplay.com <chedy.najjar@codeplay.com>`_ |
| 135 | +* Sean Stirling `sean.stirling@codeplay.com <sean.stirling@codeplay.com>`_ |
| 136 | +* Peter Zuzek `peter@codeplay.com peter@codeplay.com <peter@codeplay.com>`_ |
0 commit comments