1212class 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