-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Extend FI_PROVIDER_PATH to allow setting preferred DL provider
Existing FI_PROVIDER_PATH specifies a list of directories under which DL providers are searched for. If multiple providers with the same name are found, either the one with the highest version or the one registered first is set to be visible, depending on whether `@` appears at the beginning of FI_PROVIDER_PATH. Others are set to be hidden. This works fine for most cases. However, sometimes it is desirable to be able to set a preferred provider directly, regardless of the version and the registration order. Here FI_PROVIDER_PATH is extended to allow setting preferred providers in addition to provder search path. Each preferred provider is specified as `+` followed by the full path to the provider library. If registered successfully, a preferred provider takes precedence over all other providers with the same name, including the built-in one. If multiple preferred porivders with the same name are specified, the first one successfully registered takes effect. Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
- Loading branch information
Showing
2 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters