Files
compute-runtime/level_zero/doc/experimental_extensions/DRIVER_EXPERIMENTAL_EXTENSIONS.md
Jaime Arteaga 787b71c7d0 Add multi-CCS mode documentation for ZEX_NUMBER_OF_CCS
This documentation explains functional and performance considerations
when selecting a multi-CCS mode on PVC.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-08-10 18:56:12 +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