pub struct Handle { /* private fields */ }Expand description
Owned cuSPARSE handle.
Implementations§
Source§impl Handle
impl Handle
Sourcepub fn set_stream(&self, stream: &Stream) -> Result<()>
pub fn set_stream(&self, stream: &Stream) -> Result<()>
Bind this handle to stream; subsequent cuSPARSE calls dispatch on
it (cusparseSetStream).
Sourcepub fn version(&self) -> Result<i32>
pub fn version(&self) -> Result<i32>
cuSPARSE library version (cusparseGetVersion),
e.g. 12604 for cuSPARSE 12.6.4.
Sourcepub fn as_raw(&self) -> cusparseHandle_t
pub fn as_raw(&self) -> cusparseHandle_t
Raw cusparseHandle_t. Use with care.
Trait Implementations§
Auto Trait Implementations§
impl !Sync for Handle
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Unpin for Handle
impl UnsafeUnpin for Handle
impl UnwindSafe for Handle
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