No need to set num_threads, as num_threads(num)

will cause more new threads' overhead in some scenarios.
In openMP, if your required threads num is larger than
your last used num, then new num threads will be created.
This commit is contained in:
Shan Kang 2022-02-25 17:53:25 +08:00
parent 522f809825
commit c655125145
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
break;
}
#pragma omp parallel for num_threads(num) schedule(OMP_SCHED)
#pragma omp parallel for schedule(OMP_SCHED)
for (i = 0; i < num; i ++) {
#ifndef USE_SIMPLE_THREADED_LEVEL3