Skip to content

OpenMPI path issue with khiops 10.2.2 on Debian-like OS #209

@tramora

Description

@tramora

Description

When using khiops-python API, the following command line is eventually executed :

/bin/mpiexec --allow-run-as-root --quiet -n 14 /usr/bin/MODL -b -i train_predictor_XXX._kh -e khiops.log

With openmpi installed with this 10.2.2-1 version it fails :

--------------------------------------------------------------------------
A prefix was supplied to mpiexec that only contained slashes.

This is a fatal error; mpiexec will now abort.  No processes were launched.
--------------------------------------------------------------------------

Questions/Ideas

This issue is already identified on the openmpi project open-mpi/ompi#5613.

To my understanding, the issue exists on systems (Arch, Ubuntu) where /bin/ is a symlink to /usr/bin. A kind of nasty loop occurs.

A fix on khiops-python was already committed once 75d0bf7 but unfortunately seems to have been reverted.

The symlink was followed and the real binary was reached.

/bin/mpiexec -> /etc/alternatives/mpiexec -> /usr/bin/mpiexec.openmpi    

I think we should put back this fix.

Metadata

Metadata

Assignees

Labels

Status/DoneThe issue has been addressed and merged to the dev branch

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions