Skip to content

Commit f19d73c

Browse files
author
Vasileios Karakasis
authored
Merge branch 'master' into test/gromacs
2 parents b3d1e60 + 787b87f commit f19d73c

File tree

21 files changed

+157
-63
lines changed

21 files changed

+157
-63
lines changed

config/cscs-ci.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class ReframeSettings:
157157
'format': (
158158
'%(asctime)s|reframe %(version)s|'
159159
'%(check_info)s|jobid=%(check_jobid)s|'
160+
'num_tasks=%(check_num_tasks)s|'
160161
'%(check_perf_var)s=%(check_perf_value)s|'
161162
'ref=%(check_perf_ref)s '
162163
'(l=%(check_perf_lower_thres)s, '

config/cscs-pbs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ class ReframeSettings:
140140
'format': (
141141
'%(asctime)s|reframe %(version)s|'
142142
'%(check_info)s|jobid=%(check_jobid)s|'
143+
'num_tasks=%(check_num_tasks)s|'
143144
'%(check_perf_var)s=%(check_perf_value)s|'
144145
'ref=%(check_perf_ref)s '
145146
'(l=%(check_perf_lower_thres)s, '

config/cscs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ class ReframeSettings:
588588
'format': (
589589
'%(asctime)s|reframe %(version)s|'
590590
'%(check_info)s|jobid=%(check_jobid)s|'
591+
'num_tasks=%(check_num_tasks)s|'
591592
'%(check_perf_var)s=%(check_perf_value)s|'
592593
'ref=%(check_perf_ref)s '
593594
'(l=%(check_perf_lower_thres)s, '

cscs-checks/apps/tensorflow/tensorflow_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, model_name):
1515
self.num_gpus_per_node = 1
1616
tf_version = '1.14.0'
1717
cuda_version = '10.1.168'
18-
tc_version = '19.09'
18+
tc_version = '19.10'
1919
self.modules = ['TensorFlow/%s-CrayGNU-%s-cuda-%s-python3' %
2020
(tf_version, tc_version, cuda_version)]
2121

cscs-checks/apps/tensorflow/tf_horovod_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, variant):
1111
self.valid_prog_environs = ['PrgEnv-gnu']
1212
tfshortver = '1.14'
1313
self.sourcesdir = 'https://github.com/tensorflow/benchmarks'
14-
self.modules = ['Horovod/0.16.4-CrayGNU-19.09-tf-%s.0' % tfshortver]
14+
self.modules = ['Horovod/0.16.4-CrayGNU-19.10-tf-%s.0' % tfshortver]
1515
if variant == 'small':
1616
self.valid_systems += ['dom:gpu']
1717
self.num_tasks = 8

cscs-checks/cuda/multi_gpu.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self):
3939
'--end=%d' % self.max_buffer_size, '--csv']
4040
self.num_tasks = 0
4141
self.num_tasks_per_node = 1
42-
if self.current_system.name in ['daint', 'dom']:
42+
if self.current_system.name in ['daint', 'dom', 'tiger']:
4343
self.modules = ['craype-accel-nvidia60']
4444
self.num_gpus_per_node = 1
4545
else:
@@ -59,9 +59,13 @@ def __init__(self):
5959
'dom:gpu:d2d': (499000, -0.1, None, 'MB/s'),
6060
'kesch:cn:h2d': (7583, -0.1, None, 'MB/s'),
6161
'kesch:cn:d2h': (7584, -0.1, None, 'MB/s'),
62-
'kesch:cn:d2d': (137408, -0.1, None, 'MB/s')
62+
'kesch:cn:d2d': (137408, -0.1, None, 'MB/s'),
63+
'tiger:gpu:h2d': (0, None, None, 'MB/s'),
64+
'tiger:gpu:d2h': (0, None, None, 'MB/s'),
65+
'tiger:gpu:d2d': (0, None, None, 'MB/s'),
6366
}
64-
self.tags = {'diagnostic', 'mch', 'craype', 'external-resources'}
67+
self.tags = {'diagnostic', 'benchmark', 'mch',
68+
'craype', 'external-resources'}
6569
self.maintainers = ['AJ', 'VK']
6670

6771
def _xfer_pattern(self, xfer_kind, devno, nodename):

cscs-checks/libraries/boost/boost_python_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import reframe.utility.sanity as sn
33

44

