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
[ROCm/ROCR-Runtime commit: 15691ae460]
This commit is contained in:
committato da
David Yat Sin
parent
15127c6f85
commit
976cf45b0c
@@ -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;
|
||||
}
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user