fix: add limitations for setting gmm flag Cacheable

- move isCachingOnCpuAvailable to product helper
- isCachingOnCpuAvailable should return false on mtl
- if wsl, skip checking method from product helper

Related-To: NEO-7194
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
Cencelewska, Katarzyna
2023-05-29 11:11:44 +00:00
committed by Compute-Runtime-Automation
parent 6f21d133cf
commit d2436a8231
19 changed files with 55 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Intel Corporation
* Copyright (C) 2021-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -16,6 +16,7 @@ bool RootDeviceEnvironment::initOsInterface(std::unique_ptr<HwDeviceId> &&hwDevi
if (hwDeviceId->getDriverModelType() == DriverModelType::DRM) {
return initDrmOsInterface(std::move(hwDeviceId), rootDeviceIndex, this);
} else {
this->isWddmOnLinuxEnable = true;
return initWddmOsInterface(std::move(hwDeviceId), this);
}
}

View File

@@ -207,6 +207,7 @@ class ProductHelper {
virtual uint32_t getNumberOfPartsInTileForConcurrentKernel() const = 0;
virtual bool is48bResourceNeededForRayTracing() const = 0;
virtual bool disableL3CacheForDebug(const HardwareInfo &hwInfo) const = 0;
virtual bool isCachingOnCpuAvailable() const = 0;
virtual ~ProductHelper() = default;

View File

@@ -791,4 +791,8 @@ bool ProductHelperHw<gfxProduct>::disableL3CacheForDebug(const HardwareInfo &) c
return false;
}
template <PRODUCT_FAMILY gfxProduct>
bool ProductHelperHw<gfxProduct>::isCachingOnCpuAvailable() const {
return true;
}
} // namespace NEO

View File

@@ -160,6 +160,7 @@ class ProductHelperHw : public ProductHelper {
bool isCalculationForDisablingEuFusionWithDpasNeeded(const HardwareInfo &hwInfo) const override;
bool is48bResourceNeededForRayTracing() const override;
bool disableL3CacheForDebug(const HardwareInfo &hwInfo) const override;
bool isCachingOnCpuAvailable() const override;
~ProductHelperHw() override = default;