omp_get_max_threads instead of omp_get_num_threads for gcc compiler adaption

Signed-off-by: TejeshPala <tejesh.pala@fau.de>
This commit is contained in:
TejeshPala 2024-01-13 15:09:03 +01:00
parent c73efea786
commit 7ee250161a
2 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ int main(int argc, char** argv) {
case omp_sched_auto: strcpy(schedType, "auto"); break;
}
nthreads = omp_get_num_threads();
nthreads = omp_get_max_threads();
}
printf("Num threads: %d\n", nthreads);

View File

@ -311,7 +311,7 @@ int main(int argc, char** argv) {
case omp_sched_auto: strcpy(schedType, "auto"); break;
}
nthreads = omp_get_num_threads();
nthreads = omp_get_max_threads();
}
printf("Num threads: %d\n", nthreads);