Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KHIOPS_MPI_VERBOSE in khiops_env (UNIXes only) #393

Merged

Conversation

bruno-at-orange
Copy link
Contributor

@bruno-at-orange bruno-at-orange commented Oct 7, 2024

Add the variable KHIOPS_MPI_VERBOSE to disable the flag "--quiet" in the mpirun command. Its default value in khiops_env is true and the mpirun is verbose. if its value is different from 'true', '--quiet' is added to the command line.

Close #383
Close #310

@bruno-at-orange bruno-at-orange linked an issue Oct 7, 2024 that may be closed by this pull request
@bruno-at-orange bruno-at-orange force-pushed the 383-khiops-command-return-error-1-without-any-message branch from 5e163af to 7250e88 Compare October 7, 2024 08:48
@bruno-at-orange bruno-at-orange force-pushed the 383-khiops-command-return-error-1-without-any-message branch from 7250e88 to 9d82f04 Compare October 9, 2024 07:45
packaging/install.cmake Outdated Show resolved Hide resolved
Copy link
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.

See comments.

@bruno-at-orange bruno-at-orange force-pushed the 383-khiops-command-return-error-1-without-any-message branch from 601d96c to 87358bf Compare October 14, 2024 14:32
@bruno-at-orange bruno-at-orange force-pushed the 383-khiops-command-return-error-1-without-any-message branch from 87358bf to f80c026 Compare October 15, 2024 15:30
@bruno-at-orange bruno-at-orange force-pushed the 383-khiops-command-return-error-1-without-any-message branch from 299afcb to ca9e3a0 Compare October 15, 2024 18:09
@bruno-at-orange bruno-at-orange force-pushed the 383-khiops-command-return-error-1-without-any-message branch 2 times, most recently from 4e5ba4e to 75cc143 Compare October 16, 2024 12:42
packaging/install.cmake Outdated Show resolved Hide resolved
packaging/install.cmake Outdated Show resolved Hide resolved
packaging/install.cmake Outdated Show resolved Hide resolved
packaging/install.cmake Outdated Show resolved Hide resolved
@bruno-at-orange bruno-at-orange force-pushed the 383-khiops-command-return-error-1-without-any-message branch from 75cc143 to e579801 Compare October 16, 2024 17:02
packaging/install.cmake Outdated Show resolved Hide resolved
packaging/install.cmake Outdated Show resolved Hide resolved
Copy link
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 2 comments to address.

- Add the variable KHIOPS_MPI_VERBOSE to disable the flag "--quiet" in the mpirun command.
  In khiops_env, its default value is true and the mpirun is run without --quiet. if its value is different from 'true', '--quiet' is added to the command line.
- On the contrary, KHIOPS_MPI_VERBOSE default value is false in the script 'khiops': we don't want to see MPI messages when running khiops in standalone.
- some variables are mandatory to run MPI correctly (like OMPI_MCA_btl_vader_single_copy_mechanism), these variables are displayed when running `khiops-env --env`.
  In that way, all variables needed to run Khiops are avalaible for khiops' wrappers.
- Add KHIOPS_MPI_VERBOSE=true to the tests on CI: test-khiops-on-iris and test-khiops-install in order to check that there is no MPI error
The environment modules systematically:
- undloads current mpi module
- loads the desired mpi module
In that way we are sure to launch the appropriate mpiexec.
@bruno-at-orange bruno-at-orange force-pushed the 383-khiops-command-return-error-1-without-any-message branch from e579801 to e2b0b70 Compare October 17, 2024 15:17
Copy link
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

@bruno-at-orange bruno-at-orange merged commit 1f60b99 into dev Oct 18, 2024
27 checks passed
@bruno-at-orange bruno-at-orange deleted the 383-khiops-command-return-error-1-without-any-message branch October 18, 2024 06:14
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.

khiops command return error 1 without any message. Allow MPI command output to be verbose for OpenMPI
2 participants