Skip to content

Commit

Permalink
util: Consider provider exclusion
Browse files Browse the repository at this point in the history
When checking fabric attributes with ofi_check_fabric_attr() make sure to
consider provider exclusion.

When checking to see if a provider name is given, only consider ones which
are not excluded using the '^' character.

Signed-off-by: Amir Shehata <shehataa@ornl.gov>
  • Loading branch information
amirshehataornl committed May 9, 2024
1 parent 93437a8 commit 11536f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prov/util/src/util_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ int ofi_check_fabric_attr(const struct fi_provider *prov,
* user's hints, if one is specified.
*/
if (prov_attr->prov_name && user_attr->prov_name &&
user_attr->prov_name[0] != '^' &&
!strcasestr(user_attr->prov_name, prov_attr->prov_name)) {
FI_INFO(prov, FI_LOG_CORE,
"Requesting provider %s, skipping %s\n",
Expand Down

0 comments on commit 11536f9

Please sign in to comment.