Skip to content

Commit 7f3c641

Browse files
committed
Add FABRIC_PROVIDER environment variable
1 parent 5c091a0 commit 7f3c641

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/adios2/toolkit/sst/dp/rdma_dp.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,14 @@ static void init_fabric(struct fabric_state *fabric, struct _SstParams *Params,
411411

412412
fabric->info = NULL;
413413

414+
char const * provider_name = NULL;
415+
if((provider_name = getenv("FABRIC_PROVIDER")))
416+
{
417+
size_t len = strlen(provider_name);
418+
hints->fabric_attr->prov_name = malloc(len + 1);
419+
memcpy(hints->fabric_attr->prov_name, provider_name, len + 1);
420+
}
421+
414422
pthread_mutex_lock(&fabric_mutex);
415423
fi_getinfo(fi_version, NULL, NULL, 0, hints, &info);
416424
pthread_mutex_unlock(&fabric_mutex);

0 commit comments

Comments
 (0)