Skip to content

Commit

Permalink
More docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Jan 23, 2024
1 parent 6447f77 commit bb1ed3b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,17 @@ entry main n = iterate 1000000000 (map (+1)) (iota n)
then you can run

```
$ futhark script -D tmp/infinite.fut 'main 10i64'
$ futhark script -D infinite.fut 'main 10i64'
```

to run it with debug prints. You can also use `-L` instead of `-D` to
just enable logging. The `main 10i64` is an arbitrary FutharkScript
expression. See the manpages for `futhark script` and `futhark
literate` for more information.
just enable logging. The `main 10i64` can be an arbitrary FutharkScript
expression.

The above will compile `infinite.fut` using the `c` backend before
running it. Pass a `--backend` option to `futhark script` to use a
different backend, or pass an already compiled program instead of a
`.fut` file (e.g., `infinite`).

See the manpages for `futhark script` and `futhark literate` for more
information.

0 comments on commit bb1ed3b

Please sign in to comment.