From 8e12eef4e1518ea393d72773860392db267d6274 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson <17242663+blue42u@users.noreply.github.com> Date: Tue, 11 Apr 2023 20:24:42 -0500 Subject: 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 * [@spackbot] updating style on behalf of blue42u --------- Co-authored-by: blue42u Co-authored-by: Adam J. Stewart --- var/spack/repos/builtin/packages/py-torch/package.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'var') 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", -- cgit v1.2.3-70-g09d2