Add implementation for zeEventQueryTimestampExp

Related-To: LOCI-2318

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
This commit is contained in:
Aravind Gopalakrishnan
2021-08-05 06:50:38 +00:00
committed by Compute-Runtime-Automation
parent 2a4fa055b1
commit fa2ddedf42
8 changed files with 185 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
#include "level_zero/api/extensions/public/ze_exp_ext.h"
#include "level_zero/core/source/event/event.h"
#include "level_zero/core/source/image/image.h"
#include "level_zero/core/source/kernel/kernel.h"
@@ -40,6 +41,15 @@ zeImageViewCreateExp(
return L0::Image::fromHandle(hImage)->createView(L0::Device::fromHandle(hDevice), desc, phImageView);
}
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) {
return L0::Event::fromHandle(hEvent)->queryTimestampsExp(L0::Device::fromHandle(hDevice), pCount, pTimestamps);
}
#if defined(__cplusplus)
} // extern "C"
#endif