Logo Pastebin.fr
Pastebin

Retrouvez, créez et partagez vos snippets en temps réel.

vibdbg

python3 - <<'PY'
need = ["sse4_2","avx","avx2","fma","bmi1","bmi2","popcnt"]
flags=set()
with open("/proc/cpuinfo") as f:
    for line in f:
        if line.lower().startswith("flags"):
            flags.update(line.split(":",1)[1].split())
            break
print("present:", " ".join([x for x in need if x in flags]))
print("missing:", " ".join([x for x in need if x not in flags]))
PY

Créé il y a 2 semaines.

Rechercher un Pastebin

Aucun paste trouvé.