Browse Source

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.
pull/3546/head
Shan Kang 4 years ago
parent
commit
c655125145
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      driver/others/blas_server_omp.c

+ 1
- 1
driver/others/blas_server_omp.c 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


Loading…
Cancel
Save