New CUDA context handling
For !84 (merged), and revise of !66 (merged)
- Introduce
ContextRefstruct to handle non-owned reference toCUcontext- CUDA API allows us to get
CUcontextfrom pointers to CUDA managed memory, which is needed by !84 (merged)
- CUDA API allows us to get
- Rename
ContextintoContextOwned, andArc<Context>intoContext - Take a reference to
Arcinstead of moved value:new API based onfn create(ctx: Arc<Context>) { ... }Context = Arc<ContextOwned>fn create(ctx: &Context) { ... } - Introduce
accel_derive::Contextedproc-macro to derive updatedContextedtrait
Edited by termoshtt