| 31 | } |
| 32 | |
| 33 | void Settings::ApplyOpenMPSettings() |
| 34 | { |
| 35 | const int requested_threads = EffectiveOMPThreads(); |
| 36 | if (applied_omp_threads != requested_threads) { |
| 37 | omp_set_num_threads(requested_threads); |
| 38 | applied_omp_threads = requested_threads; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // Create or Get an instance of the settings singleton |
| 43 | Settings *Settings::Instance() |