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:
04226f1
)
Fix AVX512 capability test (always returning zero)
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Sat, 23 Nov 2019 21:38:07 +0000
(22:38 +0100)
committer
GitHub
<noreply@github.com>
Sat, 23 Nov 2019 21:38:07 +0000
(22:38 +0100)
from #2322
driver/others/dynamic.c
patch
|
blob
|
history
diff --git
a/driver/others/dynamic.c
b/driver/others/dynamic.c
index
f1cd3c6
..
a4ff0e0
100644
(file)
--- a/
driver/others/dynamic.c
+++ b/
driver/others/dynamic.c
@@
-329,7
+329,7
@@
int support_avx512(){
if (!support_avx())
return 0;
cpuid(7, &eax, &ebx, &ecx, &edx);
- if((ebx & (1<<7))
!= 1
){
+ if((ebx & (1<<7))
== 0
){
ret=0; //OS does not even support AVX2
}
if((ebx & (1<<31)) != 0){