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:
68eb314
)
Add xcr0 (os support) check
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Sat, 5 Jan 2019 17:08:02 +0000
(18:08 +0100)
committer
GitHub
<noreply@github.com>
Sat, 5 Jan 2019 17:08:02 +0000
(18:08 +0100)
driver/others/dynamic.c
patch
|
blob
|
history
diff --git
a/driver/others/dynamic.c
b/driver/others/dynamic.c
index
7cc911d
..
4c96626
100644
(file)
--- a/
driver/others/dynamic.c
+++ b/
driver/others/dynamic.c
@@
-332,6
+332,8
@@
int support_avx512(){
ret=0; //OS does not even support AVX2
}
if((ebx & (1<<31)) != 0){
+ xgetbv(0, &eax, &edx);
+ if((eax & 0xe0) == 0xe0)
ret=1; //OS supports AVX512VL
}
return ret;