Skip to content

Commit 5c6c2cd

Browse files
authored
Merge pull request #2775 from Guobing-Chen/Fix_OMP_threads_specify
Fix OMP num specify issue
2 parents e54be4b + 0c1c903 commit 5c6c2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/blas_server_omp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
335335
break;
336336
}
337337

338-
#pragma omp parallel for schedule(OMP_SCHED)
338+
#pragma omp parallel for num_threads(num) schedule(OMP_SCHED)
339339
for (i = 0; i < num; i ++) {
340340

341341
#ifndef USE_SIMPLE_THREADED_LEVEL3

0 commit comments

Comments
 (0)