New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable profile by default #216
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! actually, I've spotted a problem
Hi @junjihashimoto, your last commit, b725b9f, only added the |
for instance, instead of "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
'';
}
); write "hasktorch_${postfix}" =
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
'';
}
)
); |
@tscholak BTW, the failure of CI on stack-macos is the same as this issue(fpco/inline-c#102). |
@junjihashimoto, in order to fix this nasty macOS bug, I introduced this hot-fix: Lines 46 to 48 in b725b9f
I'm surprised it's not working any longer |
2a69420
to
816e3a7
Compare
@junjihashimoto it’s super hard to make both cabal and stack happy about this cx flag on all platforms. That’s why I went for this hot-fix solution in shared.nix |
@tscholak |
Co-Authored-By: Torsten Scholak <torsten.scholak@googlemail.com>
1f9992d
to
47de11a
Compare
sweet, @junjihashimoto ! |
I can try to fix the nix-macos build later today if it should still fail |
nix-macos fails during setup of nix. |
O.o, ok. I'll follow this one. |
hasktorch is development phase, so we are going to take profile many times.
This pr enables profile by default.