Event - Experimental#
oneAPI Level Zero Specification - Version 1.18.31
Event - Experimental Functions#
zeEventQueryTimestampsExp#
Added in version 1.2
-
ZE_APIEXPORT ze_result_t ZE_APICALL zeEventQueryTimestampsExp(ze_event_handle_t hEvent, ze_device_handle_t hDevice, uint32_t *pCount, ze_kernel_timestamp_result_t *pTimestamps)#
Query event timestamps for a device or sub-device.
The application may call this function from simultaneous threads.
The implementation of this function must be thread-safe.
The implementation must support ZE_EVENT_QUERY_TIMESTAMPS_EXP_NAME extension.
The implementation must return all timestamps for the specified event and device pair.
The implementation must return all timestamps for all sub-devices when device handle is parent device.
The implementation may return all timestamps for sub-devices when device handle is sub-device or may return 0 for count.
Remark
Analogues
None
- Parameters:
hEvent – [in] handle of the event
hDevice – [in] handle of the device to query
pCount – [in,out] pointer to the number of timestamp results. if count is zero, then the driver shall update the value with the total number of timestamps available. if count is greater than the number of timestamps available, then the driver shall update the value with the correct number of timestamps available.
pTimestamps – [in,out][optional][range(0, *pCount)] array of timestamp results. if count is less than the number of timestamps available, then driver shall only retrieve that number of timestamps.
- Returns:
ZE_RESULT_ERROR_INVALID_NULL_HANDLE
nullptr == hEventnullptr == hDevice
ZE_RESULT_ERROR_INVALID_NULL_POINTER
nullptr == pCount