This library library provides an implementation of the Futhark server protocol. This can be used to interact with Futhark code in a more decoupled manner than through an FFI.
First compile a Futhark program foo.fut to a server-mode binary with
e.g. futhark c --server foo.fut. Then instantiate a
futhark_server.Server object:
import futhark_server
with futhark_server.Server('./foo') as server:
...The Server class has various methods for interacting with the
server. In particular, every serer protocol command foo has an
associated method cmd_foo.