HCCL Template Parameters
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
The template parameter needs to be passed when an HCCL object is created.
Prototype
The HCCL class is defined as follows. For details about the template parameters, see Table 1 HCCL class template parameters.
1 2 | template <HcclServerType serverType = HcclServerType::HCCL_SERVER_TYPE_AICPU, const auto &config = DEFAULT_CFG> class Hccl; |
Parameters
Parameter |
Description |
||||
|---|---|---|---|---|---|
serverType |
Supported server type. The HcclServerType type is defined as follows: For the For the
|
||||
config |
Specifies the core that delivers tasks to the server. The type is HcclServerConfig, which is defined as follows. The default value is DEFAULT_CFG = {CoreType::DEFAULT, 0}.
CoreType is defined as follows:
|
Returns
None
Restrictions
None
Example
1 2 3 | static constexpr HcclServerConfig HCCL_CFG = {CoreType::ON_AIV, 10}; // Select AI CPU as the server. Hccl<HcclServerType::HCCL_SERVER_TYPE_AICPU, HCCL_CFG> hccl; |