On 2022-09-03 15:32:18 Dave Howorth wrote:
|On Sat, 3 Sep 2022 11:37:14 -0500 | |"David C. Rankin" <drankinatty@suddenlinkmail.com> wrote: |> On 9/3/22 06:55, Patrick Shanahan wrote: |> > ollowing script will tell you what your processor level is, |> > |> > #!/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 } |> |> How does that work for processors with avx, but no avx2? | |And why should I have to care about any of it?
See David Rankin's post @ 2022-09-02 23:38. Leslie -- Operating System: Linux Distribution: openSUSE Leap 15.4 x86_64 Desktop Environment: Trinity