mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Add support for global timestamp write API
Change-Id: I709783839a60478a62415c4d87a6b3a01ad43636 Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
6e20dfafab
commit
4e16e574e9
@@ -8,6 +8,8 @@
|
||||
#include "level_zero/core/source/cmdlist/cmdlist.h"
|
||||
#include <level_zero/ze_api.h>
|
||||
|
||||
#include "third_party/level_zero/ze_api_ext.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
__zedllexport ze_result_t __zecall
|
||||
@@ -44,4 +46,14 @@ zeCommandListReset(
|
||||
return L0::CommandList::fromHandle(hCommandList)->reset();
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL
|
||||
zeCommandListAppendWriteGlobalTimestampExt(
|
||||
ze_command_list_handle_t hCommandList,
|
||||
uint64_t *dstptr,
|
||||
ze_event_handle_t hSignalEvent,
|
||||
uint32_t numWaitEvents,
|
||||
ze_event_handle_t *phWaitEvents) {
|
||||
return L0::CommandList::fromHandle(hCommandList)->appendWriteGlobalTimestamp(dstptr, hSignalEvent, numWaitEvents, phWaitEvents);
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user