5-
@rfm.parameterized_test(['1.70.0', '19.09', '2.7'], ['1.70.0', '19.09', '3.6'])
5+
@rfm.parameterized_test(['1.70.0', '19.10', '2.7'], ['1.70.0', '19.10', '3.6'])
66
class BoostCrayGnuPythonTest(rfm.RegressionTest):
77
def __init__(self, boost_version, cray_gnu_version, python_version):
88
self.descr = ('Test for Boost-%s for CrayGnu-%s with python %s '

cscs-checks/microbenchmarks/spec-accel/spec.py

Lines changed: 45 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def __init__(self, prg_envs):
1515
self.configs = {
1616
'PrgEnv-gnu': 'cscs-gnu',
1717
'PrgEnv-cray': 'cscs-cray',
18+
'PrgEnv-pgi': 'cscs-pgi',
1819
}
1920

2021
app_source = os.path.join(self.current_system.resourcesdir,
@@ -31,7 +32,7 @@ def __init__(self, prg_envs):
3132
self.refs = {
3233
env: {bench_name: (rt, None, 0.1, 'Seconds')
3334
for (bench_name, rt) in
34-
zip(self.benchmarks, self.exec_times[env])}
35+
zip(self.benchmarks[env], self.exec_times[env])}
3536
for env in self.valid_prog_environs
3637
}
3738

@@ -42,14 +43,18 @@ def __init__(self, prg_envs):
4243
self.executable = 'runspec'
4344

4445
outfile = sn.getitem(sn.glob('result/ACCEL.*.log'), 0)
45-
self.sanity_patterns = sn.all([sn.assert_found(
46-
r'Success.*%s' % bn, outfile) for bn in self.benchmarks])
47-
48-
self.perf_patterns = {
49-
bench_name: sn.avg(sn.extractall(
50-
r'Success.*%s.*runtime=(?P<rt>[0-9.]+)' % bench_name,
51-
outfile, 'rt', float))
52-
for bench_name in self.benchmarks
46+
self.sanity_patterns_ = {
47+
env: sn.all([sn.assert_found(
48+
r'Success.*%s' % bn, outfile) for bn in self.benchmarks[env]])
49+
for env in self.valid_prog_environs
50+
}
51+
52+
self.perf_patterns_ = {
53+
env: {bench_name: sn.avg(sn.extractall(
54+
r'Success.*%s.*runtime=(?P<rt>[0-9.]+)' % bench_name,
55+
outfile, 'rt', float))
56+
for bench_name in self.benchmarks[env]}
57+
for env in self.valid_prog_environs
5358
}
5459

5560
self.maintainers = ['SK']
@@ -61,12 +66,15 @@ def setup(self, partition, environ, **job_opts):
6166
self.executable_opts = ['--config=%s' % self.configs[environ.name],
6267
'--platform NVIDIA',
6368
'--tune=base',
64-
'--device GPU'] + self.benchmarks
69+
'--device GPU'] + self.benchmarks[environ.name]
6570
self.reference = {
6671
'dom:gpu': self.refs[environ.name],
6772
'daint:gpu': self.refs[environ.name]
6873
}
6974

75+
self.sanity_patterns = self.sanity_patterns_[environ.name]
76+
self.perf_patterns = self.perf_patterns_[environ.name]
77+
7078
super().setup(partition, environ, **job_opts)
7179
# The job launcher has to be changed since the `runspec`
7280
# script is not used with srun.
@@ -78,12 +86,22 @@ def setup(self, partition, environ, **job_opts):
7886
class SpecAccelCheckOpenCL(SpecAccelCheckBase):
7987
def __init__(self):
8088
self.descr = 'SPEC-accel benchmark OpenCL'
81-
valid_prog_environs = ['PrgEnv-gnu', 'PrgEnv-cray']
89+
valid_prog_environs = ['PrgEnv-gnu', 'PrgEnv-cray', 'PrgEnv-pgi']
8290

83-
self.benchmarks = ['systest', 'tpacf', 'stencil', 'lbm', 'fft',
91+
self.benchmarks = {
92+
'PrgEnv-gnu': ['systest', 'tpacf', 'stencil', 'lbm', 'fft',
8493
'spmv', 'mriq', 'bfs', 'cutcp', 'kmeans',
8594
'lavamd', 'cfd', 'nw', 'hotspot', 'lud',
86-
'ge', 'srad', 'heartwall', 'bplustree']
95+
'ge', 'srad', 'heartwall', 'bplustree'],
96+
'PrgEnv-cray': ['systest', 'tpacf', 'stencil', 'lbm', 'fft',
97+
'spmv', 'mriq', 'bfs', 'cutcp', 'kmeans',
98+
'lavamd', 'cfd', 'nw', 'hotspot', 'lud',
99+
'ge', 'srad', 'heartwall', 'bplustree'],
100+
'PrgEnv-pgi': ['systest', 'tpacf', 'stencil', 'lbm', 'fft',
101+
'spmv', 'mriq', 'bfs', 'kmeans',
102+
'lavamd', 'cfd', 'nw', 'hotspot', 'lud',
103+
'ge', 'srad', 'heartwall', 'bplustree'],
104+
}
87105

88106
self.exec_times = {
89107
'PrgEnv-gnu': [10.7, 13.5, 17.0, 10.9, 11.91, 27.8,
@@ -92,6 +110,9 @@ def __init__(self):
92110
'PrgEnv-cray': [10.7, 13.5, 17.0, 10.9, 11.91, 27.8,
93111
7.0, 23.1, 10.8, 24.9, 8.7, 24.4, 16.2,
94112
15.7, 15.6, 11.1, 20.0, 41.9, 26.2],
113+
'PrgEnv-pgi': [10.7, 30, 17.0, 10.9, 11.91, 27.8,
114+
7.0, 23.1, 24.9, 8.7, 24.4, 16.2,
115+
15.7, 15.6, 11.1, 20.0, 41.9, 26.2],
95116
}
96117

97118
super().__init__(valid_prog_environs)
@@ -102,15 +123,22 @@ def __init__(self):
102123
class SpecAccelCheckOpenACC(SpecAccelCheckBase):
103124
def __init__(self):
104125
self.descr = 'SPEC-accel benchmark OpenACC'
105-
valid_prog_environs = ['PrgEnv-cray']
126+
valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-pgi']
106127

107-
self.benchmarks = ['ostencil', 'olbm', 'omriq', 'md', 'ep',
128+
self.benchmarks = {
129+
'PrgEnv-cray': ['ostencil', 'olbm', 'omriq', 'md', 'ep',
130+
'clvrleaf', 'cg', 'seismic', 'sp', 'csp',
131+
'miniGhost', 'ilbdc', 'swim', 'bt'],
132+
'PrgEnv-pgi': ['ostencil', 'olbm', 'omriq', 'md', 'ep',
108133
'clvrleaf', 'cg', 'seismic', 'sp', 'csp',
109-
'miniGhost', 'ilbdc', 'swim', 'bt']
134+
'ilbdc', 'swim', 'bt'],
135+
}
110136

111137
self.exec_times = {
112138
'PrgEnv-cray': [18, 26, 121, 20, 73, 59, 41,
113-
50, 71, 34, 72, 41, 34, 378]
139+
50, 71, 34, 72, 41, 34, 378],
140+
'PrgEnv-pgi': [18, 40, 116, 20, 71, 57, 45,
141+
56, 33, 32, 41, 48, 15]
114142
}
115143

116144
super().__init__(valid_prog_environs)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
ext = compsys
2+
output_format = asc
3+
#table = 0
4+
teeout = no
5+
teerunout = yes
6+
tune = base
7+
8+
######################################################################
9+
# Compiler selection, versions, and dates.
10+
#
11+
# sw_compiler<xx> = additional information describing the compiler
12+
# CC = how the C Compiler is invoked
13+
# FC = how the FORTRAN compiler is invoked
14+
15+
16+
default=default=default=default:
17+
sw_compiler = Computer System Compiler C and Fortran90
18+
CC = cc
19+
CXX = CC
20+
FC = ftn
21+
22+
strict_rundir_verify = 0
23+
24+
#######################################################################
25+
#
26+
# OPTIMIZE = flags applicable to all compilers
27+
# COPTIMIZE = flags applicable to the C compiler
28+
# FOPTIMIZE = flags applicable to the Fortran compiler
29+
#
30+
# See your compiler manual for information on the flags available
31+
# for your compiler
32+
#
33+
34+
OPTIMIZE = -O3
35+
LIBS = -lOpenCL
36+
#EXTRA_LIBS =
37+
EXTRA_CXXFLAGS = -std=c++03
38+
#EXTRA_CFLAGS =
39+
40+
#######################################################################
41+
# End of user-supplied information.
42+
#######################################################################

cscs-checks/tools/profiling_and_debugging/cuda_gdb.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ def __init__(self):
1414
self.num_gpus_per_node = 1
1515
self.num_tasks_per_node = 1
1616
self.sourcesdir = 'src/Cuda'
17-
self.executable = 'cuda-gdb cuda_gdb_check'
17+
self.executable = 'cuda-gdb'
18+
self.executable_opts = ['-x .in.cudagdb ./cuda_gdb_check']
19+
# unload xalt to avoid runtime error:
20+
self.pre_run = ['unset LD_PRELOAD']
1821
if self.current_system.name == 'kesch':
1922
self.exclusive_access = True
2023
self.modules = ['cudatoolkit/8.0.61']
@@ -35,24 +38,13 @@ def __init__(self):
3538
'-lcudart', '-lm']
3639

