mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
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:
parent
a416ef58b7
commit
27d13628ee
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user