Merge pull request #93692 from danieldk/onednn-test-baseline-simd

oneDNN: use SSE 4.1 when running tests
This commit is contained in:
Daniël de Kok 2020-07-23 20:27:21 +02:00 committed by GitHub
commit bb259afcc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,9 @@ stdenv.mkDerivation rec {
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_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