Function cudarc::driver::result::ctx::get_current

source ·
pub fn get_current() -> Result<Option<CUcontext>, DriverError>
Expand description

Returns the CUDA context bound to the calling CPU thread if there is one.

See cuda docs