Skip to content

Commit

Permalink
Merge pull request #93692 from danieldk/onednn-test-baseline-simd
Browse files Browse the repository at this point in the history
oneDNN: use SSE 4.1 when running tests
  • Loading branch information
danieldk committed Jul 23, 2020
2 parents 2acbca9 + 24737e5 commit bb259af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/libraries/oneDNN/default.nix
Expand Up @@ -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
Expand Down

0 comments on commit bb259af

Please sign in to comment.