Fix DMABuf FD closure for IPC attach client
We should also close the client side dmabuf fd after importing for target nodes. Change-Id: I74f61dd65bebb03dc002f5df7301efd1ef8d9603
This commit is contained in:
کامیت شده توسط
David Yat Sin
والد
62f3f250ce
کامیت
15691ae460
@@ -1375,6 +1375,7 @@ hsa_status_t Runtime::IPCAttach(const hsa_amd_ipc_memory_t* handle, size_t len,
|
||||
if (ret != HSA_STATUS_SUCCESS) return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
|
||||
if (ipc_dmabuf_supported_) {
|
||||
close(dmabuf_fd);
|
||||
importAddress = info.MemoryAddress;
|
||||
importSize = info.SizeInBytes;
|
||||
}
|
||||
|
||||
مرجع در شماره جدید
Block a user