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 37 38 39 40 41 42 43
|
.. role:: ref(emphasis)
.. _futhark-wasm-multicore(1):
======================
futhark-wasm-multicore
======================
SYNOPSIS
========
futhark wasm-multicore [options...] <program.fut>
DESCRIPTION
===========
``futhark wasm-multicore`` translates a Futhark program to
multi-threaded WebAssembly code by first generating C as ``futhark
c``, and then using Emscripten (``emcc``). This produces a ``.js``
file that allows the compiled code to be invoked from JavaScript.
Executables implement the Futhark server protocol and can be run with
Node.js.
OPTIONS
=======
Accepts the same options as :ref:`futhark-c(1)`.
ENVIRONMENT VARIABLES
=====================
Respects the same environment variables as :ref:`futhark-wasm(1)`.
EXECUTABLE OPTIONS
==================
Generated executables accept the same options as those generated by
:ref:`futhark-wasm(1)`.
SEE ALSO
========
:ref:`futhark-c(1)`, :ref:`futhark-wasm(1)`
|