futhark
Safe HaskellNone
LanguageGHC2021

Futhark.IR.Run

Description

Interpreter for the IR.

Running an IR program requires specifying the name of an entry point along with values for the entry point parameters. Top level statements (progConsts) are evaluated first, and then the specified entry point is invoked with the provided values.

The goal of this interpreter is not performance, but operational clarity. Hence you should not expect programs to run fast at all.

Synopsis

Documentation

runSOACS :: Prog SOACS -> Name -> [Value] -> IO (Either Text [Value]) Source #

Run a program in the SOAC IR

runGPU :: Prog GPU -> Name -> [Value] -> IO (Either Text [Value]) Source #

Run a program in the GPU IR.