Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Obtains the context of a thread.
1 | aclError aclrtGetCurrentContext(aclrtContext context) |
1 | context, ret = acl.rt.get_context() |
None
Return Value |
Description |
|---|---|
context |
Int, pointer address of the created context object. |
ret |
Int, error code. 0 on success; else, failure. |
If you call acl.rt.set_context multiple times to set the context of the current thread, the context set last time is obtained.