OpenMP - llersch/pibench GitHub Wiki
PiBench uses OpenMP internally for multithreading.
The environment variable OMP_NESTED=true
must be set to guarantee correctness.
Check here for details.
Other environment variables such as OMP_PLACES
and OMP_PROC_BIND
can be set to control the multithreaded behavior.
For example:
$ OMP_PLACES=cores OMP_PROC_BIND=true OMP_NESTED=true ./PiBench [...]
Note for Clang users: you may need to additionally install OpenMP runtime, on Arch Linux this can be done by installing the package extra/openmp
.