packages feed

futhark-0.29.1: docs/man/futhark-wasm-multicore.rst

.. 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``).  The files produced are
the same as for :ref:`futhark-wasm(1)`.

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)`.  The following additional options are
accepted.

--num-threads=INT

  Use this many threads.

SEE ALSO
========

:ref:`futhark-c(1)`, :ref:`futhark-wasm(1)`