Skip to content

Commit d141b6b

Browse files
committed
slurm2sql: Bugfix for GPUeff
- GPUutil seems to have sum(gputil) across all GPUs
1 parent 86d205f commit d141b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slurm2sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ def infer_type(cd):
888888
'max(NGpus) AS NGpus, '
889889
'max(NGpus)*max(Elapsed) AS gpu_s_reserved, '
890890
'max(NGpus)*max(Elapsed)*max(GPUutil) AS gpu_s_used, '
891-
'max(GPUutil) AS GPUeff, ' # Individual job with highest use (check this)
891+
'max(GPUutil)/max(NGpus) AS GPUeff, ' # Individual job with highest use (check this)
892892
'max(GPUMem) AS GPUMem, '
893893
'MaxDiskRead, '
894894
'MaxDiskWrite, '

0 commit comments

Comments
 (0)