feature: Add product helper for PidFdOrSocketForIPC

Related-To: NEO-15183

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
Raiyan Latif
2025-06-11 18:04:46 +00:00
committed by Compute-Runtime-Automation
parent abe499a913
commit b6c2c59d8f
7 changed files with 45 additions and 3 deletions

View File

@@ -270,6 +270,7 @@ class ProductHelper {
virtual bool isExposingSubdevicesAllowed() const = 0;
virtual bool useAdditionalBlitProperties() const = 0;
virtual bool isNonCoherentTimestampsModeEnabled() const = 0;
virtual bool isPidFdOrSocketForIpcSupported() const = 0;
virtual bool getStorageInfoLocalOnlyFlag(LocalMemAllocationMode usmDeviceAllocationMode, bool defaultValue) const = 0;
virtual ~ProductHelper() = default;

View File

@@ -58,4 +58,12 @@ bool ProductHelperHw<gfxProduct>::isNonCoherentTimestampsModeEnabled() const {
return !this->isDcFlushAllowed();
}
template <PRODUCT_FAMILY gfxProduct>
bool ProductHelperHw<gfxProduct>::isPidFdOrSocketForIpcSupported() const {
if (debugManager.flags.EnablePidFdOrSocketsForIpc.get() != -1) {
return debugManager.flags.EnablePidFdOrSocketsForIpc.get();
}
return false;
}
} // namespace NEO

View File

@@ -208,6 +208,7 @@ class ProductHelperHw : public ProductHelper {
bool useAdditionalBlitProperties() const override;
bool isNonCoherentTimestampsModeEnabled() const override;
bool getStorageInfoLocalOnlyFlag(LocalMemAllocationMode usmDeviceAllocationMode, bool defaultValue) const override;
bool isPidFdOrSocketForIpcSupported() const override;
~ProductHelperHw() override = default;

View File

@@ -61,4 +61,12 @@ bool ProductHelperHw<gfxProduct>::isNonCoherentTimestampsModeEnabled() const {
return true;
}
template <PRODUCT_FAMILY gfxProduct>
bool ProductHelperHw<gfxProduct>::isPidFdOrSocketForIpcSupported() const {
if (debugManager.flags.EnablePidFdOrSocketsForIpc.get() != -1) {
return debugManager.flags.EnablePidFdOrSocketsForIpc.get();
}
return false;
}
} // namespace NEO