mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
feature: initial support for zeCommandListHostSynchronize
Related-To: LOCI-4191 Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fb306c8ffe
commit
6de77dbfdc
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -36,6 +36,12 @@ ze_result_t zeDeviceSystemBarrier(
|
||||
return L0::Device::fromHandle(hDevice)->systemBarrier();
|
||||
}
|
||||
|
||||
ze_result_t ZE_APICALL zeCommandListHostSynchronize(
|
||||
ze_command_list_handle_t hCommandList,
|
||||
uint64_t timeout) {
|
||||
return L0::CommandList::fromHandle(hCommandList)->hostSynchronize(timeout);
|
||||
}
|
||||
|
||||
} // namespace L0
|
||||
|
||||
extern "C" {
|
||||
@@ -74,4 +80,12 @@ ZE_APIEXPORT ze_result_t ZE_APICALL zeDeviceSystemBarrier(
|
||||
return L0::zeDeviceSystemBarrier(
|
||||
hDevice);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL zeCommandListHostSynchronize(
|
||||
ze_command_list_handle_t hCommandList,
|
||||
uint64_t timeout) {
|
||||
return L0::zeCommandListHostSynchronize(
|
||||
hCommandList,
|
||||
timeout);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -339,6 +339,7 @@ zeGetCommandListProcAddrTable(
|
||||
pDdiTable->pfnAppendWriteGlobalTimestamp = L0::zeCommandListAppendWriteGlobalTimestamp;
|
||||
pDdiTable->pfnAppendMemoryCopyFromContext = L0::zeCommandListAppendMemoryCopyFromContext;
|
||||
pDdiTable->pfnAppendQueryKernelTimestamps = L0::zeCommandListAppendQueryKernelTimestamps;
|
||||
pDdiTable->pfnHostSynchronize = L0::zeCommandListHostSynchronize;
|
||||
driverDdiTable.coreDdiTable.CommandList = *pDdiTable;
|
||||
if (driverDdiTable.enableTracing) {
|
||||
pDdiTable->pfnAppendBarrier = zeCommandListAppendBarrierTracing;
|
||||
|
||||
Reference in New Issue
Block a user