mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +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
@@ -24,10 +24,11 @@ bool ContextImp::isShareableMemory(const void *exportDesc, bool exportableMemory
|
||||
|
||||
void *ContextImp::getMemHandlePtr(ze_device_handle_t hDevice, uint64_t handle, NEO::AllocationType allocationType, ze_ipc_memory_flags_t flags) {
|
||||
auto neoDevice = Device::fromHandle(hDevice)->getNEODevice();
|
||||
auto &productHelper = neoDevice->getProductHelper();
|
||||
|
||||
bool pidfdOrSocket = false;
|
||||
if (NEO::debugManager.flags.EnablePidFdOrSocketsForIpc.get() != -1) {
|
||||
pidfdOrSocket = !!(NEO::debugManager.flags.EnablePidFdOrSocketsForIpc.get());
|
||||
}
|
||||
pidfdOrSocket = productHelper.isPidFdOrSocketForIpcSupported();
|
||||
|
||||
if (pidfdOrSocket) {
|
||||
// With pidfd approach extract parent pid and target fd before importing handle
|
||||
pid_t exporterPid = 0;
|
||||
|
||||
Reference in New Issue
Block a user