refactor: unify local dispatch size query

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-11-14 17:09:23 +00:00
committed by Compute-Runtime-Automation
parent fea50b1b94
commit 67581f57a4
7 changed files with 25 additions and 3 deletions

View File

@@ -237,6 +237,7 @@ class ProductHelper {
virtual bool isNewCoherencyModelSupported() const = 0;
virtual bool deferMOCSToPatIndex() const = 0;
virtual const std::vector<uint32_t> getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const = 0;
virtual bool localDispatchSizeQuerySupported() const = 0;
virtual bool supportReadOnlyAllocations() const = 0;
virtual bool isDeviceToHostCopySignalingFenceRequired() const = 0;
virtual size_t getMaxFillPaternSizeForCopyEngine() const = 0;

View File

@@ -897,8 +897,8 @@ bool ProductHelperHw<gfxProduct>::supportReadOnlyAllocations() const {
}
template <PRODUCT_FAMILY gfxProduct>
const std::vector<uint32_t> ProductHelperHw<gfxProduct>::getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const {
return {};
bool ProductHelperHw<gfxProduct>::localDispatchSizeQuerySupported() const {
return false;
}
template <PRODUCT_FAMILY gfxProduct>

View File

@@ -180,6 +180,7 @@ class ProductHelperHw : public ProductHelper {
bool deferMOCSToPatIndex() const override;
bool supportReadOnlyAllocations() const override;
const std::vector<uint32_t> getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const override;
bool localDispatchSizeQuerySupported() const override;
bool isDeviceToHostCopySignalingFenceRequired() const override;
size_t getMaxFillPaternSizeForCopyEngine() const override;
bool isAvailableExtendedScratch() const override;

View File

@@ -15,6 +15,11 @@
namespace NEO {
template <PRODUCT_FAMILY gfxProduct>
const std::vector<uint32_t> ProductHelperHw<gfxProduct>::getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const {
return {};
}
template <PRODUCT_FAMILY gfxProduct>
uint64_t ProductHelperHw<gfxProduct>::getHostMemCapabilitiesValue() const {
return (UnifiedSharedMemoryFlags::access | UnifiedSharedMemoryFlags::atomicAccess);

View File

@@ -9,6 +9,11 @@
#include "shared/source/os_interface/product_helper.h"
namespace NEO {
template <PRODUCT_FAMILY gfxProduct>
const std::vector<uint32_t> ProductHelperHw<gfxProduct>::getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const {
return {};
}
template <PRODUCT_FAMILY gfxProduct>
uint64_t ProductHelperHw<gfxProduct>::getHostMemCapabilitiesValue() const {
return (UnifiedSharedMemoryFlags::access);