Struct parenchyma::Backend [] [src]

pub struct Backend<X = Unextended> { /* fields omitted */ }

The heart of Parenchyma - provides an interface for running parallel computations on one or more devices.

The Backend type is an abstraction over a framework and is used as a way to interact with your devices. A backend provides you with the functionality of managing the memory of the devices and copying memory objects to/from the host. Additionally, backends allow you to execute operations in parallel through kernel functions on devices.

Architecture

Backends are initialized by providing a framework and a selection of devices compatible with the framework to the Backend::new associated function, or by simply calling Backend::default. The framework determines which devices are available and how parallel kernel functions can be executed.

Methods

impl<X> Backend<X> where X: ExtensionPackage
[src]

Initialize a new backend.

Constructs a backend from the specified framework and selection.

Set the device at the specified index as the active device.

Only one device can be the active device - the device in which operations are executed.

Trait Implementations

impl<X: Debug> Debug for Backend<X>
[src]

Formats the value using the given formatter.

impl<X> Deref for Backend<X> where X: ExtensionPackage
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<X> Has<Device> for Backend<X> where X: ExtensionPackage
[src]

Get a reference to T.