summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-torch/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-torch/package.py b/var/spack/repos/builtin/packages/py-torch/package.py
index b2e1d88357..c0e3d01254 100644
--- a/var/spack/repos/builtin/packages/py-torch/package.py
+++ b/var/spack/repos/builtin/packages/py-torch/package.py
@@ -104,7 +104,7 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
)
conflicts("+cuda+rocm")
- conflicts("+tensorpipe", when="+rocm", msg="TensorPipe doesn't yet support ROCm")
+ conflicts("+tensorpipe", when="+rocm ^hip@:5.1", msg="TensorPipe not supported until ROCm 5.2")
conflicts("+breakpad", when="target=ppc64:")
conflicts("+breakpad", when="target=ppc64le:")
@@ -114,6 +114,13 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
# https://github.com/pytorch/pytorch/issues/80805
conflicts("+openmp", when="platform=darwin target=aarch64:")
+ # https://github.com/pytorch/pytorch/issues/97397
+ conflicts(
+ "~tensorpipe",
+ when="@1.8: +distributed",
+ msg="TensorPipe must be enabled with +distributed",
+ )
+
conflicts(
"cuda_arch=none",
when="+cuda",