pytorch: Move cudatoolkit to nativeBuildInputs

nvcc must be available in PATH at build time; otherwise CUDA support
will be disabled.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2019-04-21 19:31:55 -07:00 committed by Frederik Rietdijk
parent a416ef58b7
commit 27d13628ee

View File

@ -81,11 +81,11 @@ in buildPythonPackage rec {
cmake
utillinux
which
];
] ++ lib.optionals cudaSupport [ cudatoolkit_joined ];
buildInputs = [
numpy.blas
] ++ lib.optionals cudaSupport [ cudatoolkit_joined cudnn ]
] ++ lib.optionals cudaSupport [ cudnn ]
++ lib.optionals stdenv.isLinux [ numactl ];
propagatedBuildInputs = [