summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-10-25 16:10:48 -0500
committerGitHub <noreply@github.com>2023-10-25 23:10:48 +0200
commit932d7a65e01c5bf2749179c1be54ed92b4bd17f4 (patch)
tree802f4113560721735c0f9bd9d25575e8f5fc9f17
parent6bd2dd032b89c4846643b437c80122b11e0ded8c (diff)
downloadspack-932d7a65e01c5bf2749179c1be54ed92b4bd17f4.tar.gz
spack-932d7a65e01c5bf2749179c1be54ed92b4bd17f4.tar.bz2
spack-932d7a65e01c5bf2749179c1be54ed92b4bd17f4.tar.xz
spack-932d7a65e01c5bf2749179c1be54ed92b4bd17f4.zip
PyTorch: patch breakpad dependency (#40648)
-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