mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
feature: Add product helper for PidFdOrSocketForIPC
Related-To: NEO-15183 Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
abe499a913
commit
b6c2c59d8f
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user