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

working on #1

parent c5f7f640
No related branches found
No related tags found
1 merge request!1Devel
...@@ -21,6 +21,7 @@ class Executor: ...@@ -21,6 +21,7 @@ class Executor:
self.tmp_dir = tempfile.mkdtemp(prefix="/dev/shm/") self.tmp_dir = tempfile.mkdtemp(prefix="/dev/shm/")
else: else:
self.tmp_dir = tempfile.mkdtemp(prefix="/tmp/executor/") self.tmp_dir = tempfile.mkdtemp(prefix="/tmp/executor/")
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
self.mpi_options = '' self.mpi_options = ''
...@@ -41,6 +42,7 @@ class Executor: ...@@ -41,6 +42,7 @@ class Executor:
self.mpi_options = '-mca mtl psm2 -mca pml ^ucx,ofi -mca btl ^ofi,openib ' + self.mpi_options self.mpi_options = '-mca mtl psm2 -mca pml ^ucx,ofi -mca btl ^ofi,openib ' + self.mpi_options
self.sudo = 'sudo-g5k' self.sudo = 'sudo-g5k'
self.ssh = 'oarsh' self.ssh = 'oarsh'
self.hosts(f'mkdir -p {self.tmp_dir}')
with open(self.mpi_host_file, 'w') as file_id: with open(self.mpi_host_file, 'w') as file_id:
for host in self.hostnames: for host in self.hostnames:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment