feature: Add capability to query additional memory properties ext

Related-To: NEO-11362

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
This commit is contained in:
Aravind Gopalakrishnan 2024-06-14 05:45:33 +00:00 committed by Compute-Runtime-Automation
parent b0c924d40e
commit b7b45e1410
3 changed files with 4 additions and 0 deletions

View File

@ -736,6 +736,7 @@ ze_result_t DeviceImp::getMemoryProperties(uint32_t *pCount, ze_device_memory_pr
extendedProperties->writeBandwidth = extendedProperties->readBandwidth;
extendedProperties->bandwidthUnit = ZE_BANDWIDTH_UNIT_BYTES_PER_NANOSEC;
}
getAdditionalMemoryExtProperties(pNext, this->getNEODevice()->getHardwareInfo());
pNext = static_cast<ze_base_properties_t *>(pNext->pNext);
}

View File

@ -162,6 +162,7 @@ struct DeviceImp : public Device, NEO::NonCopyableOrMovableClass {
using CmdListCreateFunPtrT = L0::CommandList *(*)(uint32_t, Device *, NEO::EngineGroupType, ze_command_list_flags_t, ze_result_t &, bool);
CmdListCreateFunPtrT getCmdListCreateFunc(const ze_base_desc_t *desc);
void getAdditionalExtProperties(ze_base_properties_t *extendedProperties);
void getAdditionalMemoryExtProperties(ze_base_properties_t *extProperties, const NEO::HardwareInfo &hwInfo);
ze_result_t getFabricVertex(ze_fabric_vertex_handle_t *phVertex) override;
ze_result_t queryDeviceLuid(ze_device_luid_ext_properties_t *deviceLuidProperties);

View File

@ -23,4 +23,6 @@ void DeviceImp::getExtendedDeviceModuleProperties(ze_base_desc_t *pExtendedPrope
void DeviceImp::getAdditionalExtProperties(ze_base_properties_t *extendedProperties) {}
void DeviceImp::getAdditionalMemoryExtProperties(ze_base_properties_t *extProperties, const NEO::HardwareInfo &hwInfo) {}
} // namespace L0