SetQueueNum
Function
Sets the number of BatchWrite communication queues on each core that delivers tasks to the server.
Prototype
1 | uint32_t SetQueueNum(uint16_t num) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
num |
Input |
Number of queues. The range of the value that equals to the number of cores involved in communication × the number of queues is [0, 40]. For details about how to set the number of cores involved in communication, see SetCommBlockNum. |
Returns
- 0: Setting succeeded.
- Other values: Setting failed.
Restrictions
This API takes effect only when the communication type is HCCL_CMD_BATCH_WRITE on the
Example
1 2 3 4 5 6 | const char *groupName = "testGroup"; uint32_t opType = HCCL_CMD_BATCH_WRITE; std::string algConfig = "BatchWrite=level0:fullmesh"; uint32_t reduceType = HCCL_REDUCE_SUM; AscendC::Mc2CcTilingConfig mc2CcTilingConfig(groupName, opType, algConfig, reduceType); mc2CcTilingConfig.SetQueueNum(2U); |
Parent topic: HCCL Tiling APIs