parallel-runtimes / lomp

Little OpenMP Library
Apache License 2.0
153 stars 17 forks source link

Implement a Serial Version of LOMP #21

Closed mjklemm closed 2 years ago

mjklemm commented 3 years ago

Describe the solution you'd like

For some experiments, it would be good to have a serial version of the LOMP runtime, that reduces implementation complexity by running just all supported OpenMP in the main thread, while still providing the necessary callbacks that are emitted by the compiler.

Describe alternatives you've considered

The OpenMP API has a sub library that implements the OpenMP API runtime routines with single-thread semantics. But that library does not provide the entrypoints that an OpenMP compiler generates. Instead, it is meant to be a simple alternative if the compiler ignores the OpenMP directives and the developer does not want to remove the routine invocations.