From 62796e8d6118f28ac99fdcb88da23e1ded5ece70 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Mon, 9 Sep 2024 22:57:56 +0000 Subject: [PATCH] python3Packages.torch: NCCL static library is in static output --- pkgs/development/python-modules/torch/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index 22fbc270a9a66..50b031e0082a6 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -478,7 +478,8 @@ buildPythonPackage rec { ++ lists.optionals (cudaPackages ? cudnn) [ cudnn ] ++ lists.optionals useSystemNccl [ # Some platforms do not support NCCL (i.e., Jetson) - nccl # Provides nccl.h AND a static copy of NCCL! + (lib.getDev nccl) + (lib.getOutput "static" nccl) ] ++ lists.optionals (strings.versionOlder cudaVersion "11.8") [ cuda_nvprof #