Skip to content

Commit

Permalink
Remove duplicate code: the exact same lines are present before the re…
Browse files Browse the repository at this point in the history
…moved lines
  • Loading branch information
popescu-v committed Nov 6, 2024
1 parent c4c2a14 commit f0f7e67
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/LearningTestTool/py/kht_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,21 +341,11 @@ def evaluate_tool_on_test_dir(
# permet de lancer en tant que root. Option --allow-run-as-root
os.environ["OMPI_ALLOW_RUN_AS_ROOT"] = "1"
os.environ["OMPI_ALLOW_RUN_AS_ROOT_CONFIRM"] = "1"

# Ajout de variables d'environements propres a OpenMPI, elles remplacent les parametres
if platform.system() == "Linux":
# Supprime les traces en cas d'erreur fatale de khiops. Option --quiet
os.environ["OMPI_MCA_orte_execute_quiet"] = "true"
# permet de lancer plus de processus qu'il n'y a de coeurs. Option --oversubscribe
os.environ["OMPI_MCA_rmaps_base_oversubscribe"] = "true"
# permet de lancer en tant que root. Option --allow-run-as-root
os.environ["OMPI_ALLOW_RUN_AS_ROOT"] = "1"
os.environ["OMPI_ALLOW_RUN_AS_ROOT_CONFIRM"] = "1"

# Construction des parametres
khiops_params = []
if tool_process_number > 1:
khiops_params.append(mpi_exe_name)

# Option -l, specifique a mpich, valide au moins pour Windows:
# "Label standard out and standard error (stdout and stderr) with the rank of the process"
if platform.system() == "Windows":
Expand Down

0 comments on commit f0f7e67

Please sign in to comment.