Files
compute-runtime/level_zero/doc/experimental_extensions/DRIVER_EXPERIMENTAL_EXTENSIONS.md
Mateusz Jablonski f46d2dcfb3 documentation: correct links to L0 specification
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-10-09 17:47:51 +02:00

1.3 KiB

Level Zero GPU Driver Driver Experimental Extensions

Introduction

The following document describes the driver experimental extensions implemented in the Level Zero Intel(R) GPU driver. These extensions are meant to test and/or gather feedback on interfaces before they could potentially be added Level Zero specification, as well to provide access to functionality specific to Intel(R) GPUs.

Driver extensions may be defined as APIs (interfaces), flags, or environment variables. In the case of interfaces, these shall be accessed through zeDriverGetExtensionFunctionAddress. Sample code:

typedef ze_result_t (*pFnzexMemGetIpcHandles)(ze_context_handle_t, const void *, uint32_t *, ze_ipc_mem_handle_t *);
...

pFnzexMemGetIpcHandles zexMemOpenIpcHandlePointer = nullptr;
ze_result_t res = zeDriverGetExtensionFunctionAddress(hDriver, "zexMemOpenIpcHandles", reinterpret_cast<void **>(&zexMemOpenIpcHandlePointer)));

Multiple IPC Handles

Multi-CCS Modes