Skip to content

jobemissions

Andy Turner edited this page Oct 24, 2024 · 7 revisions

Description

Compute estimated emissions from a Slurm job. Includes Scope 2 and Scope 3 emissions. If the Slurm job contains energy consumption then this is used to compute Scope 2 emissions, if energy data is not present in Slurm, the mean power draw of compute nodes is used to estimate emissions.

The carbon density for Scope 2 emissions is taken as the value for the location of ARCHER2 at the start of the job from carbonintensity.org.uk. Scope 3 emissions are computed based on the amount of resource used by the job (e.g. kgCO2e/nodeh) and are calculated as the total Scope 3 emissions from the service divided byt the total number of nodeh available over the projected lifetime of the service.

For a description of how the Scope 2 and Scope 3 emissions are estimated see the emissions-tools README.

Usage

jobemissions [-h] [--json] [--comparison COMPARE] [--noscope2] jobid

Positional arguments

  • jobid: JobID of the Slurm job to compute emissions for.

Optional arguments:

Option Description
-h, --help Show the help message and exit
--json Output in JSON format rather than human-readable text.
--comparison COMPARE Specify emissions comparisons to print as a comma- separated list. Valid vales "food", "other", "none". "none" supresses reporting of emissions comparisons. Default is "none".
--noscope2 Turn off Scope 2 emissons estmates for the job.
Clone this wiki locally