summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-11-12 01:09:10 -0600
committerGitHub <noreply@github.com>2021-11-11 23:09:10 -0800
commitc8fdce28e6a505a3af355a43f36c8e214e98d86b (patch)
tree2b5a6bde39b9527de27f85ec6a215f108136983c /var
parent38592b9e4f974254c18ce82e8b7ccca65a07539e (diff)
downloadspack-c8fdce28e6a505a3af355a43f36c8e214e98d86b.tar.gz
spack-c8fdce28e6a505a3af355a43f36c8e214e98d86b.tar.bz2
spack-c8fdce28e6a505a3af355a43f36c8e214e98d86b.tar.xz
spack-c8fdce28e6a505a3af355a43f36c8e214e98d86b.zip
PyTorch: fix compilation of +distributed~tensorpipe (#27337)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-torch/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-torch/package.py b/var/spack/repos/builtin/packages/py-torch/package.py
index 19805f48a0..0a5df58c82 100644
--- a/var/spack/repos/builtin/packages/py-torch/package.py
+++ b/var/spack/repos/builtin/packages/py-torch/package.py
@@ -219,6 +219,11 @@ class PyTorch(PythonPackage, CudaPackage):
# to detect openmp settings used by Fujitsu compiler.
patch('detect_omp_of_fujitsu_compiler.patch', when='%fj')
+ # Fix compilation of +distributed~tensorpipe
+ # https://github.com/pytorch/pytorch/issues/68002
+ patch('https://github.com/pytorch/pytorch/commit/c075f0f633fa0136e68f0a455b5b74d7b500865c.patch',
+ sha256='e69e41b5c171bfb00d1b5d4ee55dd5e4c8975483230274af4ab461acd37e40b8', when='@1.10.0+distributed~tensorpipe')
+
# Both build and install run cmake/make/make install
# Only run once to speed up build times
phases = ['install']