Genfut
This is a tool to generate a Rust library to interact with exported functions from a Futhark file.
Usage
As an executable binary
genfut <Rust lib name> <futhark_file.fut>
Note that use of bindings
module may not be generally portable. Use with caution.
As a library
build.rs
use ;
Example on how to use a library generated with genfut
use ;
MacOS
For the time being, due to quirks of the total toolchain, MacOS is unsupported. Generated libraries will build on MacOS and do not require that OpenCL be installed. However, calling any of the API functions at runtime may result in an error, so users of that library should avoid doing so on MacOS.