Skip to content

Commit c81ac73

Browse files
author
Theofilos Manitaras
committed
Address PR comments
1 parent 92252d8 commit c81ac73

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

cscs-checks/apps/greasy/greasy_check.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,23 @@ class GREASYCheck(rfm.RegressionTest):
2626
('mpi', 'mc', 72, 12, 3, 1),
2727
('mpi+openmp', 'gpu', 24, 3, 2, 2),
2828
('mpi+openmp', 'mc', 72, 6, 3, 2)])
29+
variant = variable(str)
30+
partition = variable(str)
31+
num_greasy_tasks = variable(int)
32+
workers_per_node = variable(int)
33+
ranks_per_worker = variable(int)
34+
cpus_per_worker = variable(int)
2935
valid_prog_environs = ['PrgEnv-gnu']
3036
sourcepath = 'tasks_mpi_openmp.c'
3137
build_system = 'SingleSource'
3238
executable = 'tasks_mpi_openmp.x'
33-
tasks_file = 'tasks.txt'
34-
greasy_logfile = 'greasy.log'
35-
nnodes = 2
39+
tasks_file = variable(str, value='tasks.txt')
40+
greasy_logfile = variable(str, value='greasy.log')
41+
nnodes = variable(int, value=2)
3642

3743
# sleep enough time to distinguish if the files are running in parallel
3844
# or not
39-
sleep_time = 60
45+
sleep_time = variable(int, value=60)
4046
use_multithreading = False
4147
modules = ['GREASY']
4248
maintainers = ['VH', 'SK']
@@ -72,7 +78,7 @@ def setup_greasy_run(self):
7278
self.num_cpus_per_task = self.cpus_per_worker
7379

7480
@run_before('run')
75-
def set_variables(self):
81+
def set_environment_variables(self):
7682
# On SLURM there is no need to set OMP_NUM_THREADS if one defines
7783
# num_cpus_per_task, but adding for completeness and portability
7884
self.variables = {
@@ -105,7 +111,7 @@ def daint_dom_gpu_specific_workaround(self):
105111
}
106112
}
107113
elif self.current_partition.fullname in ['daint:mc']:
108-
if self.configuration.variant != 'serial':
114+
if 'serial' not in self.variant:
109115
self.extra_resources = {
110116
'gres': {
111117
'gres': 'craynetwork:72'

0 commit comments

Comments
 (0)