mirror of
https://github.com/OpenMathLib/OpenBLAS
synced 2026-06-12 00:41:42 +08:00
Merge pull request #4315 from martin-frbg/m3_cpufamily
Add OSX hw.cpufamily autodetection for Apple M3 as VORTEX
This commit is contained in:
@@ -270,6 +270,7 @@ int detect(void)
|
||||
sysctlbyname("hw.cpufamily",&value64,&length64,NULL,0);
|
||||
if (value64 ==131287967|| value64 == 458787763 ) return CPU_VORTEX; //A12/M1
|
||||
if (value64 == 3660830781) return CPU_VORTEX; //A15/M2
|
||||
if (value64 == 2271604202) return CPU_VORTEX; //A16/M3
|
||||
#endif
|
||||
return CPU_ARMV8;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user