Skip to content

Commit 6e44403

Browse files
committed
new resources organization and fix description
1 parent 728d143 commit 6e44403

File tree

1 file changed

+20
-34
lines changed

1 file changed

+20
-34
lines changed

cscs-checks/apps/namd/namd_check.py

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class NamdBaseCheck(rfm.RunOnlyRegressionTest):
88
def __init__(self, variant, **kwargs):
99
super().__init__('namd_%s_check' % variant,
1010
os.path.dirname(__file__), **kwargs)
11-
self.descr = 'NAMD 2.11 check (%s)' % variant
11+
self.descr = 'NAMD (%s) check' % variant
1212

1313
self.valid_prog_environs = ['PrgEnv-intel']
1414

1515
self.modules = ['NAMD']
1616

1717
# Reset sources dir relative to the SCS apps prefix
1818
self.sourcesdir = os.path.join(self.current_system.resourcesdir,
19-
'NAMD')
19+
'NAMD', 'prod')
2020
self.executable = 'namd2'
2121

2222
self.use_multithreading = True
@@ -67,24 +67,17 @@ def __init__(self, version, **kwargs):
6767
self.num_gpus_per_node = 1
6868
if version == 'prod':
6969
self.tags |= {'production'}
70-
self.reference = {
71-
'dom:gpu': {
72-
'days_ns': (0.18, None, 0.05),
73-
},
74-
'daint:gpu': {
75-
'days_ns': (0.11, None, 0.05),
76-
},
77-
}
7870
else:
7971
self.tags |= {'maintenance'}
80-
self.reference = {
81-
'dom:gpu': {
82-
'days_ns': (0.18, None, 0.05),
83-
},
84-
'daint:gpu': {
85-
'days_ns': (0.11, None, 0.05),
86-
},
87-
}
72+
73+
self.reference = {
74+
'dom:gpu': {
75+
'days_ns': (0.18, None, 0.05),
76+
},
77+
'daint:gpu': {
78+
'days_ns': (0.11, None, 0.05),
79+
},
80+
}
8881

8982

9083
@rfm.parameterized_test(['maint'], ['prod'])
@@ -96,21 +89,14 @@ def __init__(self, version, **kwargs):
9689
self.num_cpus_per_task = 72
9790
if version == 'prod':
9891
self.tags |= {'production'}
99-
self.reference = {
100-
'dom:mc': {
101-
'days_ns': (0.57, None, 0.05),
102-
},
103-
'daint:mc': {
104-
'days_ns': (0.38, None, 0.05),
105-
},
106-
}
10792
else:
10893
self.tags |= {'maintenance'}
109-
self.reference = {
110-
'dom:mc': {
111-
'days_ns': (0.57, None, 0.05),
112-
},
113-
'daint:mc': {
114-
'days_ns': (0.37, None, 0.05),
115-
},
116-
}
94+
95+
self.reference = {
96+
'dom:mc': {
97+
'days_ns': (0.57, None, 0.05),
98+
},
99+
'daint:mc': {
100+
'days_ns': (0.38, None, 0.05),
101+
},
102+
}

0 commit comments

Comments
 (0)