{"repo":"HenrikBengtsson/x86-64-level","free":true,"listed":false,"github":"https://github.com/HenrikBengtsson/x86-64-level","clone":"git clone https://github.com/HenrikBengtsson/x86-64-level.git","description":"x86-64-level - Get the x86-64 Microarchitecture Level on the Current Machine","language":"Shell","stars":177,"topics":["bash","linux","tool","x86-64","cpu","microarchitecture"],"license":"CC-BY-SA-4.0","category":"cli-tools","readme_excerpt":"x86-64-level - Get the x86-64 Microarchitecture Level on the Current Machine TL;DR: The x86-64-level tool identifies if the current CPU supports x86-64-v1, x86-64-v2, x86-64-v3, or x86-64-v4, e.g. Background x86-64 is a 64-bit version of the x86 CPU instruction set supported by AMD and Intel CPUs, among others. Since the first generations of CPUs, more low-level CPU features have been added over the years. The x86-64 CPU features can be grouped into four [CPU microarchitecture levels]: Level CPU Features :---------- :--------------------------------------------------- x86-64-v1 CMOV, CX8, FPU, FXSR, MMX, OSFXSR, SCE, SSE, SSE2 x86-64-v2 CMPXCHG16B, LAHF-SAHF, POPCNT, SSE3, SSE4\\ 1, SSE4\\ 2, SSSE3 x86-64-v3 AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, OSXSAVE x86-64-v4 AVX512F, AVX512BW, AVX512CD, AVX512DQ, AVX512VL The x86-64-v1 level is the same as the original, baseline x86-64 level. These levels are subsets of each other, i.e. x86-64-v1 ⊂ x86-64-v2 ⊂ x86-64-v3 ⊂ x86-64-v4. For a CPU to support a level, it must support all CPU features of that version level, and, because they are subsets of each other, all those of the lower versions. Software can be written so that it uses the most powerful set of CPU features available. This optimization happens at compile time and allows the software to run more efficiently. However, a software binary that was compiled towards the x86-64-v4 level cannot run on an older machine with a CPU that only supports, say, x86-64-v3. If we attem","default_branch":null,"files":null,"tree":[],"storefront":"/r/HenrikBengtsson","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HenrikBengtsson/x86-64-level/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}