atb/context.h
Definition
1 2 | virtual Status SetExecuteStreams(const std::vector<aclrtStream> &streams) = 0; virtual std::vector<aclrtStream> GetExecuteStreams() = 0; |
Parameters
Member |
Parameter |
Return Value |
Description |
|---|---|---|---|
SetExecuteStreams |
streams |
Status |
Sets the actual execution flow. When an operation is executed, the corresponding actual execution flow is matched from the context based on the configured streamId.
Status value. Successful setting returns NO_ERROR. In the case of a failure, see ErrorType. |
GetExecuteStreams |
- |
std::vector<aclrtStream> |
Obtains the group of execution flows that are currently set in the context. Successful setting returns the group of execution flows currently set in the context. |
Parent topic: Definition