Skip to content

Commit a4b0a1b

Browse files
committed
fix comments
1 parent 3ed3d6d commit a4b0a1b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

cscs-checks/system/slurm/slurm.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ class DefaultRequestGPUSetsGRES(SlurmSimpleBaseCheck):
138138

139139
@sanity_function
140140
def assert_found_resources(self):
141-
return sn.assert_found(
142-
r'.*(TresPerNode|Gres)=.*gpu:1.*', self.stdout)
141+
return sn.assert_found(r'.*(TresPerNode|Gres)=.*gpu:1.*', self.stdout)
143142

144143

145144
@rfm.simple_test
@@ -213,20 +212,20 @@ def assert_found_oom(self):
213212
self.stderr)
214213

215214
@run_before('performance')
216-
def set_perf_patterns(self):
215+
def set_references(self):
217216
no_limit = (0, None, None, 'GB')
218217
self.reference = {
219218
'*': {
220219
'max_cn_memory': no_limit,
221220
'max_allocated_memory': (
222-
sn.getattr(self, 'reference_meminfo'), -0.05, None, 'GB'
221+
self.reference_meminfo(), -0.05, None, 'GB'
223222
),
224223
}
225224
}
226225

227226
@performance_function('GB')
228227
def max_cn_memory(self):
229-
return sn.getattr(self, 'reference_meminfo')
228+
return self.reference_meminfo()
230229

231230
@performance_function('GB')
232231
def max_allocated_memory(self):
@@ -250,8 +249,6 @@ def set_tasks(self):
250249
self.num_tasks = self.num_tasks_per_node
251250
self.job.launcher.options = ['-u']
252251

253-
@property
254-
@deferrable
255252
def reference_meminfo(self):
256253
reference_meminfo = {
257254
'dom:gpu': 62,

0 commit comments

Comments
 (0)