summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-torch/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-torch/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-torch/package.py10
1 files changed, 9 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 b876bf0636..8b641c4e70 100644
--- a/var/spack/repos/builtin/packages/py-torch/package.py
+++ b/var/spack/repos/builtin/packages/py-torch/package.py
@@ -103,7 +103,7 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
"breakpad",
default=True,
description="Enable breakpad crash dump library",
- when="@1.9:1.11",
+ when="@1.10:1.11",
)
conflicts("+cuda+rocm")
@@ -286,6 +286,14 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
when="@1.1:1.8.1",
)
+ # https://github.com/pytorch/pytorch/issues/70297
+ patch(
+ "https://github.com/google/breakpad/commit/605c51ed96ad44b34c457bbca320e74e194c317e.patch?full_index=1",
+ sha256="694d83db3a2147d543357f22ba5c8d5683d0ed43e693d42bca8f24ec50080f98",
+ when="+breakpad",
+ working_dir="third_party/breakpad",
+ )
+
# Fixes CMake configuration error when XNNPACK is disabled
# https://github.com/pytorch/pytorch/pull/35607
# https://github.com/pytorch/pytorch/pull/37865