From a8a453caf8f93c6d72383f6844d3519d5a39ab5c Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 17 May 2023 19:01:34 +0300 Subject: [PATCH] python310Packages.torch: restrict platforms --- pkgs/development/python-modules/torch/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index 576e6b1bfac9..ba1da5844b17 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -414,7 +414,7 @@ in buildPythonPackage rec { homepage = "https://pytorch.org/"; license = licenses.bsd3; maintainers = with maintainers; [ teh thoughtpolice tscholak ]; # tscholak esp. for darwin-related builds - platforms = with platforms; linux ++ lib.optionals (!cudaSupport || !rocmSupport) darwin; + platforms = with platforms; linux ++ lib.optionals (!cudaSupport && !rocmSupport) darwin; broken = rocmSupport && cudaSupport; # CUDA and ROCm are mutually exclusive }; }