Skip to content
Snippets Groups Projects
Commit 73d9da8d authored by Georges Da Costa's avatar Georges Da Costa
Browse files

removes dependency on /dev/shm

parent 82daae4a
Branches hosts
No related tags found
No related merge requests found
...@@ -34,7 +34,9 @@ class Executor: ...@@ -34,7 +34,9 @@ class Executor:
def init_mpi_files(self, filelist = None): def init_mpi_files(self, filelist = None):
'inits mpi_files nbhosts nbcores and hostnames' 'inits mpi_files nbhosts nbcores and hostnames'
self.tmp_dir = tempfile.mkdtemp(prefix="/tmp/executor/") default_dir = '/tmp/executor'
os.makedirs(default_dir, exist_ok = True)
self.tmp_dir = tempfile.mkdtemp(prefix=default_dir)
self.mpi_host_file = '%s/mpi_host_file' % self.tmp_dir self.mpi_host_file = '%s/mpi_host_file' % self.tmp_dir
self.mpi_core_file = '%s/mpi_core_file' % self.tmp_dir self.mpi_core_file = '%s/mpi_core_file' % self.tmp_dir
nbcore = psutil.cpu_count(logical=False) nbcore = psutil.cpu_count(logical=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment