Skip to content

Commit 84b952b

Browse files
author
Vasileios Karakasis
committed
Merge branch 'master' into feature/no-src-dir-runonlytest
2 parents ba5470c + 423320e commit 84b952b

File tree

211 files changed

+3040
-1992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+3040
-1992
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2017-2019, Swiss National Supercomputing Center (CSCS)
3+
Copyright (c) 2016-2020, Swiss National Supercomputing Center (CSCS/ETH Zurich)
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

ci-scripts/genrelnotes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python3
2+
#
3+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
4+
# ReFrame Project Developers. See the top-level LICENSE file for details.
5+
#
6+
# SPDX-License-Identifier: BSD-3-Clause
27

38
import collections
49
import re

config/cscs-ci.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
16
#
27
# CSCS ReFrame CI settings
38
#

config/cscs-pbs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
16
#
27
# Minimal CSCS configuration for testing the PBS backend
38
#

config/cscs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
16
#
27
# CSCS ReFrame settings
38
#

config/tiger.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
16
#
27
# CSCS ReFrame settings
38
#

cscs-checks/analytics/spark/spark_check.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
16
import os
27
import math
38

@@ -10,7 +15,6 @@
1015
@rfm.simple_test
1116
class SparkAnalyticsCheck(rfm.RunOnlyRegressionTest):
1217
def __init__(self):
13-
super().__init__()
1418
self.descr = 'Simple calculation of pi with Spark'
1519
self.valid_systems = ['daint:gpu', 'daint:mc']
1620
self.valid_prog_environs = ['PrgEnv-cray']
@@ -21,17 +25,19 @@ def __init__(self):
2125
self.stdout, 'pi', float)
2226
self.sanity_patterns = sn.assert_lt(sn.abs(pi_value - math.pi), 0.01)
2327
self.maintainers = ['TM', 'TR']
24-
self.tags = {'production', 'craype'}
28+
self.tags = {'craype'}
2529

26-
def setup(self, partition, environ, **job_opts):
27-
if partition.fullname == 'daint:gpu':
30+
@rfm.run_after('setup')
31+
def set_num_tasks(self):
32+
if self.current_partition.fullname == 'daint:gpu':
2833
self.num_tasks = 48
2934
self.num_tasks_per_node = 12
3035
else:
3136
self.num_tasks = 72
3237
self.num_tasks_per_node = 18
3338

34-
super().setup(partition, environ, **job_opts)
39+
@rfm.run_before('run')
40+
def set_launcher(self):
3541
# The job launcher has to be changed since the `start_analytics`
3642
# script is not used with srun.
3743
self.job.launcher = getlauncher('local')()

cscs-checks/apps/amber/amber_check.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
16
import os
27

38
import reframe as rfm
@@ -6,11 +11,8 @@
611

712
class AmberBaseCheck(rfm.RunOnlyRegressionTest):
813
def __init__(self, input_file, output_file):
9-
super().__init__()
10-
1114
self.sourcesdir = os.path.join(self.current_system.resourcesdir,
1215
'Amber')
13-
1416
self.valid_prog_environs = ['PrgEnv-gnu']
1517
self.modules = ['Amber']
1618
self.num_tasks = 1

cscs-checks/apps/cp2k/cp2k_check.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
16
import os
27
import reframe as rfm
38
import reframe.utility.sanity as sn
49

510

611
class Cp2kCheck(rfm.RunOnlyRegressionTest):
712
def __init__(self):
8-
super().__init__()
913
self.valid_prog_environs = ['PrgEnv-gnu']
1014
self.executable = 'cp2k.psmp'
1115
self.executable_opts = ['H2O-256.inp']

cscs-checks/apps/cpmd/cpmd_check.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
16
import reframe as rfm
27
import reframe.utility.sanity as sn
38

@@ -6,7 +11,6 @@
611
@rfm.parameterized_test(['small'], ['large'])
712
class CPMDCheck(rfm.RunOnlyRegressionTest):
813
def __init__(self, scale):
9-
super().__init__()
1014
self.descr = 'CPMD check (C4H6 metadynamics)'
1115
self.maintainers = ['AJ', 'LM']
1216
self.tags = {'production'}

0 commit comments

Comments
 (0)