git.iko.soy/typeable/nixpkgs
on master help sign in
mxnet: fix library dependencies.

- mxnet now builds the open source MKL DNN library. However, this was not included with the build. - mxnet builds its own OpenMP library, even when OpenMP is provided by the system. This leads to problems, so remove the included OpenMP implementation: https://github.com/apache/incubator-mxnet/pull/12160

commit590ce7d1ae5512360da09257c4bf8936fc6b6827 authorDaniël de Kok <me@danieldk.eu> dateTue 4 Sep 2018, 20:27 (8 years ago) parentda0c385
1 file changed+6−3
pkgs/applications/science/math/mxnet/default.nix+6−3
pkgs/applications/science/math/mxnet/default.nix+6−3
@@ -34,11 +34,14 @@ stdenv.mkDerivation rec {
3434 postPatch = ''
3535 substituteInPlace 3rdparty/mkldnn/tests/CMakeLists.txt \
3636 --replace "/bin/bash" "${bash}/bin/bash"
37+
38+ # Build against the system version of OpenMP.
39+ # https://github.com/apache/incubator-mxnet/pull/12160
40+ rm -rf 3rdparty/openmp
3741 '';
3842
39− installPhase = ''
40− install -Dm755 libmxnet.so $out/lib/libmxnet.so
41− cp -r ../include $out
43+ postInstall = ''
44+ rm "$out"/lib/*.a
4245 '';
4346
4447 enableParallelBuilding = true;