Skip to content

Commit c793abb

Browse files
committed
automatic_arrays_acc
1 parent 9dbb989 commit c793abb

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

cscs-checks/mch/automatic_arrays_acc.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
class AutomaticArraysCheck(rfm.RegressionTest):
1313
def __init__(self):
1414
self.valid_systems = ['daint:gpu', 'dom:gpu', 'arolla:cn', 'tsa:cn']
15-
self.valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-cce', 'PrgEnv-pgi']
16-
if self.current_system.name in ['daint', 'dom']:
17-
self.modules = ['craype-accel-nvidia60']
18-
elif self.current_system.name in ['arolla', 'tsa']:
15+
self.valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-cce', 'PrgEnv-pgi',
16+
'PrgEnv-nvidia']
17+
if self.current_system.name in ['arolla', 'tsa']:
1918
self.exclusive_access = True
2019

2120
# This tets requires an MPI compiler, although it uses a single task
@@ -38,6 +37,10 @@ def __init__(self):
3837
'PrgEnv-pgi': {
3938
'daint:gpu': {'time': (7.5E-05, None, 0.15, 's')},
4039
'dom:gpu': {'time': (7.5e-05, None, 0.15, 's')},
40+
},
41+
'PrgEnv-nvidia': {
42+
'daint:gpu': {'time': (7.5E-05, None, 0.15, 's')},
43+
'dom:gpu': {'time': (7.5e-05, None, 0.15, 's')},
4144
}
4245
}
4346

@@ -46,6 +49,13 @@ def __init__(self):
4649

4750
@run_before('compile')
4851
def setflags(self):
52+
if self.current_system.name in ['daint', 'dom']:
53+
if (not self.current_environ.name.startswith('PrgEnv-nvidia')):
54+
self.modules = ['craype-accel-nvidia60']
55+
else:
56+
self.build_system.fflags += ['-acc', '-ta=tesla,cc60',
57+
'-Mnorpath']
58+
4959
if self.current_environ.name.startswith('PrgEnv-cray'):
5060
envname = 'PrgEnv-cray'
5161
self.build_system.fflags += ['-hacc', '-hnoomp']

0 commit comments

Comments
 (0)