MCPcopy Create free account
hub / github.com/EverMind-AI/MSA / stop_all

Method stop_all

src/utils/gpu_monitor.py:284–297  ·  view source on GitHub ↗

停止所有GPU监控并返回结果

(self)

Source from the content-addressed store, hash-verified

282 return results
283
284 def stop_all(self):
285 """停止所有GPU监控并返回结果"""
286 results = {}
287 max_peak = 0.0
288 for monitor in self.monitors:
289 peak = monitor.stop()
290 results[monitor.gpu_index] = {
291 'name': monitor.gpu_name,
292 'peak_memory': peak,
293 'unit': monitor.unit
294 }
295 if peak > max_peak:
296 max_peak = peak
297 return results, max_peak
298
299 def stop_all_and_get_max(self):
300 """停止所有监控并返回最大峰值"""

Callers 2

stop_all_and_get_maxMethod · 0.95
gpu_monitor.pyFile · 0.80

Calls 1

stopMethod · 0.80

Tested by

no test coverage detected