energibridge
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
2 of 8 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: tdurieux
- License: mit
- Language: Jupyter Notebook
- Default Branch: main
- Size: 134 KB
Statistics
- Stars: 23
- Watchers: 4
- Forks: 22
- Open Issues: 10
- Releases: 7
Metadata Files
README.md
EnergiBridge
Energibridge is a cross-platform energy measurement utility that provides support for Linux, Windows, and MacOS, as well as Intel, AMD, and Apple ARM CPU architectures.
This tool is designed to collect resource usage data for a command to execute and to output the data in a CSV format.
| OS | Intel CPU | AMD CPU | M1 CPU | Intel GPU | Nvidia GPU | AMD GPU | M1 GPU | | ------- | --------- | ------- | ------ | --------- | ---------- | ------- | ------ | | Linux | ✅ | ✅ | | | ✅ | | | | Windows | ✅ | ✅ | | | ✅ | | | | Mac | ✅ | | ✅ | ✅ | | ✅ | ✅ |
Requirements
Depending on your hardware you need different dependencies.
NVIDIA
- nvml
Install
Windows
Install LibreHardwareMonitor to access the CPU registry.
In an elevated (Administrator) command line (e.g. cmd.exe):
```
Create:
sc create rapl type=kernel binPath="
Start: sc start rapl
Stop: sc stop rapl
Delete: sc delete rapl
Build: cargo build -r ```
For PowerShell use
sc.exeinstead ofsc.
Linux
Change the permission of the msr file to be able to read them without root access. The permissions are reseted each time your restart the machine.
sudo chgrp -R msr /dev/cpu/*/msr;
sudo chmod g+r /dev/cpu/*/msr;
Build EnergiBridge
cargo build -r;
Provide the permission to the binary to read the registry. Since any non-root program accessing the msr also needs the rawio capability, if you move the binary you should eecute this line again
sudo setcap cap_sys_rawio=ep target/release/energibridge;
MacOS
Build EnergiBridge
cargo build -r;
Usage
To run the script, use the following command:
``` Usage: energibridge[.exe] [OPTIONS] [COMMAND]...
Arguments: [COMMAND]...
Options: -o, --output
-s, --separator
-i, --interval
Output Example
csv
Delta,Time,CPU_FREQUENCY_0,CPU_FREQUENCY_1,CPU_FREQUENCY_2,CPU_FREQUENCY_3,CPU_FREQUENCY_4,CPU_FREQUENCY_5,CPU_FREQUENCY_6,CPU_FREQUENCY_7,CPU_FREQUENCY_8,CPU_FREQUENCY_9,CPU_TEMP_0,CPU_TEMP_1,CPU_TEMP_2,CPU_TEMP_3,CPU_TEMP_4,CPU_TEMP_5,CPU_TEMP_6,CPU_TEMP_7,CPU_TEMP_8,CPU_TEMP_9,CPU_USAGE_0,CPU_USAGE_1,CPU_USAGE_2,CPU_USAGE_3,CPU_USAGE_4,CPU_USAGE_5,CPU_USAGE_6,CPU_USAGE_7,CPU_USAGE_8,CPU_USAGE_9,SYSTEM_POWER (Watts),TOTAL_MEMORY,TOTAL_SWAP,USED_MEMORY,USED_SWAP
0,1697704464320,0,0,0,0,0,0,0,0,0,0,46.529457092285156,44.31881332397461,43.83422088623047,47.03656005859375,44.67115783691406,43.856910705566406,41.333412170410156,41.268951416015625,44.348262786865234,43.08387756347656,46.37215805053711,45.429779052734375,15.021618843078613,8.819367408752441,5.0954484939575195,3.514699935913086,2.9715969562530518,1.5818228721618652,1.1069598197937012,0.9475208520889282,11.58033275604248,34359738368,0,10188488704,0
104,1697704464321,0,0,0,0,0,0,0,0,0,0,46.529457092285156,44.31881332397461,43.83422088623047,47.03656005859375,44.67115783691406,43.856910705566406,41.333412170410156,41.268951416015625,44.348262786865234,43.08387756347656,46.37215042114258,45.429771423339844,15.021615982055664,8.819366455078125,5.095447063446045,3.514699697494507,2.9715967178344727,1.5818227529525757,1.1069598197937012,0.9475207924842834,11.58033275604248,34359738368,0,10189275136,0
Units of output metrics
| Time | Energy | Memory | Frequency | Voltage | |:----:|:------:|:------:|:---------:|:-------:| | ms | J | Bytes | MHz | V |
Owner
- Name: Thomas Durieux
- Login: tdurieux
- Kind: user
- Website: https://durieux.me
- Twitter: thodurieux
- Repositories: 132
- Profile: https://github.com/tdurieux
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Sallou" given-names: "June" orcid: "https://orcid.org/0000-0003-2230-9351" - family-names: "Cruz" given-names: "Luís" orcid: "https://orcid.org/0000-0002-1615-355X" - family-names: "Durieux" given-names: "Thomas" orcid: "https://orcid.org/0000-0002-1996-6134" title: "EnergiBridge: Empowering Software Sustainability through Cross-Platform Energy Measurement" version: 1.0.0 doi: 10.48550/arXiv.2312.13897 date-released: 2023-12-21 url: "https://github.com/tdurieux/EnergiBridge"
GitHub Events
Total
- Issues event: 2
- Watch event: 13
- Issue comment event: 2
- Pull request review comment event: 3
- Pull request event: 3
- Fork event: 4
Last Year
- Issues event: 2
- Watch event: 13
- Issue comment event: 2
- Pull request review comment event: 3
- Pull request event: 3
- Fork event: 4
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| tdurieux | d****s@h****m | 33 |
| Thomas Durieux | 5****x | 4 |
| Rens Hijdra | r****2@h****m | 2 |
| June Sallou | 1****l | 2 |
| Delano Flipse | d****e@h****m | 1 |
| Jnsll | j****u@t****l | 1 |
| rvandernoort | s****t@s****l | 1 |
| Luís Cruz | l****z@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 8
- Total pull requests: 14
- Average time to close issues: 6 days
- Average time to close pull requests: 1 day
- Total issue authors: 7
- Total pull request authors: 10
- Average comments per issue: 0.75
- Average comments per pull request: 0.64
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 5
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 3
- Average comments per issue: 0.5
- Average comments per pull request: 0.2
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Raiduy (2)
- alexandraglz (1)
- RodinHaker (1)
- RobertoN0 (1)
- aron-hoogeveen (1)
- eshadutta9 (1)
- Mohannadcse (1)
Pull Request Authors
- RensHijdra (4)
- piaasbjornsen (2)
- delanoflipse (2)
- kaijenlee (2)
- rvandernoort (2)
- thijsnulle (2)
- luiscruz (2)
- andrei-calin-dragomir (2)
- davidvos99 (1)
- OttoKaaij (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- dangdennis/toml-action v1.3.0 composite
- taiki-e/create-gh-release-action v1 composite
- taiki-e/upload-rust-binary-action v1 composite
- anstream 0.6.4
- anstyle 1.0.4
- anstyle-parse 0.2.2
- anstyle-query 1.0.0
- anstyle-wincon 3.0.1
- autocfg 1.1.0
- bitflags 1.3.2
- cfg-if 1.0.0
- clap 4.4.6
- clap_builder 4.4.6
- clap_derive 4.4.2
- clap_lex 0.5.1
- colorchoice 1.0.0
- core-foundation-sys 0.8.4
- crossbeam-deque 0.8.3
- crossbeam-epoch 0.9.15
- crossbeam-utils 0.8.16
- darling 0.10.2
- darling_core 0.10.2
- darling_macro 0.10.2
- either 1.9.0
- fnv 1.0.7
- four-char-code 0.0.5
- four-char-code-macros-impl 0.0.2
- heck 0.4.1
- ident_case 1.0.1
- itertools 0.11.0
- lazy_static 1.4.0
- libc 0.2.149
- libloading 0.6.7
- memoffset 0.9.0
- ntapi 0.4.1
- nvml-wrapper 0.7.0
- nvml-wrapper-sys 0.5.0
- once_cell 1.18.0
- proc-macro-hack 0.5.20+deprecated
- proc-macro2 0.4.30
- proc-macro2 1.0.69
- quote 0.6.13
- quote 1.0.33
- rayon 1.8.0
- rayon-core 1.12.0
- scopeguard 1.2.0
- serde 1.0.189
- serde_derive 1.0.189
- smc 0.2.4
- static_assertions 1.1.0
- strsim 0.9.3
- strsim 0.10.0
- syn 0.15.44
- syn 1.0.109
- syn 2.0.38
- sysinfo 0.29.10
- thiserror 1.0.49
- thiserror-impl 1.0.49
- unicode-ident 1.0.12
- unicode-xid 0.1.0
- utf8parse 0.2.1
- winapi 0.3.9
- winapi-i686-pc-windows-gnu 0.4.0
- winapi-x86_64-pc-windows-gnu 0.4.0
- windows 0.51.1
- windows-core 0.51.1
- windows-sys 0.48.0
- windows-targets 0.48.5
- windows_aarch64_gnullvm 0.48.5
- windows_aarch64_msvc 0.48.5
- windows_i686_gnu 0.48.5
- windows_i686_msvc 0.48.5
- windows_x86_64_gnu 0.48.5
- windows_x86_64_gnullvm 0.48.5
- windows_x86_64_msvc 0.48.5
- wrapcenum-derive 0.4.0