Struct collenchyma::frameworks::opencl::API [] [src]

pub struct API;

Defines the OpenCL API.

Methods

impl API
[src]

Creates a OpenCL context.

An OpenCL context is created with one or more devices. Contexts are used by the OpenCL runtime for managing objects such as command-queues, memory, program and kernel objects and for executing kernels on one or more devices specified in the context. An OpenCL context is a synonym to a Collenchyma device.

impl API
[src]

Returns fully initialized devices for a specific platform.

Combines the fetching of all device ids and the fetching of the individual device information.

Returns a list of available devices for the provided platform.

Returns the requested DeviceInfo for the provided device.

impl API
[src]

Allocates memory on the OpenCL device.

A buffer object stores a one-dimensional collection of elements. Elements of a buffer object can be a scalar data type (such as an int, float), vector data type, or a user-defined structure. Returns a memory id for the created buffer, which can now be writen to.

Releases allocated memory from the OpenCL device.

Reads from a OpenCL memory object to the host memory.

With write_to_memory you can do the opposite, write from the host memory to a OpenCL memory object.

Write to a OpenCL memory object from host memory.

With read_from_memory you can do the opposite, read from a OpenCL memory object to host memory.

impl API
[src]

Returns a list of available platforms.

The OpenCL platform layer which implements platform-specific features that allow applications to

  • query OpenCL devices,
  • obtain device configuration information and
  • create OpenCL contexts using one or more devices.

impl API
[src]

Returns a command queue for a specified context and device.

OpenCL command queues are used to control memory allocation and operations for a single device.

Releases command queue from the OpenCL device.

Trait Implementations

impl Debug for API
[src]

Formats the value using the given formatter.

impl Copy for API
[src]

impl Clone for API
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more