Skip to content

Commit 03cda8a

Browse files
committed
Test branch for v1.12 with latest changes
Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
1 parent 3f0fb9d commit 03cda8a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2444
-146
lines changed

include/layers/zel_tracing_register_cb.h

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,58 @@ typedef void (ZE_APICALL *ze_pfnDeviceGetGlobalTimestampsCb_t)(
376376
void** ppTracerInstanceUserData
377377
);
378378

379+
///////////////////////////////////////////////////////////////////////////////
380+
/// @brief Callback function parameters for zeDeviceImportExternalSemaphoreExt
381+
/// @details Each entry is a pointer to the parameter passed to the function;
382+
/// allowing the callback the ability to modify the parameter's value
383+
384+
typedef struct _ze_device_import_external_semaphore_ext_params_t
385+
{
386+
ze_device_handle_t* phDevice;
387+
const ze_external_semaphore_ext_desc_t** pdesc;
388+
ze_external_semaphore_ext_handle_t** pphSemaphore;
389+
} ze_device_import_external_semaphore_ext_params_t;
390+
391+
392+
///////////////////////////////////////////////////////////////////////////////
393+
/// @brief Callback function-pointer for zeDeviceImportExternalSemaphoreExt
394+
/// @param[in] params Parameters passed to this instance
395+
/// @param[in] result Return value
396+
/// @param[in] pTracerUserData Per-Tracer user data
397+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
398+
399+
typedef void (ZE_APICALL *ze_pfnDeviceImportExternalSemaphoreExtCb_t)(
400+
ze_device_import_external_semaphore_ext_params_t* params,
401+
ze_result_t result,
402+
void* pTracerUserData,
403+
void** ppTracerInstanceUserData
404+
);
405+
406+
///////////////////////////////////////////////////////////////////////////////
407+
/// @brief Callback function parameters for zeDeviceReleaseExternalSemaphoreExt
408+
/// @details Each entry is a pointer to the parameter passed to the function;
409+
/// allowing the callback the ability to modify the parameter's value
410+
411+
typedef struct _ze_device_release_external_semaphore_ext_params_t
412+
{
413+
ze_external_semaphore_ext_handle_t* phSemaphore;
414+
} ze_device_release_external_semaphore_ext_params_t;
415+
416+
417+
///////////////////////////////////////////////////////////////////////////////
418+
/// @brief Callback function-pointer for zeDeviceReleaseExternalSemaphoreExt
419+
/// @param[in] params Parameters passed to this instance
420+
/// @param[in] result Return value
421+
/// @param[in] pTracerUserData Per-Tracer user data
422+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
423+
424+
typedef void (ZE_APICALL *ze_pfnDeviceReleaseExternalSemaphoreExtCb_t)(
425+
ze_device_release_external_semaphore_ext_params_t* params,
426+
ze_result_t result,
427+
void* pTracerUserData,
428+
void** ppTracerInstanceUserData
429+
);
430+
379431
///////////////////////////////////////////////////////////////////////////////
380432
/// @brief Callback function parameters for zeDeviceReserveCacheExt
381433
/// @details Each entry is a pointer to the parameter passed to the function;
@@ -647,6 +699,68 @@ typedef void (ZE_APICALL *ze_pfnCommandListUpdateMutableCommandKernelsExpCb_t)(
647699
void** ppTracerInstanceUserData
648700
);
649701

