Skip to content

Commit

Permalink
oneDNN: compile without -msse4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldk committed Jul 24, 2020
1 parent ac33603 commit 8af1c4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/libraries/oneDNN/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ stdenv.mkDerivation rec {

doCheck = true;

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
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src
Expand Down

0 comments on commit 8af1c4d

Please sign in to comment.