Commit 5b5b5e0
committed
v0.3.15: crash fixes, NVML build fix, doctor overhaul, measurement consistency
Crash fixes:
- Fix core dump when RAPL permission denied (try/catch in C API boundary)
- Fix os.geteuid() crash on Windows
- Fix NEMB session leak on subprocess timeout
- Handle TimeoutExpired in all measurement backends
NVML / GPU:
- Pass HAVE_NVML compile definition to codegreen-nemb target (was always stubs)
- Add Windows NVML search paths
- GPU detection in doctor command
Measurement accuracy:
- Consistent capture_output across JSON/human modes (was 22% discrepancy)
- RAPL provider skips inaccessible domains instead of failing entirely
- JSON budget exit code fixed (was exit 0 when exceeded)
CLI improvements:
- Doctor checks NEMB library, energy backend, RAPL perms, GPU, live sensor test
- No silent fallbacks: refuses to run without real energy backend
- Permission check before measurement with actionable fix instructions
- JSON output: backend, domains, cv_percent, power_watts, outliers_removed
- Command grouping: Measurement/Setup/Diagnostics/Validation panels
- Config command: --edit creates user override, --reset reverts to defaults
- --include-warmup flag, --repeat validation, CV N/A for n<3
- JavaScript added to Language enum
Build & packaging:
- cmake errors visible under pip install (stderr with captured output)
- Python 3.14 classifier, min version 3.9
- Version via importlib.metadata (single source of truth)
- Config path alignment between Python CLI and NEMB C++ backend
- Production defaults in config.json
Documentation:
- 57+ doc issues fixed (license, broken commands, stale versions, help text)
- Changelog entries for v0.3.11-v0.3.151 parent afd748a commit 5b5b5e0
32 files changed
Lines changed: 702 additions & 313 deletions
File tree
- codegreen
- cli
- measurement
- src/nemb
- core
- drivers
- hal
- utils
- optimizer
- docs
- architecture
- website
- docs
- about
- getting-started
- user-guide
- install
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | | - | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
0 commit comments