Merge pull request #94220 from danieldk/onednn-disable-tests

oneDNN: disable tests to avoid illegal instructions
This commit is contained in:
Daniël de Kok 2020-08-01 08:17:39 +02:00 committed by GitHub
commit 84a8b4d461
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,21 +18,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
doCheck = true; # Tests fail on some Hydra builders, because they do not support SSE4.2.
doCheck = false;
cmakeFlags = [
# oneDNN compiles with -msse4.1 by default, but not all x86_64
# CPUs support SSE 4.1.
"-DDNNL_ARCH_OPT_FLAGS="
];
# The test driver doesn't add an RPath to the build libdir # The test driver doesn't add an RPath to the build libdir
preCheck = '' preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/src export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/src
'' + lib.optionalString stdenv.isx86_64 ''
# Use baseline SIMD in case CPU features get misdetected.
export DNNL_MAX_CPU_ISA=SSE41
''; '';
# The cmake install gets tripped up and installs a nix tree into $out, in # The cmake install gets tripped up and installs a nix tree into $out, in