Skip to content

Commit c9b5b12

Browse files
committed
oshmem: sshmem ucx: use fixed base address
Signed-off-by: Alex Mikheev <[email protected]>
1 parent c63137e commit c9b5b12

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

oshmem/mca/sshmem/ucx/sshmem_ucx_component.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ ucx_runtime_query(mca_base_module_t **module,
8383
}
8484

8585
*priority = mca_sshmem_ucx_component.priority;
86-
/* use lowest priority because UCX does not support
87-
* fixed address mapping yet
88-
*/
89-
*priority = 0;
9086
*module = (mca_base_module_t *)&mca_sshmem_ucx_module.super;
9187
return OPAL_SUCCESS;
9288
}

oshmem/mca/sshmem/ucx/sshmem_ucx_module.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ segment_create(map_segment_t *ds_buf,
9898
mem_map_params.field_mask = UCP_MEM_MAP_PARAM_FIELD_ADDRESS |
9999
UCP_MEM_MAP_PARAM_FIELD_LENGTH |
100100
UCP_MEM_MAP_PARAM_FIELD_FLAGS;
101-
/* TODO: use default base address */
102-
mem_map_params.address = NULL;
101+
102+
mem_map_params.address = (void *)mca_sshmem_base_start_address;
103103
mem_map_params.length = size;
104-
mem_map_params.flags = 0;
104+
mem_map_params.flags = UCP_MEM_MAP_ALLOCATE|UCP_MEM_MAP_FIXED;
105+
105106
if (spml->heap_reg_nb) {
106107
mem_map_params.flags |= UCP_MEM_MAP_NONBLOCK;
107108
}

0 commit comments

Comments
 (0)