mirror of
https://github.com/amd/blis.git
synced 2026-05-21 17:08:17 +00:00
Apart from "BLIS_NUM_THREADS" or OMP_NUM_THREADS, number of threads can also be set by the application by calling omp_set_num_threads(int ); In the function "bli_thread_init_rntm_from_env()" when environment variabes are not set, number of threads is inferred by calling the API - omp_get_max_threads(). Now by default if OMP_NUM_THREADS or BLIS_NUM_THREADS are not set - it will run with omp_get_max_threads() threads. This feature is only enabled when BLIS is configured with openmp parallelization. Change-Id: Ic2b48bfcd33368e14758f2bb914c1545f7b0c3e6