From 3db3b8dfa0666fe12f8e06344c544056fa9c0033 Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Mon, 23 Sep 2024 08:56:12 -0500 Subject: [PATCH] petsc@3.21 +rocm: add patches for rocm 6+ (#46486) --- var/spack/repos/builtin/packages/petsc/package.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index eaa55d63ea..e71ca88de9 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -175,6 +175,16 @@ class Petsc(Package, CudaPackage, ROCmPackage): when="@3.20.0", sha256="ba327f8b2a0fa45209dfb7a4278f3e9a323965b5a668be204c1c77c17a963a7f", ) + patch( + "https://gitlab.com/petsc/petsc/-/commit/20d5ecbf88175ced320006c488dcefa2efb1e67f.diff", + when="@3.21 ^hip@6:", + sha256="2904ea20c71e2f21b8475513c3e5de7465e328e2485ae706b003aa79314e3e7c", + ) + patch( + "https://gitlab.com/petsc/petsc/-/commit/bdb83d9f3e3c55b3bd4c8732bfe2066c23f10f61.diff", + when="@3.21 ^hip@6:", + sha256="89cf2c9a01d4a3233c889dd98496a29bf43db1bc69195892f9e5405c537b87e3", + ) patch("hip-5.6.0-for-3.18.diff", when="@3.18:3.19 ^hipsparse@5.6.0") patch("hip-5.7-plus-for-3.18.diff", when="@3.18:3.19 ^hipsparse@5.7:") patch(