Skip to content

Commit

Permalink
Merge pull request #995 from Green-Software-Foundation/sci-redesign
Browse files Browse the repository at this point in the history
Sci-embodied redesign
  • Loading branch information
jmcook1186 authored Aug 28, 2024
2 parents 8222e47 + 2e05ea6 commit cb57527
Show file tree
Hide file tree
Showing 22 changed files with 345 additions and 576 deletions.

This file was deleted.

This file was deleted.

27 changes: 27 additions & 0 deletions manifests/examples/builtins/sci-embodied/scenario-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: embodied-carbon demo
description:
tags:
aggregation:
metrics:
- embodied-carbon
type: "both"
initialize:
plugins:
embodied-carbon:
method: SciEmbodied
path: builtin
config:
output-parameter: "embodied-carbon"
tree:
children:
child:
pipeline:
compute:
- embodied-carbon
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
hdd: 2
- timestamp: 2023-08-06T10:00
duration: 3600
hdd: 2
37 changes: 37 additions & 0 deletions manifests/examples/builtins/sci-embodied/scenario-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: embodied-carbon demo
description:
tags:
initialize:
plugins:
embodied-carbon:
method: SciEmbodied
path: builtin
config:
baseline-vcpus: 1
baseline-memory: 16
lifespan: 157680000
baseline-emissions: 2000000
vcpu-emissions-constant: 100000
memory-emissions-constant: 1172
ssd-emissions-constant: 50000
hdd-emissions-constant: 100000
gpu-emissions-constant: 150000
output-parameter: "embodied-carbon"
tree:
children:
child:
pipeline:
compute:
- embodied-carbon
defaults:
vCPUs: 4
memory: 32
ssd: 1
hdd: 1
gpu: 1
total-vcpus: 16
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
- timestamp: 2023-08-06T10:00
duration: 3600
12 changes: 11 additions & 1 deletion manifests/examples/builtins/sci-embodied/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,24 @@ description: successful path
tags:
initialize:
plugins:
"sci-embodied": # a model that calculates m from te, tir, el, rr and rtor
"csv-lookup":
path: builtin
method: CSVLookup
config:
filepath: >-
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-azure-instances.csv
query:
instance-class: cloud/instance-type
output: ["cpu-cores-utilized", "vcpus-allocated"]
"sci-embodied-new": # a model that calculates m from te, tir, el, rr and rtor
method: SciEmbodied
path: "builtin"
tree:
children:
child:
pipeline:
compute:
- csv-lookup
- sci-embodied # duration & config -> embodied
defaults:
device/emissions-embodied: 1533.120 # gCO2eq
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@grnsft/if-core": "^0.0.18",
"@grnsft/if-core": "^0.0.20",
"axios": "^1.7.2",
"csv-parse": "^5.5.6",
"csv-stringify": "^6.4.6",
Expand Down Expand Up @@ -86,7 +86,6 @@
"lint": "gts lint",
"pre-commit": "lint-staged",
"prepare": "husky install",
"prepublish": "npm run build",
"release": "release-it",
"test": "jest --verbose --testPathPattern=src/__tests__/"
},
Expand Down
Loading

0 comments on commit cb57527

Please sign in to comment.