Skip to content

Commit ec9875e

Browse files
authored
Merge branch 'master' into nvidia_automatic_arrays_acc
2 parents 10b693c + 497d3fd commit ec9875e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cscs-checks/mch/cuda_stress_test.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@rfm.simple_test
11-
class CudaStressTest(rfm.RegressionTest):
11+
class cuda_stress_test(rfm.RegressionTest):
1212
descr = 'MCH CUDA stress test'
1313
valid_systems = ['daint:gpu', 'dom:gpu', 'arolla:cn', 'tsa:cn']
1414
valid_prog_environs = ['*']
@@ -25,9 +25,14 @@ def set_environment(self):
2525
self.exclusive_access = True
2626
self.valid_prog_environs = ['PrgEnv-gnu', 'PrgEnv-gnu-nompi',
2727
'PrgEnv-pgi', 'PrgEnv-pgi-nompi']
28-
self.modules = ['cuda/10.1.243']
2928
else:
30-
self.valid_prog_environs = ['PrgEnv-gnu']
29+
self.valid_prog_environs = ['PrgEnv-gnu', 'PrgEnv-nvidia']
30+
31+
@run_after('setup')
32+
def set_modules(self):
33+
if self.current_system.name in {'arolla', 'tsa'}:
34+
self.modules = ['cuda/10.1.243']
35+
elif self.current_environ.name != 'PrgEnv-nvidia':
3136
self.modules = ['craype-accel-nvidia60', 'cdt-cuda']
3237

3338
@run_before('compile')

0 commit comments

Comments
 (0)