From 8c3acb39743af163263194d2bc0989ce50d2671f Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Tue, 6 Jun 2023 10:06:00 -0400 Subject: [PATCH] Update documentation for IPC handles Explicitly mention that IPC handles can only be created on GPU agents. Change-Id: I19bc3578d6e5243c795bf6fbf981ea4bd3bfc2e8 [ROCm/ROCR-Runtime commit: 5e4490f1806c5a0c6f252742ec729827cddd473a] --- projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h b/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h index 8a1b97dee2..ead1abd634 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h @@ -2062,9 +2062,10 @@ typedef struct hsa_amd_ipc_memory_s { * region has been attached (via hsa_amd_ipc_memory_attach) in the remote * process prior to releasing that memory in the local process. * Repeated calls for the same allocation may, but are not required to, return - * unique handles. + * unique handles. The allocation needs to be on memory on an agent of type + * HSA_DEVICE_TYPE_GPU. * - * @param[in] ptr Pointer to memory allocated via ROCr APIs to prepare for + * @param[in] ptr Pointer to device memory allocated via ROCr APIs to prepare for * sharing. * * @param[in] len Length in bytes of the allocation to share.