#[repr(C)]pub struct gpu_double {
pub dev_data: *mut f64,
pub host_data: *mut f64,
pub N: c_int,
pub nb: c_int,
pub S: stats,
pub stat: cublasStatus_t,
pub handle: cublasHandle_t,
pub cusolverH: cusolverDnHandle_t,
}Fields§
§dev_data: *mut f64§host_data: *mut f64§N: c_int§nb: c_int§S: stats§stat: cublasStatus_t§handle: cublasHandle_t§cusolverH: cusolverDnHandle_tImplementations§
Source§impl gpu_double
impl gpu_double
pub unsafe fn setup(&mut self)
pub unsafe fn setup1(&mut self, N_T: c_int)
pub unsafe fn dev_malloc(&mut self)
pub unsafe fn free_dev(&mut self)
pub unsafe fn dev2host(&mut self)
pub unsafe fn host2dev(&mut self)
pub unsafe fn reset(&mut self)
pub unsafe fn qr(&mut self, m: c_int)
pub unsafe fn mv(&mut self, y: *mut gpu_float, x: *const gpu_float)
Trait Implementations§
Source§impl Clone for gpu_double
impl Clone for gpu_double
Source§fn clone(&self) -> gpu_double
fn clone(&self) -> gpu_double
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for gpu_double
impl Debug for gpu_double
Source§impl Default for gpu_double
impl Default for gpu_double
impl Copy for gpu_double
impl Send for gpu_double
impl Sync for gpu_double
Auto Trait Implementations§
impl Freeze for gpu_double
impl RefUnwindSafe for gpu_double
impl Unpin for gpu_double
impl UnwindSafe for gpu_double
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