From 425961149516145d537fb68117b5584e5cab5984 Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Wed, 8 Feb 2023 09:10:25 +0100 Subject: [PATCH] GPU map needs all 8 leading 0s.. --- scripts/condor_status_to_gpu_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/condor_status_to_gpu_map.py b/scripts/condor_status_to_gpu_map.py index 4d47121..51b54b0 100644 --- a/scripts/condor_status_to_gpu_map.py +++ b/scripts/condor_status_to_gpu_map.py @@ -28,6 +28,6 @@ if __name__ == "__main__": gpus = slot["AssignedGPUs"].split(',') for gpu_id in gpus: gpu = slot["GPUs_" + gpu_id.strip().replace("-", "_")] - gpu_map[gpu["Id"]] = gpu["DevicePciBusId"] + gpu_map[gpu["Id"]] = "0000" + gpu["DevicePciBusId"] slot_gpu_map[machine] = gpu_map print(json.dumps(slot_gpu_map))