aclrtReduceAsync
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Performs a Reduce operation, including SUM, MIN, and MAX. This API is asynchronous.
Prototype
1 | aclError aclrtReduceAsync(void *dst, const void *src, uint64_t count, aclrtReduceKind kind, aclDataType type, aclrtStream stream, void *reserve) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dst |
Input |
Pointer to the destination memory address. |
src |
Input |
Pointer to the source memory address. |
count |
Input |
Size of the source memory, in bytes. |
kind |
Input |
Operation type. For details about the type definition, see aclrtReduceKind. |
type |
Input |
Data type. For details about the type definition, see aclDataType. The Atlas 350 Accelerator Card supports the following data types: int8, int16, int32, uint32, fp16, fp32, and bf16. The The The The The |
stream |
Input |
Stream for executing the Reduce operation task. For details about the type definition, see aclrtStream. |
reserve |
Input |
Reserved parameter. Currently, the value is fixed to NULL. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Restrictions
dst and src must be on the same device as stream.