HcclGetCommConfigCapability

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

☓

Atlas inference products

√

Atlas training products

√

For Atlas A2 training products/Atlas A2 inference products, only the Atlas 800T A2 training server, Atlas 900 A2 PoD cluster basic unit, and Atlas 200T A2 Box16 heterogeneous subrack are supported.

For the Atlas inference products, only the Atlas 300I Duo inference card is supported.

Description

Checks whether the current software version supports the initialization configuration of a communicator.

For details about all configuration options supported during communicator initialization, see HcclCommConfigCapability. Examples include the buffer size of the shared data, deterministic computing switch, communicator name, and location for expanding the orchestration of the communication algorithm.

The process of using the HcclGetCommConfigCapability API to check whether the current software supports a configuration option is as follows:
  1. Call the HcclGetCommConfigCapability API to obtain a value that represents the initialization configuration capability of the current software communicator.
  2. Compare the value with the enumerated value of a configuration option in HcclCommConfigCapability. If the value is greater than the enumerated value, the current software supports the configuration of the corresponding enumerated value in HcclCommConfigCapability. If the value is less than or equal to the enumerated value, the current software does not support the configuration.

    For example, to determine whether the current software supports the configuration of a communicator name, compare the return value of the HcclGetCommConfigCapability API with the enumerated value HCCL_COMM_CONFIG_COMM_NAME. If the return value is greater than HCCL_COMM_CONFIG_COMM_NAME, the current software supports the configuration of a communicator name. If the return value is less than or equal to HCCL_COMM_CONFIG_COMM_NAME, the current software does not support the configuration of a communicator name.

Prototype

1
uint32_t HcclGetCommConfigCapability()

Parameters

None

Returns

uint32_t: value of the initial configuration capability of the communicator.

For details about the value, see Description.

Constraints

None

Example

1
2
uint32_t configCapability = HcclGetCommConfigCapability();
bool isSupportCommName = configCapability > HCCL_COMM_CONFIG_COMM_NAME;  // Check whether the communicator name can be configured.