fix: define isCachingOnCpuAvailable per hw release

Related-To: NEO-8187
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-09-13 09:55:17 +00:00
committed by Compute-Runtime-Automation
parent 2f7c33c1fd
commit 3eb98163a8
19 changed files with 37 additions and 34 deletions

View File

@@ -37,6 +37,7 @@ class ReleaseHelper {
virtual int getProductMaxPreferredSlmSize(int preferredEnumValue) const = 0;
virtual bool getMediaFrequencyTileIndex(uint32_t &tileIndex) const = 0;
virtual bool isResolvingSubDeviceIDNeeded() const = 0;
virtual bool isCachingOnCpuAvailable() const = 0;
virtual std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const = 0;
protected:
@@ -61,6 +62,7 @@ class ReleaseHelperHw : public ReleaseHelper {
int getProductMaxPreferredSlmSize(int preferredEnumValue) const override;
bool getMediaFrequencyTileIndex(uint32_t &tileIndex) const override;
bool isResolvingSubDeviceIDNeeded() const override;
bool isCachingOnCpuAvailable() const override;
std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const override;
private:

View File

@@ -58,6 +58,11 @@ bool ReleaseHelperHw<releaseType>::isResolvingSubDeviceIDNeeded() const {
return true;
}
template <ReleaseType releaseType>
bool ReleaseHelperHw<releaseType>::isCachingOnCpuAvailable() const {
return true;
}
template <ReleaseType releaseType>
std::optional<GfxMemoryAllocationMethod> ReleaseHelperHw<releaseType>::getPreferredAllocationMethod(AllocationType allocationType) const {
return {};

View File

@@ -26,4 +26,9 @@ std::optional<GfxMemoryAllocationMethod> ReleaseHelperHw<release>::getPreferredA
}
}
template <>
bool ReleaseHelperHw<release>::isCachingOnCpuAvailable() const {
return false;
}
} // namespace NEO