From ee747220a6496063d356b1ebf08d520fb1db1c48 Mon Sep 17 00:00:00 2001 From: Georges Da Costa <dacosta@irit.fr> Date: Tue, 11 Jun 2024 16:08:43 +0200 Subject: [PATCH] still on #1 --- expetator/experiment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expetator/experiment.py b/expetator/experiment.py index 720a4bc..59762a1 100755 --- a/expetator/experiment.py +++ b/expetator/experiment.py @@ -42,7 +42,6 @@ class Executor: self.mpi_options = '-mca mtl psm2 -mca pml ^ucx,ofi -mca btl ^ofi,openib ' + self.mpi_options self.sudo = 'sudo-g5k' self.ssh = 'oarsh' - self.hosts(f'mkdir -p {self.tmp_dir}') with open(self.mpi_host_file, 'w') as file_id: for host in self.hostnames: @@ -52,6 +51,8 @@ class Executor: for host in self.hostnames: file_id.write(host+" slots=%s\n" % (self.nbcores//self.nbhosts)) + self.hosts(f'mkdir -p {self.tmp_dir}') + def local(self, cmd, shell=True, root=False): """Executes the cmd command and returns stdout after cmd exits""" if root: -- GitLab