From 9775ce1bd39d7fc8b4d6a9ecb67ba8b67ce45988 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 17 May 2023 22:01:44 +0300 Subject: [PATCH] python310Packages.torchWithCuda: add platform check --- pkgs/development/python-modules/torch/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index ba1da5844b17..09732e5e78e9 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -55,6 +55,7 @@ let inherit (cudaPackages) cudatoolkit cudaFlags cudnn nccl; in +assert cudaSupport -> stdenv.isLinux; assert cudaSupport -> (cudaPackages.cudaMajorVersion == "11"); # confirm that cudatoolkits are sync'd across dependencies