fix: prepare L3 cache size getter

Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
Naklicki, Mateusz
2024-03-14 15:34:45 +00:00
committed by Compute-Runtime-Automation
parent 1319ab4efc
commit adae21b103
3 changed files with 8 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ class ReleaseHelper {
virtual const ThreadsPerEUConfigs getThreadsPerEUConfigs() const = 0;
virtual const std::string getDeviceConfigString(uint32_t tileCount, uint32_t sliceCount, uint32_t subSliceCount, uint32_t euPerSubSliceCount) const = 0;
virtual bool isRayTracingSupported() const = 0;
virtual uint64_t getL3CacheSizeInKb() const = 0;
protected:
ReleaseHelper(HardwareIpVersion hardwareIpVersion) : hardwareIpVersion(hardwareIpVersion) {}
@@ -90,6 +91,7 @@ class ReleaseHelperHw : public ReleaseHelper {
const StackVec<uint32_t, 6> getThreadsPerEUConfigs() const override;
const std::string getDeviceConfigString(uint32_t tileCount, uint32_t sliceCount, uint32_t subSliceCount, uint32_t euPerSubSliceCount) const override;
bool isRayTracingSupported() const override;
uint64_t getL3CacheSizeInKb() const override;
protected:
ReleaseHelperHw(HardwareIpVersion hardwareIpVersion) : ReleaseHelper(hardwareIpVersion) {}

View File

@@ -132,4 +132,9 @@ bool ReleaseHelperHw<releaseType>::isRayTracingSupported() const {
return true;
}
template <ReleaseType releaseType>
uint64_t ReleaseHelperHw<releaseType>::getL3CacheSizeInKb() const {
return 0;
}
} // namespace NEO

View File

@@ -37,5 +37,6 @@ class MockReleaseHelper : public ReleaseHelper {
ADDMETHOD_CONST_NOBASE(getThreadsPerEUConfigs, const ThreadsPerEUConfigs, {}, ());
ADDMETHOD_CONST_NOBASE(getDeviceConfigString, const std::string, {}, (uint32_t tileCount, uint32_t sliceCount, uint32_t subSliceCount, uint32_t euPerSubSliceCount));
ADDMETHOD_CONST_NOBASE(isRayTracingSupported, bool, true, ());
ADDMETHOD_CONST_NOBASE(getL3CacheSizeInKb, uint64_t, {}, ());
};
} // namespace NEO