Function: set_context
|
C Prototype |
aclError aclrtSetCurrentContext(aclrtContext context) |
|---|---|
|
Python Function |
ret = acl.rt.set_context(context) |
|
Function Usage |
Sets the context of a thread. |
|
Input Description |
context: int, pointer address of the current context object in the thread. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
|
|
Reference |
For details about the API call sequence, see Multi-device Switchover. |
Parent topic: Context Management