#fft #opencl #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

#37 in #fft

Download history 14/week @ 2024-02-18 15/week @ 2024-02-25 10/week @ 2024-03-03 15/week @ 2024-03-10

54 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

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