summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-05-20 13:16:50 -0500
committerGitHub <noreply@github.com>2021-05-20 20:16:50 +0200
commitea5b5a6d3fd2185370b6c8174df26ee008763dd0 (patch)
treee8dd155acbcb3cb7a6fd9bfd01fa464d552500b9
parentf66f7faee1be5ccc2f473eebd10c93f5d8405fbb (diff)
downloadspack-ea5b5a6d3fd2185370b6c8174df26ee008763dd0.tar.gz
spack-ea5b5a6d3fd2185370b6c8174df26ee008763dd0.tar.bz2
spack-ea5b5a6d3fd2185370b6c8174df26ee008763dd0.tar.xz
spack-ea5b5a6d3fd2185370b6c8174df26ee008763dd0.zip
py-torch: add patch to build on systems with glibc<2.12 (#23806)
-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 85e50f1415..cb40d25f0a 100644
--- a/var/spack/repos/builtin/packages/py-torch/package.py
+++ b/var/spack/repos/builtin/packages/py-torch/package.py
@@ -152,6 +152,11 @@ class PyTorch(PythonPackage, CudaPackage):
depends_on('py-six', type='test')
depends_on('py-psutil', type='test')
+ # Fixes build on older systems with glibc <2.12
+ patch('https://patch-diff.githubusercontent.com/raw/pytorch/pytorch/pull/55063.patch',
+ sha256='e17eaa42f5d7c18bf0d7c37d7b0910127a01ad53fdce3e226a92893356a70395',
+ when='@1.1.0:')
+
# https://github.com/pytorch/pytorch/pull/35607
# https://github.com/pytorch/pytorch/pull/37865
# Fixes CMake configuration error when XNNPACK is disabled