Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions eessi/testsuite/eessi_mixin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from reframe.core.backends import getlauncher
from reframe.core.builtins import parameter, run_after, run_before, variable
from reframe.core.exceptions import ReframeFatalError
from reframe.core.pipeline import RegressionMixin
Expand Down Expand Up @@ -53,6 +54,7 @@ class EESSI_Mixin(RegressionMixin):
always_request_gpus = None
require_buildenv_module = False
require_internet = False
launcher = None

# Create ReFrame variables for logging runtime environment information
cvmfs_repo_name = variable(str, value='None')
Expand Down Expand Up @@ -213,6 +215,12 @@ def EESSI_mixin_assign_tasks_per_compute_unit(self):
# Set compact process binding
hooks.set_compact_process_binding(self)

@run_after('setup')
def EESSI_set_launcher(self):
"""Select custom launcher"""
if self.launcher:
self.job.launcher = getlauncher(self.launcher)()

@run_after('setup')
def EESSI_mixin_request_mem(self):
"""Call hook to request the required amount of memory per node"""
Expand Down
8 changes: 2 additions & 6 deletions eessi/testsuite/tests/apps/numpy/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"""
import reframe as rfm
import reframe.utility.sanity as sn
from reframe.core.backends import getlauncher
from reframe.core.builtins import parameter, run_after, run_before, sanity_function, variable

from eessi.testsuite.constants import COMPUTE_UNITS, DEVICE_TYPES, SCALES
Expand All @@ -32,6 +31,8 @@ class EESSI_NumPy(rfm.RunOnlyRegressionTest, EESSI_Mixin):
k for (k, v) in SCALES.items()
if v['num_nodes'] == 1
])
thread_binding = 'compact'
launcher = 'local' # no MPI module is loaded in this test

matrix_size = variable(str, value='8192')
iterations = variable(str, value='4')
Expand All @@ -58,11 +59,6 @@ def set_executable_opts(self):
'--iterations-eigen', self.iterations_eigen,
]

@run_after('setup')
def set_launcher(self):
"""Select local launcher"""
self.job.launcher = getlauncher('local')()

@sanity_function
def assert_numpy_found(self):
"""Assert that NumPy is found"""
Expand Down