From 29a68c95e6d4eebbe11b224515aff2a017cc7fa7 Mon Sep 17 00:00:00 2001
From: Georges Da Costa <dacosta@irit.fr>
Date: Tue, 11 Jun 2024 15:51:03 +0200
Subject: [PATCH] working on #1

---
 expetator/experiment.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/expetator/experiment.py b/expetator/experiment.py
index b49e0ee..720a4bc 100755
--- a/expetator/experiment.py
+++ b/expetator/experiment.py
@@ -21,6 +21,7 @@ class Executor:
             self.tmp_dir = tempfile.mkdtemp(prefix="/dev/shm/")
         else:
             self.tmp_dir = tempfile.mkdtemp(prefix="/tmp/executor/")
+
         self.mpi_host_file = '%s/mpi_host_file' % self.tmp_dir
         self.mpi_core_file = '%s/mpi_core_file' % self.tmp_dir
         self.mpi_options = ''
@@ -41,6 +42,7 @@ 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:
-- 
GitLab