Skip to content

Commit

Permalink
core: Print fabric name with provider name
Browse files Browse the repository at this point in the history
Add the fabric name to the data printed during initialization, so that
we can tell whether efa or efa-direct was chosen.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
  • Loading branch information
bwbarrett committed Feb 13, 2025
1 parent 8487235 commit 06e8db3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nccl_ofi_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,10 @@ int nccl_net_ofi_info_properties(nccl_net_ofi_plugin_t *plugin, struct fi_info *
int nccl_net_ofi_query_provider_capabilities(const struct fi_info *selected_provider,
unsigned int num_providers)
{
NCCL_OFI_INFO(NCCL_INIT | NCCL_NET, "Selected Provider is %s (found %d nics)",
selected_provider->fabric_attr->prov_name, num_providers);
NCCL_OFI_INFO(NCCL_INIT | NCCL_NET, "Selected provider is %s, fabric is %s (found %d nics)",
selected_provider->fabric_attr->prov_name,
selected_provider->fabric_attr->name,
num_providers);

if (strncmp("efa", selected_provider->fabric_attr->prov_name, strlen("efa")) == 0) {
if (FI_VERSION_LT(fi_version(), FI_VERSION(1, 22))) {
Expand Down

0 comments on commit 06e8db3

Please sign in to comment.