Closed jfy133 closed 8 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.
sinfo
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()
e.g. on SLURM you can run
sinfo
, and could try to calculate already max cpus etc based on largest nodes/timelimtis etc.