A Futhark binding generator.
futhark-bindgen
uses the manifest created by Futhark
to generate bindings for multiple languages.
Supported languages:
- Rust
- OCaml
With cargo
:
$ cargo install futhark-bindgen
From source:
$ make install PREFIX=~/.local/bin
$ futhark-bindgen run test.fut test.rs # Rust output to ./test.rs
$ futhark-bindgen run test.fut test.ml # OCaml output to ./test.ml
The --backend
flag can be used to select which Futhark backend to use: c
, multicore
,
cuda
, opencl
or ispc
See the output of futhark-bindgen --help
for more information