#opencl #fft #ffi

clfft

Bindings for clFFT, a FFT library for OpenCL

6 releases

Uses old Rust 2015

0.3.3 Oct 2, 2018
0.3.2 Aug 1, 2018
0.3.1 Sep 8, 2017
0.3.0 Jul 26, 2017
0.1.0 Feb 14, 2017

#39 in #opencl

40 downloads per month
Used in 4 crates (via basic_dsp_vector)

Apache-2.0

8MB
73K SLoC

C++ 70K SLoC // 0.1% comments Python 1K SLoC // 0.2% comments Rust 838 SLoC // 0.3% comments C 460 SLoC // 0.3% comments

Contains (WOFF font, 120KB) docs/bindings/Heuristica-Italic.woff, (WOFF font, 90KB) docs/bindings/FiraSans-Medium.woff, (WOFF font, 92KB) docs/bindings/FiraSans-Regular.woff, (WOFF font, 56KB) docs/bindings/SourceCodePro-Regular.woff, (WOFF font, 56KB) SourceCodePro-Semibold.woff, (WOFF font, 49KB) docs/bindings/SourceSerifPro-Bold.woff and 1 more.

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.

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.

Dependencies