File: futhark-python.rst

package info (click to toggle)
haskell-futhark 0.25.32-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,236 kB
  • sloc: haskell: 100,484; ansic: 12,100; python: 3,440; yacc: 785; sh: 561; javascript: 558; lisp: 399; makefile: 277
file content (36 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.. role:: ref(emphasis)

.. _futhark-py(1):

==============
futhark-python
==============

SYNOPSIS
========

futhark python [options...] infile

DESCRIPTION
===========

``futhark python`` translates a Futhark program to sequential Python
code, which depends on Numpy.

The resulting program will read the arguments to the ``main`` function
from standard input and print its return value on standard output.
The arguments are read and printed in Futhark syntax.

The generated code is very slow, likely too slow to be useful.  It is
more interesting to use this command's big brother,
:ref:`futhark-pyopencl(1)`.

OPTIONS
=======

Accepts the same options as :ref:`futhark-c(1)`.

SEE ALSO
========

:ref:`futhark-pyopencl(1)`