3740
self.sanity_patterns = sn.all([
38-
sn.assert_found(r'^\(cuda-gdb\) Breakpoint 1 at .*: file ',
39-
self.stdout),
41+
sn.assert_found(r'^Breakpoint 1 at .*: file ', self.stdout),
4042
sn.assert_found(r'_jacobi-cuda-kernel.cu, line 59\.', self.stdout),
41-
sn.assert_found(r'^\(cuda-gdb\) Starting program:', self.stdout),
4243
sn.assert_found(r'^\(cuda-gdb\) quit', self.stdout),
4344
sn.assert_lt(sn.abs(sn.extractsingle(
44-
r'^\(cuda-gdb\)\s+\$1\s+=\s+(?P<result>\S+)', self.stdout,
45+
r'\$1\s+=\s+(?P<result>\S+)', self.stdout,
4546
'result', float)), 1e-5)
4647
])
4748

4849
self.maintainers = ['MK', 'JG']
4950
self.tags = {'production', 'craype'}
50-
51-
def setup(self, partition, environ, **job_opts):
52-
super().setup(partition, environ, **job_opts)
53-
self.job.launcher = LauncherWrapper(
54-
self.job.launcher, 'printf', [
55-
r"'break _jacobi-cuda-kernel.cu:59\n",
56-
r"run\n", r"print *residue_d'", ' | '
57-
]
58-
)

0 commit comments

Comments
 (0)