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

still on #1

parent 29a68c95
Branches
No related tags found
1 merge request!1Devel
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment