pub struct Context { /* private fields */ }
Expand description
A CUDA application context.
To start interacting with a device, you want to Context::enter
Implementations§
Source§impl Context
impl Context
Sourcepub fn version(&self) -> CudaResult<CudaVersion>
pub fn version(&self) -> CudaResult<CudaVersion>
Gets the API version of the Context
.
This is not the compute capability of the device and probably not what you are looking for. See Device::compute_capability
Sourcepub fn synchronize(&self) -> CudaResult<()>
pub fn synchronize(&self) -> CudaResult<()>
Synchronize a Context
, running all active handles to completion
Sourcepub fn set_limit(&mut self, limit: LimitType, value: u64) -> CudaResult<()>
pub fn set_limit(&mut self, limit: LimitType, value: u64) -> CudaResult<()>
Set a CUDA context limit
Sourcepub fn get_limit(&self, limit: LimitType) -> CudaResult<u64>
pub fn get_limit(&self, limit: LimitType) -> CudaResult<u64>
Get a CUDA context limit
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more