forked from lix-project/lix
![Daniël de Kok](/assets/img/avatar_default.png)
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
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
nix_tests = \
|
|
hash.sh lang.sh add.sh simple.sh dependencies.sh \
|
|
config.sh \
|
|
gc.sh \
|
|
gc-concurrent.sh \
|
|
gc-auto.sh \
|
|
referrers.sh user-envs.sh logging.sh nix-build.sh misc.sh fixed.sh \
|
|
gc-runtime.sh check-refs.sh filter-source.sh \
|
|
local-store.sh remote-store.sh export.sh export-graph.sh \
|
|
timeout.sh secure-drv-outputs.sh nix-channel.sh \
|
|
multiple-outputs.sh import-derivation.sh fetchurl.sh optimise-store.sh \
|
|
binary-cache.sh \
|
|
binary-cache-build-remote.sh \
|
|
nix-profile.sh repair.sh dump-db.sh case-hack.sh \
|
|
check-reqs.sh pass-as-file.sh tarball.sh restricted.sh \
|
|
placeholders.sh nix-shell.sh \
|
|
linux-sandbox.sh \
|
|
build-dry.sh \
|
|
build-remote-input-addressed.sh \
|
|
ssh-relay.sh \
|
|
nar-access.sh \
|
|
structured-attrs.sh \
|
|
fetchGit.sh \
|
|
fetchGitRefs.sh \
|
|
fetchGitSubmodules.sh \
|
|
fetchMercurial.sh \
|
|
signing.sh \
|
|
shell.sh \
|
|
brotli.sh \
|
|
pure-eval.sh \
|
|
check.sh \
|
|
plugins.sh \
|
|
search.sh \
|
|
nix-copy-ssh.sh \
|
|
post-hook.sh \
|
|
function-trace.sh \
|
|
recursive.sh \
|
|
describe-stores.sh \
|
|
flakes.sh \
|
|
content-addressed.sh \
|
|
build.sh \
|
|
compute-levels.sh
|
|
# parallel.sh
|
|
# build-remote-content-addressed-fixed.sh \
|
|
|
|
install-tests += $(foreach x, $(nix_tests), tests/$(x))
|
|
|
|
tests-environment = NIX_REMOTE= $(bash) -e
|
|
|
|
clean-files += $(d)/common.sh $(d)/config.nix
|
|
|
|
test-deps += tests/common.sh tests/config.nix tests/plugins/libplugintest.$(SO_EXT)
|