parallel-runtimes / lomp

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

Implement changing thread count #2

Open JimCownie opened 3 years ago

JimCownie commented 3 years ago

The LOMP library does not currently handle changing the number of threads.

Fully supporting the OpenMP standard and allowing changes in the number of active threads (by both omp_set_num_threads() or the num_threads()clause of omp parallel directive) would be a useful enhancement to the runtime.

A further enhancement would be additionally to support the OpenMP 5.1 features for quiescing the runtime. (https://www.openmp.org/spec-html/5.1/openmpse36.html#x201-2340003.6)