mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Add isSpecialWorkgroupSizeRequired helper
Change-Id: Ic8d4471f48ed5f25eefa802444d0ea62ac0112da Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-4648
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user