clfft 0.3.0

Bindings for clFFT, a FFT library for OpenCL.
Documentation

Rust bindings for clFFT

Rust bindings for clFFT, a FFT library running on OpenCL devices. By default this library only compiles the bindings itself and therefore prebuild binaries are required in addition to the Rust bindings so that the library works. As an alternative the build_all feature flag can be used to build the clFFT library itself from the source using cargo and cmake.

Related resources

Usage

Add this to your Cargo.toml:

[dependencies]
clfft = "*"

and this to your crate root:

extern crate clfft;

Build

In order to build only the bindings, run

cargo build

To also build clFFT itself you need to pass the feature flag build_all, e.g.

cargo build --features build_all,

This requires that cmake is installed on the system, refer to the build page for more details.