Skip to content

Ensure HOME is always set when running khiops core with OpenMPI 5+#507

Merged
tramora merged 6 commits intodevfrom
506-fix-home-for-openmpi5
Dec 4, 2025
Merged

Ensure HOME is always set when running khiops core with OpenMPI 5+#507
tramora merged 6 commits intodevfrom
506-fix-home-for-openmpi5

Conversation

@tramora
Copy link
Copy Markdown
Collaborator

@tramora tramora commented Nov 19, 2025

  • A specific environment is created when running khiops core. In this environment HOME is set using KHIOPS_MPI_HOME if it exists

Fixes #506


TODO Before Asking for a Review

  • Rebase your branch to the latest version of dev (or main for release PRs)
  • Make sure all CI workflows are green
  • When adding a public feature/fix: Update the Unreleased section of CHANGELOG.md (no date)
  • Self-Review: Review "Files Changed" tab and fix any problems you find
  • API Docs (only if there are changes in docstrings, rst files or samples):
    • Check the docs build without warning: see the log of the API Docs workflow
    • Check that your changes render well in HTML: download the API Docs artifact and open index.html
    • If there are any problems it is faster to iterate by building locally the API Docs

@tramora tramora requested review from folmos-at-orange and popescu-v and removed request for folmos-at-orange November 19, 2025 18:49
@tramora tramora force-pushed the 506-fix-home-for-openmpi5 branch 3 times, most recently from 77b659b to 5eb7cc0 Compare November 20, 2025 12:53
@tramora tramora changed the title Ensure HOME env variable is always set (mandatory for OpenMPI 5+) Ensure HOME env variable is corrected for OpenMPI 5+ Nov 20, 2025
Copy link
Copy Markdown
Collaborator

@popescu-v popescu-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Propagate custom HOME to the Khiops binary process only (see the comment in the review).

To really test for this change, add new khiopspydev-debian13 Docker image based on the khiopsdev-debian13 Docker image and use it the container matrix in the check-khiops-integration-on-linux job of the tests.yml workflow. Thus, we make sure to really test on OpenMPI 5.

@tramora tramora changed the title Ensure HOME env variable is corrected for OpenMPI 5+ Ensure HOME is always set when running khiops core with OpenMPI 5+ Nov 21, 2025
@tramora tramora force-pushed the 506-fix-home-for-openmpi5 branch 18 times, most recently from 92ae579 to fcc4b5b Compare November 26, 2025 15:57
@tramora tramora force-pushed the 506-fix-home-for-openmpi5 branch from 6a6b5ba to 6bea69f Compare December 2, 2025 10:53
@tramora tramora requested a review from popescu-v December 2, 2025 10:57
@tramora tramora force-pushed the 506-fix-home-for-openmpi5 branch from 6bea69f to 77318ff Compare December 2, 2025 12:07
Copy link
Copy Markdown
Collaborator

@popescu-v popescu-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few pending comments, the most important of which is to revert to using conday-forge/label/rc:: instead of khiops-dev, which should not be needed.

@tramora tramora force-pushed the 506-fix-home-for-openmpi5 branch from 77318ff to 982c013 Compare December 2, 2025 13:46
@tramora tramora requested a review from popescu-v December 2, 2025 13:48
@tramora tramora force-pushed the 506-fix-home-for-openmpi5 branch 4 times, most recently from 432871b to db24e9d Compare December 2, 2025 14:30
with the global one.
"""
khiops_env = os.environ.copy()
# Ensure HOME is always set for OpenMPI 5+
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert empty line before, as this is a paragraph.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Copy Markdown
Collaborator

@popescu-v popescu-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with a minor comment.

Thierry RAMORASOAVINA and others added 6 commits December 4, 2025 10:04
- A specific environment is created when running khiops core. In this environment HOME is set using KHIOPS_MPI_HOME if it exists
- Create and use a new khiopspydev debian13 image with OpenMPI 5
- Set OpenMPI 5+ specific env variables for oversubscribing
In conda environments new incompatibility issues appear
- escape Conda channel label
- use double equals sign in conda package version specification
- drop conda-forge channel specification: conda uses conda-forge by
  default, because it is installed with miniforge.
@tramora tramora force-pushed the 506-fix-home-for-openmpi5 branch from 94fb8bc to 79f5d20 Compare December 4, 2025 09:04
@tramora tramora merged commit 294374b into dev Dec 4, 2025
23 checks passed
@tramora tramora deleted the 506-fix-home-for-openmpi5 branch December 4, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Runner to Add HOME for OpenMPI >= 5

2 participants