FUTHARK-MULTICORE(1)
β¨ NAME β¨
okay so like, this is futhark-multicore β it's the Futhark manual page (yes bestie, section 1 of the Futhark manual) and it compiles Futhark to multithreaded C π
πΈ SYNOPSIS πΈ
futhark multicore [options...] <program.fut>
π¦ DESCRIPTION π¦
so futhark multicore takes a Futhark program and translates it into multithreaded C code. and then? two roads, bestie π
it either compiles that C code with a C compiler into an executable binary program, OR it produces a .h file and a .c file that you can link with other code. your choice, main character energy either way.
and ngl the standard Futhark optimisation pipeline is used. no shortcuts, we're doing the full glow-up π
the resulting program will read the arguments to the entry point (main by default) from standard input and print its return value on standard output. and the arguments are read and printed in Futhark syntax. that's the vibe check, that's the whole groove π
π OPTIONS π
it accepts the same options as futhark-c. literally the exact same ones, no cap. go look at futhark-c <#futhark-c-1> for the full tea π«Ά
π§ ENVIRONMENT VARIABLES π§
CCβ the C compiler used to compile the program. defaults toccif unset. she's the one holding the compiler, periodt β¨CFLAGSβ a space-separated list of options passed to the C compiler. defaults to-O3 -std=c99 -pthreadif unset. iconic defaults tbh π₯
π EXECUTABLE OPTIONS π
the generated executables accept the same options as those generated by futhark-c <#futhark-c-1>. yep, all of them. but wait β there's more π the following additional options are also accepted:
--num-threads=INTβ use this many physical threads. that's it. that's the setting. she's simple, she's powerful π
π BUGS π
okay so here's the thing. it currently works only on Unix-like systems because of a dependency on pthreads. yeah. that's the limitation, fr fr.
but the manpage says adding support for Windows would likely not be difficult π«Ά so likeβ¦ someone go do it? not me tho π
π₯ SEE ALSO π₯
futhark-c <#futhark-c-1>futhark-test <#futhark-test-1>
π Copyright π
2013-2020, DIKU, University of Copenhagen
and that's the whole page bestie!! this was Futhark manual version 0.25.32, dated Mar 11, 2026 β go compile something multithreaded and slay πβ¨πΈπ¦π
π
π¦ 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