refactor: refactor logic for querying atomic FP capabilities

- Move logic from product helper to compiler product helper
- Add method for adjusting fp16 and extra capabilities using release
helper (if present).


Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
Kacper Nowak
2024-03-28 13:47:16 +00:00
committed by Compute-Runtime-Automation
parent bcaa62bed3
commit 35ca2bbea9
41 changed files with 314 additions and 91 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -61,7 +61,7 @@ void appendExtensionsToInternalOptions(const HardwareInfo &hwInfo, const std::st
}
OpenClCFeaturesContainer openclCFeatures;
if (requiresOpenClCFeatures(options)) {
getOpenclCFeaturesList(hwInfo, openclCFeatures, *compilerProductHelper.get());
getOpenclCFeaturesList(hwInfo, openclCFeatures, *compilerProductHelper.get(), releaseHelper.get());
}
auto compilerExtensions = convertEnabledExtensionsToCompilerInternalOptions(extensionsList.c_str(), openclCFeatures);