Let openblas_get_num_threads return the number of active threads

... not the number of allocated threads.

Close #760
This commit is contained in:
Jerome Robert 2016-01-26 13:04:16 +01:00
parent 0b194426f8
commit 0d87c1ffb6
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
}