fix: Report correct DP support for platforms

Related-To: NEO-9702

- Remove older interfaces and add new release helper

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
This commit is contained in:
Aravind Gopalakrishnan
2023-12-19 06:28:01 +00:00
committed by Compute-Runtime-Automation
parent d953b3e8c5
commit f5045348ad
20 changed files with 53 additions and 71 deletions

View File

@@ -828,11 +828,13 @@ ze_result_t DeviceImp::getKernelProperties(ze_device_module_properties_t *pKerne
ze_intel_device_module_dp_exp_properties_t *dpProperties =
reinterpret_cast<ze_intel_device_module_dp_exp_properties_t *>(extendedProperties);
dpProperties->flags = 0u;
if (productHelper.isPlatformDp4aSupported()) {
if (compilerProductHelper.isDotAccumulateSupported()) {
dpProperties->flags |= ZE_INTEL_DEVICE_MODULE_EXP_FLAG_DP4A;
}
if (productHelper.isPlatformDpasSupported()) {
auto &rootDeviceEnvironment = neoDevice->getRootDeviceEnvironment();
auto releaseHelper = rootDeviceEnvironment.getReleaseHelper();
if (compilerProductHelper.isDotProductAccumulateSystolicSupported(releaseHelper)) {
dpProperties->flags |= ZE_INTEL_DEVICE_MODULE_EXP_FLAG_DPAS;
}
}