Skip to content

Commit

Permalink
TL/UCP: add xgvmi usage option
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrol aderholdt committed Feb 22, 2024
1 parent 845d045 commit 3ff14a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/components/tl/ucp/tl_ucp.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ ucc_config_field_t ucc_tl_ucp_lib_config_table[] = {
ucc_offsetof(ucc_tl_ucp_lib_config_t, use_dynamic_segments),
UCC_CONFIG_TYPE_BOOL},

{"USE_XGVMI", "n",
"Use XGVMI for onesided collectives",
ucc_offsetof(ucc_tl_ucp_lib_config_t, use_xgvmi),
UCC_CONFIG_TYPE_BOOL},

{NULL}};

static ucs_config_field_t ucc_tl_ucp_context_config_table[] = {
Expand Down
1 change: 1 addition & 0 deletions src/components/tl/ucp/tl_ucp.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ typedef struct ucc_tl_ucp_lib_config {
ucc_ternary_auto_value_t use_topo;
int use_reordering;
int use_dynamic_segments;
int use_xgvmi;
} ucc_tl_ucp_lib_config_t;

typedef struct ucc_tl_ucp_context_config {
Expand Down
10 changes: 6 additions & 4 deletions src/components/tl/ucp/tl_ucp_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ UCC_CLASS_INIT_FUNC(ucc_tl_ucp_context_t,
ucp_params.field_mask =
UCP_PARAM_FIELD_FEATURES | UCP_PARAM_FIELD_TAG_SENDER_MASK | UCP_PARAM_FIELD_NAME;
ucp_params.features = UCP_FEATURE_TAG | UCP_FEATURE_AM;
if ((params->params.mask & UCC_CONTEXT_PARAM_FIELD_MEM_PARAMS) ||
lib->cfg.use_dynamic_segments) {
ucp_params.features |= UCP_FEATURE_RMA | UCP_FEATURE_AMO64 |
UCP_FEATURE_EXPORTED_MEMH;
if (((params->params.mask & UCC_CONTEXT_PARAM_FIELD_MEM_PARAMS) ||
lib->cfg.use_dynamic_segments)) {
ucp_params.features |= UCP_FEATURE_RMA | UCP_FEATURE_AMO64;
}
if (lib->cfg.use_xgvmi) {
ucp_params.features |= UCP_FEATURE_EXPORTED_MEMH;
}
ucp_params.tag_sender_mask = UCC_TL_UCP_TAG_SENDER_MASK;
ucp_params.name = "UCC_UCP_CONTEXT";
Expand Down

0 comments on commit 3ff14a8

Please sign in to comment.