Man page - futhark-pyopencl(1)
Packages contains this manual
- futhark-pkg(1)
- futhark-autotune(1)
- futhark-opencl(1)
- futhark-wasm-multicore(1)
- futhark-profile(1)
- futhark-repl(1)
- futhark-c(1)
- futhark-python(1)
- futhark-dataset(1)
- futhark-multicore(1)
- futhark-test(1)
- futhark-ispc(1)
- futhark-wasm(1)
- futhark-fmt(1)
- futhark-bench(1)
- futhark-cuda(1)
- futhark-run(1)
- futhark-hip(1)
- futhark-pyopencl(1)
- futhark-literate(1)
- futhark-script(1)
- futhark(1)
- futhark-doc(1)
apt-get install futhark
Manual
FUTHARK-PYOPENCL
NAMESYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
COPYRIGHT
NAME
futhark-pyopencl - compile Futhark to Python and OpenCL
SYNOPSIS
futhark pyopencl [options...] infile
DESCRIPTION
futhark pyopencl translates a Futhark program to Python code invoking OpenCL kernels, which depends on Numpy and PyOpenCL. By default, the program uses the first device of the first OpenCL platform - this can be changed by passing -p and -d options to the generated program (not to futhark pyopencl itself).
The resulting program will otherwise behave exactly as one compiled with futhark py . While the sequential host-level code is pure Python and just as slow as in futhark py , parallel sections will have been compiled to OpenCL, and runs just as fast as when using futhark opencl . The kernel launch overhead is significantly higher, however, so a good rule of thumb when using futhark pyopencl is to aim for having fewer but longer-lasting parallel sections.
The generated code requires at least PyOpenCL version 2015.2.
OPTIONS
Accepts the same options as futhark-opencl .
SEE ALSO
futhark-python , futhark-opencl
COPYRIGHT
2013-2020, DIKU, University of Copenhagen