Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Queries the execution status of all tasks on a specified stream.
1 | aclError aclrtStreamQuery(aclrtStream stream, aclrtStreamStatus *status) |
1 | status, ret = acl.rt.stream_query(stream) |
Parameter |
Description |
|---|---|
stream |
Int, pointer address of the stream to be operated. |
Return Value |
Description |
|---|---|
status |
Task status on the stream. For details, see aclrtStreamStatus. |
ret |
Int, error code. 0 on success; else, failure. |
This API can be used in the following scenarios: