From 7ee250161a845e7479c0d812a922e6f039124d20 Mon Sep 17 00:00:00 2001 From: TejeshPala Date: Sat, 13 Jan 2024 15:09:03 +0100 Subject: [PATCH] omp_get_max_threads instead of omp_get_num_threads for gcc compiler adaption Signed-off-by: TejeshPala --- gromacs/main.c | 2 +- lammps/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gromacs/main.c b/gromacs/main.c index 50ff3df..91030eb 100644 --- a/gromacs/main.c +++ b/gromacs/main.c @@ -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); diff --git a/lammps/main.c b/lammps/main.c index d769a65..b291b52 100644 --- a/lammps/main.c +++ b/lammps/main.c @@ -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);