logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

futhark-ispc - compile Futhark to multithreaded ISPC

Bugs

       Currently works only on Unix-like systems because of  a  dependency  on  pthreads.   Adding  support  for
       Windows would likely not be difficult.

Description

futharkispc  translates  a  Futhark  program  to  a  combination of C and ISPC code, with ISPC used for
       parallel loops.  It otherwise operates similarly to futhark-multicore.  You need to  have  ispc  on  your
       PATH.

Environment Variables

CC
          The C compiler used to compile the program.  Defaults to cc if unset.

       CFLAGS
          Space-separated list of options passed to the C compiler.  Defaults to -O3-std=c99-pthread if unset.

       ISPCFLAGS
          Space-separated list of options passed to ispc.  Defaults to -O3--woff if unset.

Executable Options

       Generated executables accept the same options as those generated by futhark-multicore.

Library Usage

       When  compiling  a  program foo.fut with futharkispc--library, a foo.kernels.ispc file is produced that
       must be compiled with ispc and linked with the final program. For example:

          $ ispc -o foo.kernels.o foo.kernels.ispc --addressing=64 --pic --woff -O3

Name

       futhark-ispc - compile Futhark to multithreaded ISPC

Options

       Accepts the same options as futhark-multicore.

See Also

futhark-multicore, futhark-test

Synopsis

       futhark ispc [options…] <program.fut>

See Also