Draft: aarch64: add DAV1D_ARM_CPU_FLAG_DOTP
1 unresolved thread
1 unresolved thread
Runtime detection on Linux using HWCAP_CPUID for user space access to the CPU feature registers. See https://www.kernel.org/doc/html/latest/arm64/cpu-feature-registers.html
Runtime detection on MacOS using sysctlbyname("hw.cpufamily") and matching known ARMv8.4-A CPUs. MacOS unfortunately doesn't expose a flag for this feature.
marked as draft as it is pointless without users.
Merge request reports
Activity
Filter activity
- Automatically resolved by Janne Grunau
- Resolved by Janne Grunau
124 size_t size = sizeof(cpu_family); 125 /* there is no explicit flag for dot product availability 126 * enable it on know ARMv8.4-A CPUs 127 */ 128 int ret = sysctlbyname("hw.cpufamily", &cpu_family, &size, NULL, 0); 129 if (!ret) { 130 switch (cpu_family) 131 { 132 case CPUFAMILY_ARM_LIGHTNING_THUNDER: // explicitit fall through 133 case CPUFAMILY_ARM_FIRESTORM_ICESTORM: 134 flags |= DAV1D_ARM_CPU_FLAG_DOTP; 135 break; 136 default: 137 break; 138 } 139 } mentioned in merge request !1609 (merged)
Superseeded by !1609 (merged).