-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #393 from KhiopsML/383-khiops-command-return-error…
…-1-without-any-message Add KHIOPS_MPI_VERBOSE in khiops_env (UNIXes only)
- Loading branch information
Showing
6 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
packaging/linux/common/khiops_env/use_environment_module.sh.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
|
||
# Try to use environment modules to locate mpiexec if needed | ||
if ! command -v mpiexec &> /dev/null | ||
# Load @MPI_IMPL@ with environment modules | ||
if source /etc/profile.d/modules.sh &> /dev/null | ||
then | ||
if source /etc/profile.d/modules.sh &> /dev/null | ||
then | ||
module unload mpi | ||
module load mpi/@MPI_IMPL@-@CMAKE_SYSTEM_PROCESSOR@ | ||
fi | ||
module unload mpi | ||
module load mpi/@MPI_IMPL@-@CMAKE_SYSTEM_PROCESSOR@ | ||
fi |