Skip to content

Commit

Permalink
fixup init num threads
Browse files Browse the repository at this point in the history
  • Loading branch information
mblum94 committed Aug 16, 2024
1 parent 2a772cf commit b3be61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/num/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static void num_init_internal(void)

p = omp_get_max_threads();

int running_thr = omp_get_team_size(1); //get number of running top level threads
int running_thr = omp_get_num_threads(); //get number of running top level threads
p = MAX(1, p / running_thr);
#endif

Expand Down

0 comments on commit b3be61a

Please sign in to comment.