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
Support Apple A15/M2 cpus through the existing VORTEX target
tags/v0.3.24
Martin Kroeker
GitHub
2 years ago
parent
326b200b08
commit
caa2945138
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
2 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
cpuid_arm64.c
+ 2
- 1
cpuid_arm64.c
View File
@@ -268,7 +268,8 @@ int detect(void)
#else
#else
#ifdef __APPLE__
#ifdef __APPLE__
sysctlbyname("hw.cpufamily",&value,&length,NULL,0);
sysctlbyname("hw.cpufamily",&value,&length,NULL,0);
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX;
if (value ==131287967|| value == 458787763 ) return CPU_VORTEX; //A12/M1
if (value == 3660830781) return CPU_VORTEX; //A15/M2
#endif
#endif
return CPU_ARMV8;
return CPU_ARMV8;
#endif
#endif
Write
Preview
Loading…
Cancel
Save