NordicHPC / slurm2sql

Dump slurm accounting database to sqlite3 database for easy analysis
MIT License
10 stars 6 forks source link

Wrong extraction of the number of GPUs from GRES #12

Open tengwenxuan opened 2 years ago

tengwenxuan commented 2 years ago

The code (https://github.com/NordicHPC/slurm2sql/blob/master/slurm2sql.py#L248) only considers GRES w/o gpu type such as 'gpu:4' while GRES can have gpu type e.g. 'gpu:v100:4'

rkdarst commented 3 months ago

The latest Slurm (that I can see) seems to have both the generic gres/gpu and the specific gpu type:

gres/gpu:a100=1,gres/gpu=1

In your latest Slurm, is this still an issue? (A lot more has happened in two years. I'm working to see what else needs updating...)