Crates.io | futhark-bindgen |
lib.rs | futhark-bindgen |
version | 0.2.8 |
source | src |
created_at | 2022-08-01 03:40:57.351479 |
updated_at | 2024-02-10 17:03:45.115712 |
description | Futhark binding generator |
homepage | |
repository | https://github.com/zshipko/futhark-bindgen |
max_upload_size | |
id | 636490 |
size | 95,022 |
A Futhark binding generator.
futhark-bindgen
uses the manifest created by Futhark
to generate bindings for multiple languages.
Supported languages:
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