← Back to Pull requests

Feat/downstream cuda openmpi wiring #1096

Open
kapil27 opened this pull request with 122 lines diff across 4 files
View on GitHub
kapil27 kapil27 commented on Oct 06, 2026 10:23 UTC
Author

Summary

This PR adds SSH-based OpenMPI launcher support to the downstream RHOAI 3.6 universal CUDA image.

  • Registers an arbitrary OpenShift runtime UID as mpiuser with /home/mpiuser and /bin/sh.

  • Starts worker sshd on port 2222 and provides an mpirun/mpiexec wrapper.

  • Scopes SSH options through OMPI_MCA_plm_rsh_args; normal outbound SSH is unaffected.

  • Adds RHEL 9.8 OpenSSH RPM locking and Konflux dependency prefetching.

  • Preserves the existing entrypoint-universal.sh path for non-MPI workloads.
  • Validation

    Validated on the oai-kft-ibm OpenShift cluster in kap-test using the final downstream image:

    quay.io/rhoai/pull-request-pipelines:odh-th-torch-cuda-py312-def2610b7096d6f82c060d011e72c287cb615705

    | Test | Result | Evidence |
    |---|---|---|
    | Konflux PR pipeline | ✅ PASS | Commit def2610b built successfully |
    | RHEL 9.8 RPM dependency prefetch | ✅ PASS | Locked OpenSSH dependencies resolved successfully |
    | Repository pre-commit checks | ✅ PASS | Configured checks completed successfully |
    | DW TestMultiNodeOpenMPITrainJob | ✅ PASS | Two GPU ranks; completed in 39.735s |
    | OpenMPI remote launch | ✅ PASS | Launcher reached the worker through SSH on port 2222 |
    | Arbitrary UID handling | ✅ PASS | Remote UID 1001150000 resolved as mpiuser with GID 0 and /bin/sh |
    | MPI SSH option isolation | ✅ PASS | No global Host * client configuration; options are scoped to MPI |

    The DW MPI test exercised a two-node Trainer JobSet with one NVIDIA A100 per pod, OpenMPI SSH process launch, NCCL process-group initialization, Fashion-MNIST training, both ranks, and successful TrainJob completion.

    [Rank 0/2] MPI TrainJob test PASSED
    [Rank 1/2] MPI TrainJob test PASSED
    --- PASS: TestMultiNodeOpenMPITrainJob (37.13s)
    PASS
    ok github.com/opendatahub-io/distributed-workloads/tests/trainer 39.735s
    

    The test was temporarily unskipped and its workload used OpenMPI for process launch with NCCL because the universal image's PyTorch build does not include the optional MPI backend. No product code was changed for the test.

    Checklist

  • Downstream CUDA image builds successfully

  • RHEL 9.8 OpenSSH RPM lockfile is consumed by Konflux

  • Repository DW MPI test passes on the exact final image

  • Arbitrary OpenShift UID receives an executable shell

  • MPI SSH settings are isolated from normal outbound SSH

  • Non-MPI entrypoint behavior remains unchanged
  • Downstream counterpart of opendatahub-io/distributed-workloads#1043.

    Diff: 122 lines (+122 / -0) across 4 files Reviewer: robert-bell Review duration: 5692m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 122 lines diff across 4 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    48%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.350
    Diff Size diff_size
    0.288
    Real PR Conversation Timeline
    2 items
    robert-bell robert-bell approved these changes on Oct 06, 2026 13:46 UTC
    Approved Reviewer

    /lgtm

    Reviewers
    Assignees
    kapil27 kapil27
    Labels
    risk: low confidence: 48.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.2% (MEDIUM) · Higher = larger blast radius
    36.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 48.5% · Lower = rushed or shallow review
    48.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.6% · Safe to merge
    18.6%