Skip to content

Commit

Permalink
Add enableLibraryProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
junjihashimoto committed Oct 23, 2019
1 parent b725b9f commit 816e3a7
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions nix/shared.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,20 @@ let
)
"--extra-include-dirs=${pkgsNew."libtorch_${postfix}"}/include/torch/csrc/api/include";
"hasktorch_${postfix}" =
overrideCabal
(haskellPackagesOld.callCabal2nix
"hasktorch"
../hasktorch
{ libtorch-ffi = haskellPackagesNew."libtorch-ffi_${postfix}"; }
)
(old: {
preConfigure = (old.preConfigure or "") + optionalString (!isDarwin) ''
export LD_PRELOAD=${pkgs.mkl}/lib/libmkl_rt.so
'';
}
);
enableLibraryProfiling
(overrideCabal
(haskellPackagesOld.callCabal2nix
"hasktorch"
../hasktorch
{ libtorch-ffi = haskellPackagesNew."libtorch-ffi_${postfix}"; }
)
(old: {
preConfigure = (old.preConfigure or "") + optionalString (!isDarwin) ''
export LD_PRELOAD=${pkgs.mkl}/lib/libmkl_rt.so
'';
}
)
);
"hasktorch-examples_${postfix}" =
# failOnAllWarnings
(haskellPackagesOld.callCabal2nix
Expand Down

0 comments on commit 816e3a7

Please sign in to comment.