FUTHARK-SCRIPT(1) | Futhark | FUTHARK-SCRIPT(1) |
futhark-script - execute FutharkScript expression
futhark script [options...] program [expression]
The command futhark script foo.fut expr will compile foo.fut, run the provided FutharkScript expression expr, and finally print the result to stdout. It is essentially a simpler way to access the evaluation facilities of futhark-literate, and provides the same FutharkScript facilities, with a few additional built-in procedures documented below.
If the provided program does not have a .fut extension, it is assumed to be a previously compiled server-mode program, and simply run directly.
When -e and -f are used, the expressions are run in the order provided, and only the value of the last expression is printed. This implies multiple uses of these options is only useful when they invoke procedures with side effects.
FutharkScript expressions can only refer to names defined in the file passed to futhark script, not any names in imported files.
If the result of the expression does not have an external representation (e.g. is an array of tuples), the value that is printed is misleading and somewhat nonsensical.
futhark-test, futhark-bench, futhark-literate
2013-2020, DIKU, University of Copenhagen
January 6, 2025 | 0.25.23 |