702+
///////////////////////////////////////////////////////////////////////////////
703+
/// @brief Callback function parameters for zeCommandListAppendSignalExternalSemaphoreExt
704+
/// @details Each entry is a pointer to the parameter passed to the function;
705+
/// allowing the callback the ability to modify the parameter's value
706+
707+
typedef struct _ze_command_list_append_signal_external_semaphore_ext_params_t
708+
{
709+
ze_command_list_handle_t* phCommandList;
710+
uint32_t* pnumSemaphores;
711+
ze_external_semaphore_ext_handle_t** pphSemaphores;
712+
ze_external_semaphore_signal_params_ext_t** psignalParams;
713+
ze_event_handle_t* phSignalEvent;
714+
uint32_t* pnumWaitEvents;
715+
ze_event_handle_t** pphWaitEvents;
716+
} ze_command_list_append_signal_external_semaphore_ext_params_t;
717+
718+
719+
///////////////////////////////////////////////////////////////////////////////
720+
/// @brief Callback function-pointer for zeCommandListAppendSignalExternalSemaphoreExt
721+
/// @param[in] params Parameters passed to this instance
722+
/// @param[in] result Return value
723+
/// @param[in] pTracerUserData Per-Tracer user data
724+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
725+
726+
typedef void (ZE_APICALL *ze_pfnCommandListAppendSignalExternalSemaphoreExtCb_t)(
727+
ze_command_list_append_signal_external_semaphore_ext_params_t* params,
728+
ze_result_t result,
729+
void* pTracerUserData,
730+
void** ppTracerInstanceUserData
731+
);
732+
733+
///////////////////////////////////////////////////////////////////////////////
734+
/// @brief Callback function parameters for zeCommandListAppendWaitExternalSemaphoreExt
735+
/// @details Each entry is a pointer to the parameter passed to the function;
736+
/// allowing the callback the ability to modify the parameter's value
737+
738+
typedef struct _ze_command_list_append_wait_external_semaphore_ext_params_t
739+
{
740+
ze_command_list_handle_t* phCommandList;
741+
uint32_t* pnumSemaphores;
742+
ze_external_semaphore_ext_handle_t** pphSemaphores;
743+
ze_external_semaphore_wait_params_ext_t** pwaitParams;
744+
ze_event_handle_t* phSignalEvent;
745+
uint32_t* pnumWaitEvents;
746+
ze_event_handle_t** pphWaitEvents;
747+
} ze_command_list_append_wait_external_semaphore_ext_params_t;
748+
749+
750+
///////////////////////////////////////////////////////////////////////////////
751+
/// @brief Callback function-pointer for zeCommandListAppendWaitExternalSemaphoreExt
752+
/// @param[in] params Parameters passed to this instance
753+
/// @param[in] result Return value
754+
/// @param[in] pTracerUserData Per-Tracer user data
755+
/// @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data
756+
757+
typedef void (ZE_APICALL *ze_pfnCommandListAppendWaitExternalSemaphoreExtCb_t)(
758+
ze_command_list_append_wait_external_semaphore_ext_params_t* params,
759+
ze_result_t result,
760+
void* pTracerUserData,
761+
void** ppTracerInstanceUserData
762+
);
763+
650764
///////////////////////////////////////////////////////////////////////////////
651765
/// @brief Callback function parameters for zeCommandListAppendImageCopyToMemoryExt
652766
/// @details Each entry is a pointer to the parameter passed to the function;
@@ -3058,6 +3172,38 @@ zelTracerKernelGetBinaryExpRegisterCallback(
30583172
);
30593173

30603174

3175+
ZE_APIEXPORT ze_result_t ZE_APICALL
3176+
zelTracerDeviceImportExternalSemaphoreExtRegisterCallback(
3177+
zel_tracer_handle_t hTracer,
3178+
zel_tracer_reg_t callback_type,
3179+
ze_pfnDeviceImportExternalSemaphoreExtCb_t pfnImportExternalSemaphoreExtCb
3180+
);
3181+
3182+
3183+
ZE_APIEXPORT ze_result_t ZE_APICALL
3184+
zelTracerDeviceReleaseExternalSemaphoreExtRegisterCallback(
3185+
zel_tracer_handle_t hTracer,
3186+
zel_tracer_reg_t callback_type,
3187+
ze_pfnDeviceReleaseExternalSemaphoreExtCb_t pfnReleaseExternalSemaphoreExtCb
3188+
);
3189+
3190+
3191+
ZE_APIEXPORT ze_result_t ZE_APICALL
3192+
zelTracerCommandListAppendSignalExternalSemaphoreExtRegisterCallback(
3193+
zel_tracer_handle_t hTracer,
3194+
zel_tracer_reg_t callback_type,
3195+
ze_pfnCommandListAppendSignalExternalSemaphoreExtCb_t pfnAppendSignalExternalSemaphoreExtCb
3196+
);
3197+
3198+
3199+
ZE_APIEXPORT ze_result_t ZE_APICALL
3200+
zelTracerCommandListAppendWaitExternalSemaphoreExtRegisterCallback(
3201+
zel_tracer_handle_t hTracer,
3202+
zel_tracer_reg_t callback_type,
3203+
ze_pfnCommandListAppendWaitExternalSemaphoreExtCb_t pfnAppendWaitExternalSemaphoreExtCb
3204+
);
3205+
3206+
30613207
ZE_APIEXPORT ze_result_t ZE_APICALL
30623208
zelTracerDeviceReserveCacheExtRegisterCallback(
30633209
zel_tracer_handle_t hTracer,

0 commit comments

Comments
 (0)