Add isSpecialWorkgroupSizeRequired helper

Change-Id: Ic8d4471f48ed5f25eefa802444d0ea62ac0112da
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-4648
This commit is contained in:
Kamil Kopryk
2020-05-07 13:51:31 +02:00
committed by sys_ocldev
parent 7f2042ea22
commit 1dad22a12a
6 changed files with 40 additions and 5 deletions

View File

@@ -89,6 +89,8 @@ class HwHelper {
virtual uint64_t getGpuTimeStampInNS(uint64_t timeStamp, double frequency) const = 0;
virtual uint32_t getBindlessSurfaceExtendedMessageDescriptorValue(uint32_t surfStateOffset) const = 0;
virtual bool isSpecialWorkgroupSizeRequired(const HardwareInfo &hwInfo) const = 0;
static uint32_t getSubDevicesCount(const HardwareInfo *pHwInfo);
static uint32_t getEnginesCount(const HardwareInfo &hwInfo);
static uint32_t getCopyEnginesCount(const HardwareInfo &hwInfo);
@@ -233,6 +235,8 @@ class HwHelperHw : public HwHelper {
uint64_t getGpuTimeStampInNS(uint64_t timeStamp, double frequency) const override;
bool isSpecialWorkgroupSizeRequired(const HardwareInfo &hwInfo) const override;
protected:
static const AuxTranslationMode defaultAuxTranslationMode;
HwHelperHw() = default;

View File

@@ -340,6 +340,11 @@ inline bool HwHelperHw<GfxFamily>::isFusedEuDispatchEnabled(const HardwareInfo &
return false;
}
template <typename GfxFamily>
inline bool HwHelperHw<GfxFamily>::isSpecialWorkgroupSizeRequired(const HardwareInfo &hwInfo) const {
return false;
}
template <typename GfxFamily>
size_t MemorySynchronizationCommands<GfxFamily>::getSizeForFullCacheFlush() {
return sizeof(typename GfxFamily::PIPE_CONTROL);