feature: introduce release helper

Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2023-04-13 14:16:49 +00:00
committed by Compute-Runtime-Automation
parent 80f1e0e413
commit 171e97e71a
38 changed files with 342 additions and 52 deletions

View File

@@ -25,9 +25,10 @@ cl_ulong ClGfxCoreHelperHw<GfxFamily>::getKernelPrivateMemSize(const KernelInfo
template <typename GfxFamily>
cl_device_feature_capabilities_intel ClGfxCoreHelperHw<GfxFamily>::getSupportedDeviceFeatureCapabilities(const RootDeviceEnvironment &rootDeviceEnvironment) const {
auto &hwInfo = *rootDeviceEnvironment.getHardwareInfo();
auto releaseHelper = rootDeviceEnvironment.getReleaseHelper();
auto &compilerProductHelper = rootDeviceEnvironment.getHelper<CompilerProductHelper>();
if (compilerProductHelper.isMatrixMultiplyAccumulateSupported(hwInfo)) {
if (compilerProductHelper.isMatrixMultiplyAccumulateSupported(releaseHelper)) {
return CL_DEVICE_FEATURE_FLAG_DPAS_INTEL | CL_DEVICE_FEATURE_FLAG_DP4A_INTEL;
}
return CL_DEVICE_FEATURE_FLAG_DP4A_INTEL;