Struct collenchyma::frameworks::cuda::Cuda
[−]
[src]
pub struct Cuda { /* fields omitted */ }
Provides the Cuda Framework.
Trait Implementations
impl Debug for Cuda
[src]
impl Clone for Cuda
[src]
fn clone(&self) -> Cuda
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl IFramework for Cuda
[src]
type H = Device
The Hardware representation for this Framework.
type D = Context
The Device representation for this Framework.
type B = Module
The Binary representation for this Framework.
fn ID() -> &'static str
Defines the Framework by a Name. Read more
fn new() -> Cuda
Initializes a new Framework. Read more
fn load_hardwares() -> Result<Vec<Device>, Error>
Initializes all the available hardwares.
fn hardwares(&self) -> &[Device]
Returns the cached and available hardwares.
fn binary(&self) -> &Self::B
Returns the initialized binary.
fn new_device(&self, hardwares: &[Device]) -> Result<DeviceType, Error>
Creates a new Cuda context for computation.
Cuda's context differs from OpenCL's context. Multi device support works different in Cuda. This function currently suppports only one device, but should be a wrapper for multi device support.