Stephen John Smoogen wrote:
> #!/usr/bin/awk -f
>
> BEGIN {
> while (!/flags/) if (getline < "/proc/cpuinfo" != 1) exit 1
> if (/lm/&&/cmov/&&/cx8/&&/fpu/&&/fxsr/&&/mmx/&&/syscall/&&/sse2/) level =
> 1
> if (level == 1 &&
> /cx16/&&/lahf/&&/popcnt/&&/sse4_1/&&/sse4_2/&&/ssse3/) level = 2
> if (level == 2 &&
> /avx/&&/avx2/&&/bmi1/&&/bmi2/&&/f16c/&&/fma/&&/abm/&&/movbe/&&/xsave/)
> level = 3
> if (level == 3 &&
> /avx512f/&&/avx512bw/&&/avx512cd/&&/avx512dq/&&/avx512vl/) level = 4
> if (level > 0) { print "CPU supports x86-64-v" level; exit level + 1 }
> exit 1
> }That script says "x86-64-v1" on my previous workstation, which is now a server. But I'm already planning to reinstall that one with Debian, to get less upgrade churn while keeping Ada and ZFS, so it won't hurt me if Fedora stops working there. Björn Persson
pgptuEq6E5mQJ.pgp
Description: OpenPGP digital signatur
_______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
