context
This directory focuses on Context creation, switching, binding, and destruction, as well as context usage patterns in multi-thread scenarios.
Recommendations
- Typical usage of
aclrtCreateContext,aclrtSetCurrentContext,aclrtDestroyContext, and other interfaces. - Relationship between Device and Context.
- Context isolation and reuse in multi-thread scenarios.
References
- ../device/: Device initialization and switching.
- ../stream/: Relationship between stream and context.