aclrtReduceAsync
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Performs a Reduce operation, including SUM, MIN, and MAX. This API is asynchronous.
Prototype
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. |
type |
Input |
Data type. The The The The The |
stream |
Input |
Stream for executing the Reduce operation task. To use the default stream, pass NULL. |
reserve |
Input |
Reserved. Currently, the value is fixed to NULL. |
Returns
0 on success; else, failure. For details, see aclError.
Restrictions
dts and src must be on the same device as stream.