Skip to content

Commit 128ba13

Browse files
[SYCL] Add coarse-grained debug aid for finding imbalance in Level-Zero alloc/free (#3334)
A sample output is this: ZE_DEBUG=4: check balance of create/destroy calls ---------------------------------------------------------- zeContextCreate = 1 \---> zeContextDestroy = 1 zeCommandQueueCreate = 1 \---> zeCommandQueueDestroy = 1 zeModuleCreate = 1 \---> zeModuleDestroy = 1 zeKernelCreate = 1 \---> zeKernelDestroy = 1 zeEventPoolCreate = 8 \---> zeEventPoolDestroy = 8 zeCommandListCreateImmediate = 1 | zeCommandListCreate = 2 \---> zeCommandListDestroy = 3 zeEventCreate = 2000 \---> zeEventDestroy = 2000 zeFenceCreate = 2 \---> zeFenceDestroy = 2 zeImageCreate = 0 \---> zeImageDestroy = 0 zeSamplerCreate = 0 \---> zeSamplerDestroy = 0 zeMemAllocDevice = 0 | zeMemAllocHost = 0 | zeMemAllocShared = 0 \---> zeMemFree = 0 Also fixed a bug in piEnqueueEventsWait where we were allocating a command-list but never closed/released it. Signed-off-by: Sergey V Maslov [email protected]
1 parent 248f550 commit 128ba13

File tree

1 file changed

+367
-260
lines changed

1 file changed

+367
-260
lines changed

0 commit comments

Comments
 (0)