FUTHARK-ISPC(1)
π 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 tocc. π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 toispc. 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
- ubuntu resolute: futhark 0.25.32-3build1 Β· ISC
- ubuntu stonking: futhark 0.25.32-3build1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms