HCCL Template Parameters
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function Usage
The template parameters need 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 For the Atlas 350 Accelerator Card, only HCCL_SERVER_TYPE_CCU is supported currently.
|
||||
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
Constraints
None
Examples
1 2 3 4 5 6 | static constexpr HcclServerConfig HCCL_CFG = {CoreType::ON_AIV, 10}; // Select AI CPU as the server. Hccl<HcclServerType::HCCL_SERVER_TYPE_AICPU, HCCL_CFG> hccl; // Select CCU as the server. Hccl<HcclServerType::HCCL_SERVER_TYPE_CCU, HCCL_CFG> hccl; |