fi_provider (7)
NAME
Fabric Interface Providers
OVERVIEW
Conceptually, a fabric provider may be viewed as a local hardware NIC driver, though a provider is not limited by this definition. The first component of libfabric is a general purpose framework that is capable of handling different types of fabric hardware. All fabric hardware devices and their software drivers are required to support this framework. Devices and the drivers that plug into the libfabric framework are referred to as fabric providers, or simply providers.
This distribution of libfabric contains the following providers (although more may be available via run-time plug-ins):
I]GNI] : A provider for the Aries interconnect in Cray XC(TM) systems utilizing the user-space I]Generic Networking Interface]. See C]fi_gni](7) for more information.
I]PSM] : High-speed InfiniBand networking from Intel. See C]fi_psm](7) for more information.
I]Sockets] : A general purpose provider that can be used on any network that supports TCP/UDP sockets. This provider is not intended to provide performance improvements over regular TCP/UDP sockets, but rather to allow developers to write, test, and debug application code even on platforms that do not have high-speed networking. See C]fi_sockets](7) for more information.
I]usNIC] : Ultra low latency Ethernet networking over Cisco userspace VIC adapters. See C]fi_usnic](7) for more information.
I]Verbs] : This provider uses the Linux Verbs API for network transport. Application performance is, obviously expected to be similar to that of the native Linux Verbs API. Analogous to the Sockets provider, the Verbs provider is intended to enable developers to write, test, and debug application code on platforms that only have Linux Verbs-based networking. See C]fi_verbs](7) for more information.
PROVIDER REQUIREMENTS
Libfabric provides a general framework for supporting multiple types of fabric objects and their related interfaces. Fabric providers have a large amount of flexibility in selecting which components they are able and willing to support, based on specific hardware constraints. Provider developers should refer to docs/provider for information on functionaliy supplied by the framework to assist in provider implementation. To assist in the development of applications, libfabric specifies the following requirements that must be met by any fabric provider, if requested by an application.
Note that the instantiation of a specific fabric object is subject to application configuration parameters and need not meet these requirements.
- [bu]
- A fabric provider must support at least one endpoint type.
- [bu]
- All endpoints must support the message queue data transfer interface (fi_ops_msg).
- [bu]
- An endpoint that advertises support for a specific endpoint capability must support the corresponding data transfer interface.
- [bu]
- FI_ATOMIC - fi_ops_atomic
- [bu]
- FI_RMA - fi_ops_rma
- [bu]
- FI_TAGGED - fi_ops_tagged
- [bu]
- Endpoints must support all transmit and receive operations for any data transfer interface that they support.
- [bu]
-
Exception: If an operation is only usable for an operation that the
provider does not support, and support for that operation is conveyed
using some other mechanism, the operation may return
-
- [bu]
- FI_ENOSYS. For example, if the provider does not support injected data, it can set the attribute inject_size = 0, and fail all fi_inject operations.
-
- [bu]
- The framework supplies wrappers around the [aq]msg[aq] operations that can be used. For example, the framework implements the sendv() msg operation by calling sendmsg(). Providers may reference the general operation, and supply on the sendmsg() implementation.
- [bu]
- Providers must set all operations to an implementation. Function pointers may not be left NULL or uninitialized. The framework supplies empty functions that return -FI_ENOSYS which can be used for this purpose.
- [bu]
- Endpoints must support the CM interface as follows:
- [bu]
- FI_EP_MSG endpoints must support all CM operations.
- [bu]
- FI_EP_DGRAM endpoints must support CM getname and setname.
- [bu]
- FI_EP_RDM endpoints must support CM getname and setname.
- [bu]
- Providers that support connectionless endpoints must support all AV operations (fi_ops_av).
- [bu]
- Providers that support memory registration, must support all MR operations (fi_ops_mr).
- [bu]
- Providers should support both completion queues and counters.
- [bu]
- If FI_RMA_EVENT is not supported, counter support is limited to local events only.
- [bu]
- Completion queues must support the FI_CQ_FORMAT_CONTEXT and FI_CQ_FORMAT_MSG.
- [bu]
- Providers that support FI_REMOTE_CQ_DATA shall support FI_CQ_FORMAT_DATA.
- [bu]
- Providers that support FI_TAGGED shall support FI_CQ_FORMAT_TAGGED.
- [bu]
- A provider is expected to be forward compatible, and must be able to be compiled against expanded C]fi_xxx_ops] structures that define new functions added after the provider was written. Any unknown functions must be set to NULL.
- [bu]
- Providers shall document in their man page which features they support, and any missing requirements.
Future versions of libfabric will automatically enable a more complete set of features for providers that focus their implementation on a narrow subset of libfabric capabilities.
LOGGING INTERFACE
Logging is performed using the FI_ERR, FI_LOG, and FI_DEBUG macros.
DEFINITIONS
-
C] #define FI_ERR(prov_name, subsystem, ...) #define FI_LOG(prov_name, prov, level, subsystem, ...) #define FI_DEBUG(prov_name, subsystem, ...) ]
ARGUMENTS
I]prov_name] : String representing the provider name.
I]prov] : Provider context structure.
I]level] : Log level associated with log statement.
I]subsystem] : Subsystem being logged from.
DESCRIPTION
I]FI_ERR] : Always logged.
I]FI_LOG] : Logged if the intended provider, log level, and subsystem parameters match the user supplied values.
I]FI_DEBUG] : Logged if configured with the --enable-debug flag.
SEE ALSO
C]fi_gni](7), C]fi_psm](7), C]fi_sockets](7), C]fi_usnic](7), C]fi_verbs](7),