Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable PETSc for HIP machines #1243

Open
chapman39 opened this issue Oct 8, 2024 · 1 comment
Open

Enable PETSc for HIP machines #1243

chapman39 opened this issue Oct 8, 2024 · 1 comment
Assignees
Labels
TPL Third-party libraries

Comments

@chapman39
Copy link
Contributor

chapman39 commented Oct 8, 2024

When building Serac TPLs for tioga/ rzvernal I encountered two problems related to building PETSc:

  1. PETSc doesn't like when the HIP prefix is /opt/rocm-5.7.1 in the spack.yaml (prefers /opt/rocm-5.7.1/hip, which messes up Axom, Tribol, Serac build systems).
  2. PETSc had to be built with no optimization flags (Serac spec contained ^petsc cflags=-O0)

The process of getting PETSc to build previously is outlined here: spack/spack#46468

Ideally, we want to build PETSc while keeping the HIP prefix the same and with full optimization flags. This will likely involve changes in PETSc's Spack package and/ or a patch, as well as some help from PETSc developers.

@chapman39 chapman39 added the TPL Third-party libraries label Oct 8, 2024
@chapman39 chapman39 self-assigned this Oct 8, 2024
@chapman39 chapman39 mentioned this issue Oct 8, 2024
6 tasks
@chapman39
Copy link
Contributor Author

using newer rocm version (6 and up) will likely resolve some of the issues: LLNL/radiuss-spack-configs#114 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TPL Third-party libraries
Projects
None yet
Development

No branches or pull requests

1 participant