Skip to content

Commit 3bfebd3

Browse files
UCP/DEVICE: Add local and remote address fields to memory list element (#10904)
1 parent b5f663a commit 3bfebd3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/ucp/api/device/ucp_host.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ BEGIN_C_DECLS
3434
* It is used to enable backward compatibility support.
3535
*/
3636
enum ucp_device_mem_list_elem_field {
37-
UCP_DEVICE_MEM_LIST_ELEM_FIELD_MEMH = UCS_BIT(0), /**< Source memory handle */
38-
UCP_DEVICE_MEM_LIST_ELEM_FIELD_RKEY = UCS_BIT(1) /**< Unpacked remote memory key */
37+
UCP_DEVICE_MEM_LIST_ELEM_FIELD_MEMH = UCS_BIT(0), /**< Source memory handle */
38+
UCP_DEVICE_MEM_LIST_ELEM_FIELD_RKEY = UCS_BIT(1), /**< Unpacked remote memory key */
39+
UCP_DEVICE_MEM_LIST_ELEM_FIELD_LOCAL_ADDR = UCS_BIT(2), /**< Local address */
40+
UCP_DEVICE_MEM_LIST_ELEM_FIELD_REMOTE_ADDR = UCS_BIT(3) /**< Remote address */
3941
};
4042

4143

@@ -60,6 +62,16 @@ typedef struct ucp_device_mem_list_elem {
6062
*/
6163
ucp_mem_h memh;
6264

65+
/**
66+
* Local memory address for the device transfer operations.
67+
*/
68+
void* local_addr;
69+
70+
/**
71+
* Remote memory address for the device transfer operations.
72+
*/
73+
uint64_t remote_addr;
74+
6375
/**
6476
* Unpacked memory key for the remote memory endpoint.
6577
*/

0 commit comments

Comments
 (0)