georgiesamaha / configBuilder-nf

Nextflow config builder scripts for supported HPC infrastructures.
7 stars 1 forks source link

Infrastructure config - autodetect: possible queues #7

Closed jfy133 closed 8 months ago

jfy133 commented 12 months ago

e.g. on SLURM you can run sinfo, and could try to calculate already max cpus etc based on largest nodes/timelimtis etc.

jfy133 commented 11 months ago
COMMANDS TO PARSE
If hpc: 
if scheduler_type == ‘slurm’:
        sinfo -o "%P,%c,%m,%l"
elif scheduler_type == ‘sge’:
qconf??? qhost (-q)???
elif:
    …
else:
psutil.cpu_count()
psutil.virtual_memory()