Struct rustacuda::context::UnownedContext [−][src]
pub struct UnownedContext { /* fields omitted */ }
Expand description
Non-owning handle to a CUDA context.
Implementations
Get the API version used to create this context.
This is not necessarily the latest version supported by the driver.
Example
let context = Context::create_and_push(ContextFlags::MAP_HOST | ContextFlags::SCHED_AUTO, device)?; let unowned = context.get_unowned(); let version = unowned.get_api_version()?;
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UnownedContext
impl Unpin for UnownedContext
impl UnwindSafe for UnownedContext
Blanket Implementations
Mutably borrows from an owned value. Read more