projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b19442
)
Let openblas_get_num_threads return the number of active threads
author
Jerome Robert
<jeromerobert@gmx.com>
Tue, 26 Jan 2016 12:04:16 +0000
(13:04 +0100)
committer
Jerome Robert
<jeromerobert@gmx.com>
Tue, 26 Jan 2016 12:04:16 +0000
(13:04 +0100)
... not the number of allocated threads.
Close #760
driver/others/memory.c
patch
|
blob
|
history
diff --git
a/driver/others/memory.c
b/driver/others/memory.c
index
af7bd81
..
1075925
100644
(file)
--- a/
driver/others/memory.c
+++ b/
driver/others/memory.c
@@
-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
}