|
|
@ -66,15 +66,14 @@ extern HcclResult HcclCommInitRootInfo(uint32_t nRanks, const HcclRootInfo *root
|
|
|
|
* @param sendBuf A pointer identifying the input data address of the operator.
|
|
|
|
* @param sendBuf A pointer identifying the input data address of the operator.
|
|
|
|
* @param recvBuf A pointer identifying the output data address of the operator.
|
|
|
|
* @param recvBuf A pointer identifying the output data address of the operator.
|
|
|
|
* @param count An integer(u64) identifying the number of the output data.
|
|
|
|
* @param count An integer(u64) identifying the number of the output data.
|
|
|
|
* @param dataType The data type of the operator, must be one of the following types: int8, int16, int32, float16,
|
|
|
|
* @param dataType The data type of the operator, must be one of the following types: int8, int16, int32, float16, float32.
|
|
|
|
* float32.
|
|
|
|
|
|
|
|
* @param op The reduction type of the operator, must be one of the following types: sum, min, max, prod.
|
|
|
|
* @param op The reduction type of the operator, must be one of the following types: sum, min, max, prod.
|
|
|
|
* @param comm A pointer identifying the communication resource based on.
|
|
|
|
* @param comm A pointer identifying the communication resource based on.
|
|
|
|
* @param stream A pointer identifying the stream information.
|
|
|
|
* @param stream A pointer identifying the stream information.
|
|
|
|
* @return HcclResult
|
|
|
|
* @return HcclResult
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
extern HcclResult HcclAllReduce(void *sendBuf, void *recvBuf, uint64_t count, HcclDataType dataType, HcclReduceOp op,
|
|
|
|
extern HcclResult HcclAllReduce(void *sendBuf, void *recvBuf, uint64_t count, HcclDataType dataType,
|
|
|
|
HcclComm comm, aclrtStream stream);
|
|
|
|
HcclReduceOp op, HcclComm comm, aclrtStream stream);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Broadcast operator.
|
|
|
|
* @brief Broadcast operator.
|
|
|
@ -88,7 +87,7 @@ extern HcclResult HcclAllReduce(void *sendBuf, void *recvBuf, uint64_t count, Hc
|
|
|
|
* @return HcclResult
|
|
|
|
* @return HcclResult
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
extern HcclResult HcclBroadcast(void *buf, uint64_t count, HcclDataType dataType, uint32_t root, HcclComm comm,
|
|
|
|
extern HcclResult HcclBroadcast(void *buf, uint64_t count, HcclDataType dataType, uint32_t root, HcclComm comm,
|
|
|
|
aclrtStream stream);
|
|
|
|
aclrtStream stream);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief ReduceScatter operator.
|
|
|
|
* @brief ReduceScatter operator.
|
|
|
@ -103,7 +102,7 @@ extern HcclResult HcclBroadcast(void *buf, uint64_t count, HcclDataType dataType
|
|
|
|
* @return HcclResult
|
|
|
|
* @return HcclResult
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
extern HcclResult HcclReduceScatter(void *sendBuf, void *recvBuf, uint64_t recvCount, HcclDataType dataType,
|
|
|
|
extern HcclResult HcclReduceScatter(void *sendBuf, void *recvBuf, uint64_t recvCount, HcclDataType dataType,
|
|
|
|
HcclReduceOp op, HcclComm comm, aclrtStream stream);
|
|
|
|
HcclReduceOp op, HcclComm comm, aclrtStream stream);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief AllGather operator.
|
|
|
|
* @brief AllGather operator.
|
|
|
@ -116,8 +115,8 @@ extern HcclResult HcclReduceScatter(void *sendBuf, void *recvBuf, uint64_t recvC
|
|
|
|
* @param stream A pointer identifying the stream information.
|
|
|
|
* @param stream A pointer identifying the stream information.
|
|
|
|
* @return HcclResult
|
|
|
|
* @return HcclResult
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
extern HcclResult HcclAllGather(void *sendBuf, void *recvBuf, uint64_t sendCount, HcclDataType dataType, HcclComm comm,
|
|
|
|
extern HcclResult HcclAllGather(void *sendBuf, void *recvBuf, uint64_t sendCount, HcclDataType dataType,
|
|
|
|
aclrtStream stream);
|
|
|
|
HcclComm comm, aclrtStream stream);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Destroy HCCL comm
|
|
|
|
* @brief Destroy HCCL comm
|
|
|
|