Crate rust_gpu_tools[][src]

Expand description

Abstraction layer for OpenCL and CUDA.

Feature Flags

There are two feature flags, cuda and opencl. By default opencl is enabled. You can enable both at the same time. At least one of them needs to be enabled at any time.

Modules

The CUDA specific implementation of a Buffer, Device, Program and Kernel.

The OpenCL specific implementation of a Buffer, Device, Program and Kernel.

Macros

Creates two closures, one for CUDA, one for OpenCL for the given one.

Structs

A device that may have a CUDA and/or OpenCL GPU associated with it.

A unique identifier based on UUID of the device.

A buffer on the GPU.

The PCI-ID is the combination of the PCI Bus ID and PCI Device ID.

Enums

Which framework to use, CUDA or OpenCL.

Error types of this library.

Abstraction for running programs on CUDA or OpenCL.

Unique identifier that can either be a PCI ID or a UUID.

Currently supported vendors of this library.