This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
OSchip
/
OpenBLAS
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
66
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Refs
#124
. Check XSAVE flag on x86 CPU.
tags/v0.2.7
Zhang Xianyi
13 years ago
parent
f2fb8c7035
commit
65ffead0cf
2 changed files
with
2 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
cpuid_x86.c
+1
-1
driver/others/dynamic.c
+ 1
- 1
cpuid_x86.c
View File
@@ -130,7 +130,7 @@ int support_avx(){
int ret=0;
int ret=0;
cpuid(1, &eax, &ebx, &ecx, &edx);
cpuid(1, &eax, &ebx, &ecx, &edx);
if ((ecx & (1 << 28)) != 0 && (ecx & (1 << 27)) != 0){
if ((ecx & (1 << 28)) != 0 && (ecx & (1 << 27)) != 0
&& (ecx & (1 << 26)) != 0
){
xgetbv(0, &eax, &edx);
xgetbv(0, &eax, &edx);
if((eax & 6) == 6){
if((eax & 6) == 6){
ret=1; //OS support AVX
ret=1; //OS support AVX
+ 1
- 1
driver/others/dynamic.c
View File
@@ -92,7 +92,7 @@ int support_avx(){
int ret=0;
int ret=0;
cpuid(1, &eax, &ebx, &ecx, &edx);
cpuid(1, &eax, &ebx, &ecx, &edx);
if ((ecx & (1 << 28)) != 0 && (ecx & (1 << 27)) != 0){
if ((ecx & (1 << 28)) != 0 && (ecx & (1 << 27)) != 0
&& (ecx & (1 << 26)) != 0
){
xgetbv(0, &eax, &edx);
xgetbv(0, &eax, &edx);
if((eax & 6) == 6){
if((eax & 6) == 6){
ret=1; //OS support AVX
ret=1; //OS support AVX
Write
Preview
Loading…
Cancel
Save