pub trait Contexted {
// Required method
fn get_context(&self) -> Arc<Context>;
// Provided methods
fn guard_context(&self) -> ContextGuard { ... }
fn sync_context(&self) -> Result<()> { ... }
}Expand description
Object tied up to a CUDA context
Required Methods§
fn get_context(&self) -> Arc<Context>
Provided Methods§
Sourcefn guard_context(&self) -> ContextGuard
fn guard_context(&self) -> ContextGuard
RAII utility for push/pop onto the thread-local context stack
Sourcefn sync_context(&self) -> Result<()>
fn sync_context(&self) -> Result<()>
Blocking until all tasks in current context end