Skip to content

Commit f5ef7a2

Browse files
authored
Merge branch 'master' into bugfix/force-local-not-working
2 parents c661671 + 8e8e7a9 commit f5ef7a2

File tree

3 files changed

+10
-48
lines changed

3 files changed

+10
-48
lines changed

cscs-checks/apps/namd/namd_check.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ def __init__(self, variant, **kwargs):
1919
'NAMD')
2020
self.executable = 'namd2'
2121

22+
self.use_multithreading = True
23+
self.num_tasks_per_core = 2
24+
25+
if self.current_system.name == 'dom':
26+
self.num_tasks = 6
27+
self.num_tasks_per_node = 1
28+
else:
29+
self.num_tasks = 16
30+
self.num_tasks_per_node = 1
31+
2232
energy = sn.avg(sn.extractall(r'ENERGY:(\s+\S+){10}\s+(?P<energy>\S+)',
2333
self.stdout, 'energy', float))
2434
energy_reference = -2451359.5
@@ -52,9 +62,7 @@ def __init__(self, version, **kwargs):
5262
super().__init__('gpu_%s' % version, **kwargs)
5363
self.valid_systems = ['daint:gpu', 'dom:gpu']
5464
self.executable_opts = '+idlepoll +ppn 23 stmv.namd'.split()
55-
self.use_multithreading = True
5665
self.num_cpus_per_task = 24
57-
self.num_tasks_per_core = 2
5866
self.num_gpus_per_node = 1
5967

6068

@@ -91,15 +99,7 @@ def __init__(self, version, **kwargs):
9199
super().__init__('cpu_%s' % version, **kwargs)
92100
self.valid_systems = ['daint:mc', 'dom:mc']
93101
self.executable_opts = '+idlepoll +ppn 71 stmv.namd'.split()
94-
self.use_multithreading = True
95102
self.num_cpus_per_task = 72
96-
self.num_tasks_per_core = 2
97-
if self.current_system.name == 'dom':
98-
self.num_tasks = 6
99-
self.num_tasks_per_node = 1
100-
else:
101-
self.num_tasks = 16
102-
self.num_tasks_per_node = 1
103103

104104

105105
class NamdCPUProdCheck(NamdCPUCheck):

reframe/core/schedulers/__init__.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -41,34 +41,6 @@ class Job(abc.ABC):
4141
#: :default: ``[]``
4242
options = fields.TypedListField('options', str)
4343

44-
#: List of shell commands to execute before launching this job.
45-
#:
46-
#: :type: :class:`list` of :class:`str`
47-
#: :default: ``[]``
48-
#:
49-
#: .. note::
50-
#: .. deprecated:: 2.10
51-
#: Please use the :attr:`reframe.core.pipeline.RegressionTest.pre_run`
52-
#: field instead.
53-
pre_run = fields.DeprecatedField(
54-
fields.TypedListField('_pre_run', str),
55-
'Use of the pre_run field of Job is deprecated. '
56-
'Please use the pre_run field of RegressionTest instead.')
57-
58-
#: List of shell commands to execute after launching this job.
59-
#:
60-
#: :type: :class:`list` of :class:`str`
61-
#: :default: ``[]``
62-
#:
63-
#: .. note::
64-
#: .. deprecated:: 2.10
65-
#: Please use the :attr:`reframe.core.pipeline.RegressionTest.post_run`
66-
#: field instead.
67-
post_run = fields.DeprecatedField(
68-
fields.TypedListField('_post_run', str),
69-
'Use of the post_run field of Job is deprecated. '
70-
'Please use the post_run field of RegressionTest instead.')
71-
7244
#: The parallel program launcher that will be used to launch the parallel
7345
#: executable of this job.
7446
#:

unittests/test_schedulers.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,6 @@ def test_cancel_term_ignore(self):
225225
# Verify that the spawned sleep is killed, too
226226
self.assertProcessDied(sleep_pid)
227227

228-
def test_deprecated_pre_run_and_post_run(self):
229-
from reframe.core.exceptions import ReframeDeprecationWarning
230-
231-
self.assertWarns(ReframeDeprecationWarning, exec,
232-
'self.testjob.pre_run = []',
233-
globals(), locals())
234-
self.assertWarns(ReframeDeprecationWarning, exec,
235-
'self.testjob.post_run = []',
236-
globals(), locals())
237-
238228

239229
class TestSlurmJob(_TestJob):
240230
@property

0 commit comments

Comments
 (0)