forked from mirrors/nixpkgs
mxnet: 0.11.0 -> 1.1.0
This commit is contained in:
parent
6f96122d5b
commit
3179002f61
|
@ -8,7 +8,7 @@ assert cudnnSupport -> cudaSupport;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mxnet-${version}";
|
name = "mxnet-${version}";
|
||||||
version = "0.11.0";
|
version = "1.1.0";
|
||||||
|
|
||||||
# Submodules needed
|
# Submodules needed
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
|
@ -23,9 +23,12 @@ stdenv.mkDerivation rec {
|
||||||
++ lib.optionals cudaSupport [ cudatoolkit nvidia_x11 ]
|
++ lib.optionals cudaSupport [ cudatoolkit nvidia_x11 ]
|
||||||
++ lib.optional cudnnSupport cudnn;
|
++ lib.optional cudnnSupport cudnn;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags =
|
||||||
(if cudaSupport then "-DCUDA_ARCH_NAME=All" else "-DUSE_CUDA=OFF")
|
(if cudaSupport then [
|
||||||
] ++ lib.optional (!cudnnSupport) "-DUSE_CUDNN=OFF";
|
"-DCUDA_ARCH_NAME=All"
|
||||||
|
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
|
||||||
|
] else [ "-DUSE_CUDA=OFF" ])
|
||||||
|
++ lib.optional (!cudnnSupport) "-DUSE_CUDNN=OFF";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm755 libmxnet.so $out/lib/libmxnet.so
|
install -Dm755 libmxnet.so $out/lib/libmxnet.so
|
||||||
|
|
Loading…
Reference in a new issue