Skip to content

diku-dk/futhark-server-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python implementation of the Futhark server protocol

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.

Basic usage

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 servr protocol command foo has an associated method cmd_foo.

About

Python implementation of the Futhark server protocol

Resources

License

Stars

Watchers

Forks

Packages

No packages published