Skip to content

Configure Custom UCX and OpenMPI

Overview

Orchestrator places manual UCX and OpenMPI installation scripts on login-compiler nodes during provisioning. The scripts download the catalog artifacts from Repository Manager, compile them, and install the shared toolchain under the node's platform-specific directory in /hpc_tools/platforms/.

The generated cloud-init also configures the DOCA MPI environment as the default stack. It does not automatically execute the custom UCX or OpenMPI compilation scripts.

Prerequisites

  • Use a catalog whose applicable functional layers include ucx_group and openmpi_group, with the ucx and openmpi tarball components. Orchestrator derives support from catalog group names and the scripts download those tarballs from Repository Manager.
  • Complete Repository Manager and confirm that repo_status.yml reports overall_status: success.
  • Include a catalog-supported login-compiler functional group in the active project's pxe_mapping_file.csv. Use the version-qualified name that matches the catalog (e.g., login_compiler_node_rhel_10_0_aarch64).
  • Set slurm_cluster.nfs_storage_name to a shared-storage entry in storage_config.yml. To use a separate VAST mount for HPC tools, set the optional vast_storage_name to that entry; when it is omitted or empty, Orchestrator reuses the nfs_storage_name entry. Provisioning binds the selected storage's slurm/hpc_tools directory to /hpc_tools on supported Slurm nodes.
  • Ensure the selected catalog packages include the build dependencies needed by the source archives.
  • Run the installation scripts as root; they write under /etc/profile.d and /var/log as well as the shared filesystem.

Platform-specific custom UCX and OpenMPI

Custom UCX and OpenMPI installations are separated by operating-system version and architecture.

The installation paths are:

/hpc_tools/platforms/<os>/<version>/<architecture>/benchmarks/ucx
/hpc_tools/platforms/<os>/<version>/<architecture>/benchmarks/openmpi

Temporary build content is stored under:

/hpc_tools/platforms/<os>/<version>/<architecture>/compile/

Run the installers once on a provisioned login-compiler node for every platform that requires the custom toolchain:

/usr/local/bin/install_ucx.sh
source /etc/profile.d/ucx.sh
ucx_info -v

/usr/local/bin/install_openmpi.sh
source /etc/profile.d/openmpi.sh
mpirun --version
mpicc --version

OpenMPI must be installed after UCX when the custom OpenMPI build must use the custom UCX installation.

The scripts are not executed automatically during provisioning. The preconfigured DOCA UCX and OpenMPI stack remains the default unless the user runs these custom installation scripts.

Verification

source /hpc_tools/scripts/omnia_platform.sh
omnia_detect_platform

test -x "$OMNIA_PLATFORM_ROOT/benchmarks/ucx/bin/ucx_info"
test -x "$OMNIA_PLATFORM_ROOT/benchmarks/openmpi/bin/mpirun"

echo "$OMNIA_PLATFORM_ROOT"

A custom toolchain built for one operating-system version or architecture is not reused by another platform.

Existing legacy content under the following paths is not automatically moved or deleted:

/hpc_tools/benchmarks/ucx
/hpc_tools/benchmarks/openmpi
/hpc_tools/compile

Procedure

  1. Synchronize the selected UCX and OpenMPI catalog content:

    Run on: OIM host
    cd <OMNIA_SOURCE_PATH>/src/main
    ./omnia.sh --run repo_manager --tags "precheck,download,status"
    
    Run on: OIM host
    source /opt/omnia/activate-omnia.sh
    cd <OMNIA_SOURCE_PATH>/src/repo_manager/playbooks
    ansible-playbook repo_manager.yml --tags "precheck,download,status"
    
  2. Confirm that Repository Manager published the selected tarballs and produced a successful status contract:

    Run on: OIM host
    source /etc/profile.d/omnia-env.sh
    repo_manager_path="${OMNIA_DATA_PATH}/repo_manager"
    cat "$repo_manager_path/output/$OMNIA_PROJECT_NAME/repo_status.yml"
    pulp file distribution list --limit 1000
    
  3. Provision the Slurm nodes. This generates the shared /hpc_tools mount configuration and places install_ucx.sh and install_openmpi.sh under /usr/local/bin/ on login-compiler nodes:

    Run on: OIM host
    cd <OMNIA_SOURCE_PATH>/src/main
    ./omnia.sh --run orchestrator --tags provision
    
    Run on: OIM host
    source /opt/omnia/activate-omnia.sh
    cd <OMNIA_SOURCE_PATH>/src/orchestrator/playbooks
    ansible-playbook orchestrator.yml --tags provision
    
  4. On a provisioned login-compiler node, verify the shared mount and install UCX:

    Run on: login-compiler node
    mountpoint -q /hpc_tools
    /usr/local/bin/install_ucx.sh
    source /etc/profile.d/ucx.sh
    ucx_info -v
    

    The script installs UCX under /hpc_tools/platforms/<os>/<version>/<architecture>/benchmarks/ucx and writes /var/log/ucx_installation.log.

  5. Install OpenMPI after UCX:

    Run on: login-compiler node
    /usr/local/bin/install_openmpi.sh
    source /etc/profile.d/openmpi.sh
    mpirun --version
    mpicc --version
    

    The script detects the shared UCX installation and Slurm commands when available. It installs OpenMPI under /hpc_tools/platforms/<os>/<version>/<architecture>/benchmarks/openmpi and writes /var/log/openmpi_installation.log.

Verify provisioning status

On the OIM, verify that the provisioning contract succeeded:

Run on: OIM host
source /etc/profile.d/omnia-env.sh
orchestrator_path="${OMNIA_DATA_PATH}/orchestrator"
cat "$orchestrator_path/output/$OMNIA_PROJECT_NAME/orchestrator_status.yml"

Next steps

Troubleshooting

  • /hpc_tools is not mounted: Confirm that nfs_storage_name references an existing entry in storage_config.yml. If vast_storage_name is set, confirm that it references the intended separate VAST entry; otherwise the NFS entry supplies /hpc_tools. Then rerun provisioning.
  • A tarball cannot be downloaded: Confirm that Repository Manager synchronized the ucx and openmpi catalog entries and that the Pulp endpoint and expected tarball paths in repo_status.yml are reachable.
  • UCX compilation fails: Review /var/log/ucx_installation.log and verify that the catalog-selected image contains the required compiler and build packages.
  • OpenMPI does not use UCX: Verify $OMNIA_PLATFORM_ROOT/benchmarks/ucx/bin/ucx_info exists for the detected platform before rerunning install_openmpi.sh.
  • OpenMPI does not detect Slurm: Verify that sinfo is available and Munge is configured before rerunning the installation.