aclrtSetCurrentContext

Description

Binds a context to the calling thread. This API is synchronous.

Restrictions

Prototype

aclError aclrtSetCurrentContext(aclrtContext context)

Parameters

Parameter

Input/Output

Description

context

Input

Current context of a thread.

Returns

0 on success; else, failure.

See Also

For the API call sequence, see Multi-device Switchover.