Merge pull request #762 from jeromerobert/bug760

Let openblas_get_num_threads return the number of active threads
This commit is contained in:
Zhang Xianyi 2016-01-26 08:45:16 -06:00
commit f5df444ceb
1 changed files with 3 additions and 1 deletions

View File

@ -357,7 +357,9 @@ int openblas_get_num_threads(void) {
#ifndef SMP
return 1;
#else
return blas_get_cpu_number();
// init blas_cpu_number if needed
blas_get_cpu_number();
return blas_cpu_number;
#endif
}