Skip to content

Commit

Permalink
Add FABRIC_PROVIDER environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Dec 15, 2023
1 parent 5c091a0 commit 7f3c641
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/adios2/toolkit/sst/dp/rdma_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,14 @@ static void init_fabric(struct fabric_state *fabric, struct _SstParams *Params,

fabric->info = NULL;

char const * provider_name = NULL;
if((provider_name = getenv("FABRIC_PROVIDER")))
{
size_t len = strlen(provider_name);
hints->fabric_attr->prov_name = malloc(len + 1);
memcpy(hints->fabric_attr->prov_name, provider_name, len + 1);
}

pthread_mutex_lock(&fabric_mutex);
fi_getinfo(fi_version, NULL, NULL, 0, hints, &info);
pthread_mutex_unlock(&fabric_mutex);
Expand Down

0 comments on commit 7f3c641

Please sign in to comment.