Skip to content

Commit

Permalink
add support for specifying valid_systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Moors committed Dec 12, 2022
1 parent 45531b2 commit 4d06df8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions eessi/reframe/eessi-checks/applications/gromacs_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class GROMACS_EESSI(gromacs_check):

module_name = parameter(my_find_modules('GROMACS'))
valid_prog_environs = ['builtin']
valid_systems = []

omp_num_threads = 1
executable_opts += ['-dlb yes', '-ntomp %s' % omp_num_threads, '-npme -1']
Expand All @@ -46,19 +47,21 @@ class GROMACS_EESSI(gromacs_check):
@run_after('init')
def fiter_tests(self):
cuda = utils.is_cuda_required_module(self.module_name)
valid_systems = ''
if self.nb_impl == 'gpu' and cuda:
valid_systems = '+gpu'
elif self.nb_impl == 'cpu' and not cuda:
valid_systems = '+cpu'
else:
valid_systems = 'nonexisting'

# filter out this test if the module is not among a list of specified modules
# filter out this test if the module is not among a list of manually specified modules
# modules can be specified with '--setvar modules="<comma-separated-list>"
if self.modules and self.module_name not in self.modules:
valid_systems = 'nonexisting'
valid_systems = ['nonexisting']

self.valid_systems = [valid_systems]
if not self.valid_systems:
self.valid_systems = [valid_systems]
self.modules = [self.module_name]

@run_after('init')
Expand Down

0 comments on commit 4d06df8

Please sign in to comment.