Let openblas_get_num_threads return the number of active threads
... not the number of allocated threads. Close #760
This commit is contained in:
parent
0b194426f8
commit
0d87c1ffb6
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue