Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 647 Bytes

openmp.md

File metadata and controls

23 lines (15 loc) · 647 Bytes

Faasm OpenMP Support

Faasm supports OpenMP by implementing the OpenMP runtime functions as part of the host interface (see below for details).

OpenMP functions

To compile, upload and run the prebuilt OpenMP demo function:

inv compile omp hellomp
inv upload omp hellomp
inv invoke omp hellomp

Adding support for new OpenMP runtime functions

Runtime OMP functions are implemented just like any other host interface function and can be found in src/wasm/syscalls_openmp.cpp.

The list of acceptable unresolved imports is in lib-faasmp/faasmp.imports.

To add a new function you need to include it in both of these files.