mirror of
https://gitlab.cs.uni-saarland.de/hpc/cc-condor-sync.git
synced 2025-07-27 15:16:09 +02:00
Fix AssignedGPUs
parsing.
This commit is contained in:
@@ -17,10 +17,14 @@ if __name__ == "__main__":
|
||||
|
||||
slot_gpu_map = {}
|
||||
for slot in condor_status:
|
||||
machine = slot["Machine"]
|
||||
machine = slot["Machine"].split('.')[0]
|
||||
gpu_map = {}
|
||||
if machine in slot_gpu_map:
|
||||
gpu_map = slot_gpu_map[machine]
|
||||
else:
|
||||
slot_gpu_map[machine] = {}
|
||||
if not "AssignedGPUs" in slot:
|
||||
continue
|
||||
gpus = slot["AssignedGPUs"].split(',')
|
||||
for gpu_id in gpus:
|
||||
gpu = slot["GPUs_" + gpu_id.strip().replace("-", "_")]
|
||||
|
Reference in New Issue
Block a user