mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Add support for pci_ext_properties_t
Added API definition in ze_device.cpp, and added function declaration of getPciProperties() in device.h and device_imp.cpp Initially returns -1 for all values of ze_pci_speed_ext_t for now, simply because we do not have function to retrieve the information of the PCI speed. Related-To: LOCI-2669 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ade43e29a5
commit
32ccf30c61
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -224,6 +224,7 @@ zeGetDeviceProcAddrTable(
|
||||
pDdiTable->pfnGetGlobalTimestamps = zeDeviceGetGlobalTimestamps;
|
||||
pDdiTable->pfnReserveCacheExt = zeDeviceReserveCacheExt;
|
||||
pDdiTable->pfnSetCacheAdviceExt = zeDeviceSetCacheAdviceExt;
|
||||
pDdiTable->pfnPciGetPropertiesExt = zeDevicePciGetPropertiesExt;
|
||||
driver_ddiTable.core_ddiTable.Device = *pDdiTable;
|
||||
if (driver_ddiTable.enableTracing) {
|
||||
pDdiTable->pfnGet = zeDeviceGet_Tracing;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -139,3 +139,10 @@ zeDeviceSetCacheAdviceExt(
|
||||
ze_cache_ext_region_t cacheRegion) {
|
||||
return L0::Device::fromHandle(hDevice)->setCacheAdvice(ptr, regionSize, cacheRegion);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL
|
||||
zeDevicePciGetPropertiesExt(
|
||||
ze_device_handle_t hDevice,
|
||||
ze_pci_ext_properties_t *pPciProperties) {
|
||||
return L0::Device::fromHandle(hDevice)->getPciProperties(pPciProperties);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user