#[repr(C)]pub struct gpu_float {
pub dev_data: *mut f32,
pub host_data: *mut f32,
pub d_tau: *mut f32,
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 f32§host_data: *mut f32§d_tau: *mut f32§N: c_int§nb: c_int§S: stats§stat: cublasStatus_t§handle: cublasHandle_t§cusolverH: cusolverDnHandle_tImplementations§
Source§impl gpu_float
impl gpu_float
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 dev2dev(&mut self, other: *mut gpu_float)
pub unsafe fn axpy(&mut self, x: *const gpu_float, alpha: f32)
pub unsafe fn scale(&mut self, alpha: f32)
pub unsafe fn mv(&mut self, y: *mut gpu_float, x: *const gpu_float)
pub unsafe fn qr_solve(&mut self, x: *mut gpu_float, b: *mut gpu_float)
Trait Implementations§
impl Copy for gpu_float
impl Send for gpu_float
impl Sync for gpu_float
Auto Trait Implementations§
impl Freeze for gpu_float
impl RefUnwindSafe for gpu_float
impl Unpin for gpu_float
impl UnwindSafe for gpu_float
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