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

Uses the new mojitO/S

parent 2f51610a
No related branches found
No related tags found
1 merge request!1Devel
...@@ -16,11 +16,11 @@ from execo import Process ...@@ -16,11 +16,11 @@ from execo import Process
class Executor: class Executor:
'Allow access to the platform' 'Allow access to the platform'
def __init__(self): def __init__(self):
self.tmp_dir self.tmp_dir = ''
if os.path.isdir('/dev/shm'): if os.path.isdir('/dev/shm'):
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 = ''
......
...@@ -94,7 +94,7 @@ class Mojitos: ...@@ -94,7 +94,7 @@ class Mojitos:
self.cmdline += ' -r' self.cmdline += ' -r'
if self.load: if self.load:
self.cmdline += ' -u' self.cmdline += ' -u'
self.monitoring_file = '%s/monitoring_moj' executor.tmp_dir self.monitoring_file = '%s/monitoring_moj' % executor.tmp_dir
self.cmdline += ' -o %s &' % self.monitoring_file self.cmdline += ' -o %s &' % self.monitoring_file
......
...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh: ...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="expetator", name="expetator",
version="0.3.20", version="0.3.22",
author="Georges Da Costa", author="Georges Da Costa",
author_email="georges.da-costa@irit.fr", author_email="georges.da-costa@irit.fr",
description="A framework for monitoring HPC applications using DVFS", description="A framework for monitoring HPC applications using DVFS",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment