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. If the setting is successful, NO_ERROR is returned. 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. If the setting is successful, the group of execution flows that are currently set in the context is returned. |
Parent topic: Definition