Skip to content

Commit 80f2d4f

Browse files
committed
Add missing limitation on number of threads
Full scan was not limited to the s.max_threads. Fixed now.
1 parent 7ceb4dd commit 80f2d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kappa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static void full_scan(struct subset * const ss) {
4545

4646
assert(ss != NULL);
4747

48-
#pragma omp parallel for
48+
#pragma omp parallel for num_threads(s.max_threads)
4949
for(int i = 0; i < ss->kappa_data_count - 1; i++) {
5050
ss->data[i].kappa = i * s.full_scan_precision;
5151
perform_calculations(ss, &ss->data[i]);

0 commit comments

Comments
 (0)