fix: read ONEAPI_PVC_SEND_WAR_WA env

- disable optimization with compiler internal option when env is set to
zero

Related-To: NEO-15378, GSD-10884

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2025-07-08 15:55:32 +00:00
committed by Compute-Runtime-Automation
parent fc37b98b69
commit 703497b067
18 changed files with 270 additions and 3 deletions

View File

@@ -53,6 +53,8 @@ void DriverImp::initialize(ze_result_t *result) {
envVariables.fp64Emulation =
envReader.getSetting("NEO_FP64_EMULATION", false);
bool oneApiPvcWa = envReader.getSetting("ONEAPI_PVC_SEND_WAR_WA", true);
auto executionEnvironment = new NEO::ExecutionEnvironment();
UNRECOVERABLE_IF(nullptr == executionEnvironment);
@@ -69,6 +71,7 @@ void DriverImp::initialize(ze_result_t *result) {
}
executionEnvironment->setMetricsEnabled(envVariables.metrics);
executionEnvironment->setOneApiPvcWaEnv(oneApiPvcWa);
executionEnvironment->incRefInternal();
auto neoDevices = NEO::DeviceFactory::createDevices(*executionEnvironment);