con / con/duct

Add PBS (SLURM) related info such as cpu_requested, peak consumption metrics

Open
#130 3 comments 0 reactions 1 assignee Claimed by @asmacdo View on GitHub
SLURM
Dominant language
Python
Stars
12
Forks
6
Avg merge
11d 11h
Merged PRs (30d)
1

Description

original smon has

```python
#figure out max PPN
max_ppn = os.sysconf('SC_NPROCESSORS_CONF') #default to all available cores
if "PBS_NUM_PPN" in os.environ:
max_ppn = int(os.environ["PBS_NUM_PPN"])
#from https://slurm.schedmd.com/srun.html
if "SLURM_CPUS_ON_NODE" in os.environ: #incase SLURM_NTASKS is not set?
max_ppn = int(os.environ["SLURM_CPUS_ON_NODE"])
if "SLURM_NTASKS" in os.environ:
max_ppn = int(os.environ["SLURM_NTASKS"])
...
"cpu_total": os.sysconf('SC_NPROCESSORS_CONF'),
"cpu_requested": max_ppn,
```

and it might be worth adding to `duct`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.