futhark-bindgen

Crates.iofuthark-bindgen
lib.rsfuthark-bindgen
version0.2.8
sourcesrc
created_at2022-08-01 03:40:57.351479
updated_at2024-02-10 17:03:45.115712
descriptionFuthark binding generator
homepage
repositoryhttps://github.com/zshipko/futhark-bindgen
max_upload_size
id636490
size95,022
zach (zshipko)

documentation

https://docs.rs/futhark-bindgen

README

futhark-bindgen

A Futhark binding generator.

futhark-bindgen uses the manifest created by Futhark to generate bindings for multiple languages.

Supported languages:

  • Rust
  • OCaml

Installation

With cargo:

$ cargo install futhark-bindgen

From source:

$ make install PREFIX=~/.local/bin

Command-line usage

$ 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

Example projects

Commit count: 88

cargo fmt