summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJonathon Anderson <17242663+blue42u@users.noreply.github.com>2023-04-11 20:24:42 -0500
committerGitHub <noreply@github.com>2023-04-11 20:24:42 -0500
commit8e12eef4e1518ea393d72773860392db267d6274 (patch)
tree9554baf912c8094e8e96d259790b26b0e8c09838 /var
parentf1c077524550195917ad895553deb73ba0bc3c87 (diff)
downloadspack-8e12eef4e1518ea393d72773860392db267d6274.tar.gz
spack-8e12eef4e1518ea393d72773860392db267d6274.tar.bz2
spack-8e12eef4e1518ea393d72773860392db267d6274.tar.xz
spack-8e12eef4e1518ea393d72773860392db267d6274.zip
py-torch: Update conflicts for +/~tensorpipe (#36781)
* py-torch: Update conflicts for +/~tensorpipe * [@spackbot] updating style on behalf of blue42u * Update var/spack/repos/builtin/packages/py-torch/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * [@spackbot] updating style on behalf of blue42u --------- Co-authored-by: blue42u <blue42u@users.noreply.github.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
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",