Skip to content

Conversation

@sayalibhavsar
Copy link
Contributor

Description

This PR introduces centralized JSON files for package dependencies in wrappers. Common packages (compilers, build tools, MPI) are defined in general_packages.json, and library-specific ones (e.g., OpenBLAS) in openblas_packages.json. The build_run_hpl.sh script now uses these files to streamline and deduplicate package installation.

Before vs After

Before: Duplicate inline package_tool calls for each package; dependencies like gcc, git, make, and wget required manual or repeated installation.
After: Unified package_tool call using JSON configs; common and library-specific dependencies(mkl, blis) are handled cleanly without repetition.

Notes

Standardizes package management across wrappers for RHEL, Ubuntu, and Amazon Linux.
JIRA: [RPOPC-689](https://issues.redhat.com/browse/RPOPC-689)

@sayalibhavsar sayalibhavsar self-assigned this Nov 11, 2025
@sayalibhavsar sayalibhavsar added the enhancement New feature or request label Nov 11, 2025
@sayalibhavsar sayalibhavsar force-pushed the autohpl_pkg branch 3 times, most recently from 9662bf2 to facc041 Compare November 11, 2025 22:19
  - Update openblas_packages.json to use FlexiBLAS packages for RHEL 10
    (flexiblas, flexiblas-devel, flexiblas-openblas-openmp)
  - Fix check_mpi() to handle RHEL 10's direct PATH installation
    (RHEL 10 doesn't use environment modules for MPI)
  - Add zip/unzip packages to general_packages.json for all distros
    (required by save_results script)

  Tested on RHEL 10 with --regression flag.
  - Fix OS ID from 'amazon' to 'amzn' to match detect_os output
  - Add version detection logic to skip OpenBLAS package install for AL2
    (AL2 compiles OpenBLAS from source, AL2023 uses packages)
Tested on:
  - Amazon Linux 2 (compiles OpenBLAS from source)
  - Amazon Linux 2023 (uses packages)
- fix OpenBLAS typo in the base Makefile
- add a SLES-specific Makefile with correct MPI and OpenBLAS paths
- update size_platform() for SLES on x86_64 and aarch64
- have build_hpl() to detect and use the SLES Makefile
@sayalibhavsar sayalibhavsar marked this pull request as ready for review November 20, 2025 13:26
  - Added RHEL 10-specific makefiles using FlexiBLAS (libopenblaso.so.0)
  - Added RHEL 10 MPI PATH and LD_LIBRARY_PATH setup for build and runtime
  - Support for both ARM (aarch64) and x86_64 (Intel/AMD) architectures
  - Tested on m6g.2xlarge (Graviton2 ARM)
@sayalibhavsar
Copy link
Contributor Author

@sayalibhavsar sayalibhavsar force-pushed the autohpl_pkg branch 3 times, most recently from 7757e76 to f9f35a9 Compare December 3, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants