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_groupandopenmpi_group, with theucxandopenmpitarball 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.ymlreportsoverall_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_nameto a shared-storage entry instorage_config.yml. To use a separate VAST mount for HPC tools, set the optionalvast_storage_nameto that entry; when it is omitted or empty, Orchestrator reuses thenfs_storage_nameentry. Provisioning binds the selected storage'sslurm/hpc_toolsdirectory to/hpc_toolson 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.dand/var/logas 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¶
-
Synchronize the selected UCX and OpenMPI catalog content:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run repo_manager --tags "precheck,download,status"Run on: OIM hostsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/repo_manager/playbooks ansible-playbook repo_manager.yml --tags "precheck,download,status" -
Confirm that Repository Manager published the selected tarballs and produced a successful status contract:
Run on: OIM hostsource /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 -
Provision the Slurm nodes. This generates the shared
/hpc_toolsmount configuration and placesinstall_ucx.shandinstall_openmpi.shunder/usr/local/bin/on login-compiler nodes:Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run orchestrator --tags provisionRun on: OIM hostsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/orchestrator/playbooks ansible-playbook orchestrator.yml --tags provision -
On a provisioned login-compiler node, verify the shared mount and install UCX:
Run on: login-compiler nodemountpoint -q /hpc_tools /usr/local/bin/install_ucx.sh source /etc/profile.d/ucx.sh ucx_info -vThe script installs UCX under
/hpc_tools/platforms/<os>/<version>/<architecture>/benchmarks/ucxand writes/var/log/ucx_installation.log. -
Install OpenMPI after UCX:
Run on: login-compiler node/usr/local/bin/install_openmpi.sh source /etc/profile.d/openmpi.sh mpirun --version mpicc --versionThe script detects the shared UCX installation and Slurm commands when available. It installs OpenMPI under
/hpc_tools/platforms/<os>/<version>/<architecture>/benchmarks/openmpiand writes/var/log/openmpi_installation.log.
Verify provisioning status¶
On the OIM, verify that the provisioning contract succeeded:
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_toolsis not mounted: Confirm thatnfs_storage_namereferences an existing entry instorage_config.yml. Ifvast_storage_nameis 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
ucxandopenmpicatalog entries and that the Pulp endpoint and expected tarball paths inrepo_status.ymlare reachable. - UCX compilation fails: Review
/var/log/ucx_installation.logand 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_infoexists for the detected platform before rerunninginstall_openmpi.sh. - OpenMPI does not detect Slurm: Verify that
sinfois available and Munge is configured before rerunning the installation.