You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,21 +32,25 @@ See `ze*_ddi.h` for definitions of `ze_dditable_driver_t`, `zet_dditable_driver_
32
32
`ze_handle_t` is defined in ze_ddi_common.h. To use it, include `ze_ddi_common.h`.
33
33
34
34
Handle Structures:
35
-
~~~~~~~~~~~~~~~~~
35
+
~~~~~~~~~~~~~~~~~~
36
36
37
37
/// @brief Handle with pointer to Dispatch Container allocated by the driver at the beginning of every L0 Core handle
38
-
typedef struct _ze_handle_t
39
-
{
40
-
ze_dditable_driver_t *pCore; // [in] pointer to _ze_dditable_t_ object related to this handle
41
-
zet_dditable_driver_t *pTools; // [in] pointer to _zet_dditable_t_ object related to this handle
42
-
zes_dditable_driver_t *pSysman; // [in] pointer to _zes_dditable_t_ object related to this handle
43
-
} ze_handle_t;
38
+
39
+
.. code-block:: c
40
+
41
+
typedef struct _ze_handle_t
42
+
{
43
+
ze_dditable_driver_t *pCore; // [in] pointer to _ze_dditable_t_ object related to this handle
44
+
zet_dditable_driver_t *pTools; // [in] pointer to _zet_dditable_t_ object related to this handle
45
+
zes_dditable_driver_t *pSysman; // [in] pointer to _zes_dditable_t_ object related to this handle
46
+
} ze_handle_t;
44
47
45
48
DDI Handles Extension:
46
-
~~~~~~~~~~~~~~~~~~~~~
49
+
~~~~~~~~~~~~~~~~~~~~~~
47
50
48
51
Nowadays there are many possible scenarios of multiple Level Zero runtimes in the system (GPU + NPU, dGPU + iGPU on Windows, mainstream GPU + legacy GPU on Linux).
49
52
Our current handling of multi runtime scenario in Loader has many issues:
53
+
50
54
- performance degradation
51
55
- Level Zero API handles are stored in per-type maps, accessing these maps costs, especially in hot paths
52
56
- putting and removing entries from map needs additional mutex to ensure thread-safety
@@ -62,12 +66,14 @@ Backward compatibility is covered as new loader will still support runtimes that
62
66
Loader should verify the support based on extension property queried from zeDriverGetExtensionProperties.
0 commit comments