55
66
77class NamdBaseCheck (rfm .RunOnlyRegressionTest ):
8- def __init__ (self , variant , ** kwargs ):
9- super ().__init__ ('namd_%s_check' % variant ,
10- os . path . dirname ( __file__ ), ** kwargs )
11- self .descr = 'NAMD (%s) check ' % variant
8+ def __init__ (self , version , variant ):
9+ super ().__init__ ()
10+ self . name = 'namd_%s_%s_check' % ( version , variant )
11+ self .descr = 'NAMD check (%s, %s) ' % ( version , variant )
1212
1313 self .valid_prog_environs = ['PrgEnv-intel' ]
1414
@@ -59,13 +59,13 @@ def __init__(self, variant, **kwargs):
5959
6060@rfm .parameterized_test (['maint' ], ['prod' ])
6161class NamdGPUCheck (NamdBaseCheck ):
62- def __init__ (self , version , ** kwargs ):
63- super ().__init__ ('gpu_%s' % version , ** kwargs )
62+ def __init__ (self , variant ):
63+ super ().__init__ ('gpu' , variant )
6464 self .valid_systems = ['daint:gpu' , 'dom:gpu' ]
6565 self .executable_opts = '+idlepoll +ppn 23 stmv.namd' .split ()
6666 self .num_cpus_per_task = 24
6767 self .num_gpus_per_node = 1
68- if version == 'prod' :
68+ if variant == 'prod' :
6969 self .tags |= {'production' }
7070 else :
7171 self .tags |= {'maintenance' }
@@ -82,12 +82,12 @@ def __init__(self, version, **kwargs):
8282
8383@rfm .parameterized_test (['maint' ], ['prod' ])
8484class NamdCPUCheck (NamdBaseCheck ):
85- def __init__ (self , version , ** kwargs ):
86- super ().__init__ ('cpu_%s' % version , ** kwargs )
85+ def __init__ (self , variant ):
86+ super ().__init__ ('cpu' , variant )
8787 self .valid_systems = ['daint:mc' , 'dom:mc' ]
8888 self .executable_opts = '+idlepoll +ppn 71 stmv.namd' .split ()
8989 self .num_cpus_per_task = 72
90- if version == 'prod' :
90+ if variant == 'prod' :
9191 self .tags |= {'production' }
9292 else :
9393 self .tags |= {'maintenance' }
0 commit comments