
On Thu, 28 Jul 2022 20:24, cagsm <cumandgets0mem00f@...> wrote:
On Thu, Jul 28, 2022 at 6:12 PM Dirk Müller <dirk@dmllr.de> wrote:
can anyone please provide a robust and working means to determine the current level for us current leap 15.4 (and/or even 15.3) users?
First of all, there is no change whatsoever planned for Leap users, so Leap users don't have to worry about anything.
okay this means there is no new CPU feature requirements for Leap 15.5 and successor?
But to answer your question, simply run this: podman run registry.opensuse.org/opensuse/tumbleweed:latest /lib64/ld-linux-x86-64.so.2 --help
is this a single line command? I first also needed to zypper in podman
then all your above two(?) lines in a single line gave me a huge output. Does the current leap 15.3 and 15.4 /lib64/ld-linux-x86-64.so.2 not have these parameters and or outputs? its call only creates an error message as result.
never dealt with podman and containers so far. where does the bits of this download or packages get actually stored locally? thanks lots. ty
otherwise a short awk program will also give answers: [code] #!/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 } [/code] hint: in case of linefolding: each line starting with "if (level..." ends with "...level = [number]" this was taken from a stackexchange post about 1,5 years ago, url was: https://unix.stackexchange.com/questions/631217/how-do-i-check-if-my-cpu-sup... - Yamaban