[LibOS] regression: Fix OpenMP test on systems with a lot of cores

This commit is contained in:
Michał Kowalczyk
2020-10-01 20:04:05 +02:00
parent fcb8a6529a
commit 3c326a4c0d
+4 -1
View File
@@ -6,7 +6,10 @@
int v[10];
int main(void) {
#pragma omp parallel for
/* We need to limit the number of threads, otherwise OpenMP spawns as many threads as available
* logical cores on the machine, which may exceed the TCS count specified in the manifest.
*/
#pragma omp parallel for num_threads(10)
for (int i = 0; i < 10; i++) {
v[i] = i;
}