FUTHARK-ISPC(1)

πŸ“¦
version 0.25.32 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– FUTHARK-ISPC(1) πŸ’–

okay bestie, welcome to the futhark-ispc page β€” it lives in section 1 of the Futhark manual and it's literally the tool that turns your Futhark into multithreaded ISPC πŸ”₯


✨ NAME ✨

futhark-ispc β€” compile Futhark to multithreaded ISPC πŸ¦‹


🌸 SYNOPSIS 🌸

futhark ispc [options...] <program.fut>

πŸ’… DESCRIPTION πŸ’…

so here's the tea: futhark ispc takes your Futhark program and translates it into a lil combo of C and ISPC code, and ISPC is the one handling all the parallel loops. main character energy fr πŸ’«

Other than that it acts basically the same as futhark-multicore. And heads up bestie β€” you need to have ispc chillin' on your PATH. no ispc, no vibes 😭


πŸŽ€ OPTIONS πŸŽ€

It accepts the exact same options as futhark-multicore. that's it, that's the section, go read that one, iykyk πŸ‘‘


🌈 ENVIRONMENT VARIABLES 🌈

  • CC β€” the C compiler that compiles your program. If you leave it unset it defaults to cc. πŸ’œ
  • CFLAGS β€” a space-separated list of options you pass to the C compiler. If it's unset, it defaults to -O3 -std=c99 -pthread. ✨
  • ISPCFLAGS β€” a space-separated list of options you pass to ispc. If it's unset, it defaults to -O3 --woff. πŸ’–

⭐ EXECUTABLE OPTIONS ⭐

The executables that get generated accept the same options as the ones generated by futhark-multicore. twin behaviour fr fr 🫢


🧚 LIBRARY USAGE 🧚

okay this part matters. when you compile a program called foo.fut using futhark ispc --library, you get a foo.kernels.ispc file dropped into existence. that file has to be compiled with ispc and then linked with your final program. no skipping steps bestie πŸ™ˆ

like, for example:

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

πŸ’€ BUGS πŸ’€

ngl, right now this only works on Unix-like systems, because it depends on pthreads. the good news? adding Windows support would likely not be difficult. so like… someone should do it πŸ‘€


πŸ‘‘ SEE ALSO πŸ‘‘

futhark-multicore, futhark-test


Copyright 2013-2020, DIKU, University of Copenhagen πŸ’œ

so yeah, that's the whole vibe check. this was Futhark version 0.25.32, dated Mar 11, 2026, and that's the FUTHARK-ISPC(1) page β€” slay, go compile something iconic βœ¨πŸ’…

πŸ“¦ where this page comes from