aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* split main.rs into bin/apple_silicon.rs and lib.rsFranck Cuny2024-12-292-3/+4
| | | | | Create a binary named `apple_silicon`, and add a library named to the project, so it can be re-used by external projects.
* report TDP for GPU and CPUFranck Cuny2024-12-292-11/+186
| | | | | | | | Add the TDP for the GPUs and CPUs, for the models we know about. Apple does not publish information about TDP so we're going to have to gather that information by going over various sites. Add some unit tests.
* use a constant value for the path to sysctlFranck Cuny2024-12-281-1/+3
|
* document the public typesFranck Cuny2024-12-281-0/+4
|
* be more explicit in the default outputFranck Cuny2024-12-281-1/+1
|
* initial commitFranck Cuny2024-07-096-0/+181
``` [18:04] mba-fcuny:apple_silicon (main +) | cargo run Compiling apple_silicon v0.1.0 (/Users/fcuny/workspace/apple_silicon) Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s Running `target/debug/apple_silicon` our CPU is an Apple M2, and we have 8 cores, and 10 GPU cores ```