mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
fix: prepare L3 cache size getter
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1319ab4efc
commit
adae21b103
@@ -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) {}
|
||||
|
||||
@@ -132,4 +132,9 @@ bool ReleaseHelperHw<releaseType>::isRayTracingSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <ReleaseType releaseType>
|
||||
uint64_t ReleaseHelperHw<releaseType>::getL3CacheSizeInKb() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user