FUTHARK-HIP(1) | Futhark | FUTHARK-HIP(1) |
futhark-hip - compile Futhark to HIP
futhark hip [options...] <program.fut>
futhark hip translates a Futhark program to C code invoking HIP kernels, and either compiles that C code with a C compiler to an executable binary program, or produces a .h and .c file that can be linked with other code. The standard Futhark optimisation pipeline is used.
futhark hip uses -lhiprtc -lamdhip64 to link. If using --library, you will need to do the same when linking the final binary. Although the HIP backend can be made to work on NVIDIA GPUs, you are probably better off using the very similar futhark-cuda.
Accepts the same options as futhark-c.
CC
CFLAGS
Generated executables accept the same options as those generated by futhark-c. For commonality, the options use OpenCL nomenclature ("group" instead of "thread block").
The following additional options are accepted.
If run without --library, futhark hip will invoke a C compiler to compile the generated C program into a binary. This only works if the C compiler can find the necessary HIP libraries.
futhark
2013-2020, DIKU, University of Copenhagen
January 6, 2025 | 0.25.23 |