File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ extern "C" {
4040/*Set the number of threads on runtime.*/
4141void openblas_set_num_threads (int num_threads );
4242void 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()`).
4345int openblas_set_num_threads_local (int num_threads );
4446
4547/*Get the number of threads on runtime.*/
Original file line number Diff line number Diff line change 6969
7070int blas_server_avail = 0 ;
7171int 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()
7373int blas_is_num_threads_set_explicitly = 0 ; // tracks whether the user called openblas_set_num_threads()
7474
7575extern int openblas_omp_adaptive_env (void );
You can’t perform that action at this time.
0 commit comments