Skip to content

Commit b691cb1

Browse files
committed
Document openblas_set_num_threads_local(). See #4425
1 parent 8cecf89 commit b691cb1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

cblas.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ extern "C" {
4040
/*Set the number of threads on runtime.*/
4141
void openblas_set_num_threads(int num_threads);
4242
void goto_set_num_threads(int num_threads);
43+
// "Local" means this number is used when OpenBLAS notices that
44+
// it is already in an OpenMP parallel region (`omp_in_parallel()`).
4345
int openblas_set_num_threads_local(int num_threads);
4446

4547
/*Get the number of threads on runtime.*/

driver/others/blas_server_omp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
int blas_server_avail = 0;
7171
int blas_omp_number_max = 0;
72-
int blas_omp_threads_local = 1;
72+
int blas_omp_threads_local = 1; // num threads to use when already inside omp_in_parallel()
7373

7474
extern int openblas_omp_adaptive_env(void);
7575

0 commit comments

Comments
 (0)