1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-14 13:01:05 +01:00
nix/src
Daniël de Kok 2de232d2b3 Add x86_64 compute levels as additional system types
When performing distributed builds of machine learning packages, it
would be nice if builders without the required SIMD instructions can
be excluded as build nodes.

Since x86_64 has accumulated a large number of different instruction
set extensions, listing all possible extensions would be unwieldy.
AMD, Intel, Red Hat, and SUSE have recently defined four different
microarchitecture levels that are now part of the x86-64 psABI
supplement and will be used in glibc 2.33:

https://gitlab.com/x86-psABIs/x86-64-ABI
https://lwn.net/Articles/844831/

This change uses libcpuid to detect CPU features and then uses them to
add the supported x86_64 levels to the additional system types. For
example on a Ryzen 3700X:

$ ~/aps/bin/nix -vv --version | grep "Additional system"
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
2021-02-22 09:11:15 +01:00
..
build-remote Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
cpptoml Revert the enum struct change 2020-06-18 22:11:26 +00:00
libcmd libcmd/markdown: handle allocation errors in lowdown_term_rndr 2021-02-06 13:14:57 +01:00
libexpr Include note about type of catched errors in tryEval documentation 2021-02-03 17:14:40 +01:00
libfetchers Add traces to errors while updating flake lock file 2021-01-27 14:02:54 +01:00
libmain Remove mkFlag() 2021-01-27 12:06:03 +01:00
libstore Add x86_64 compute levels as additional system types 2021-02-22 09:11:15 +01:00
libutil Add x86_64 compute levels as additional system types 2021-02-22 09:11:15 +01:00
nix Support --no-net for backwards compatibility 2021-02-07 20:44:56 +01:00
nix-build Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
nix-channel Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
nix-collect-garbage Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
nix-copy-closure Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
nix-env Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
nix-instantiate Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
nix-store Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
resolve-system-dependencies Fix macOS build 2021-01-21 12:46:22 +01:00