CPUs can make a little heat, as a treat
1# Heater
2
3A Rust command-line application that churns your CPU cores at maximum capacity so your laptop isn't cold
4
5## Build
6
7```bash
8cargo build --release
9```
10
11The compiled binary will be at `target/release/heater`.
12
13## Usage
14
15### Run indefinitely (until Ctrl+C)
16```bash
17cargo run --release
18# or
19./target/release/heater
20```
21
22### Run for a specific duration (in seconds)
23```bash
24cargo run --release -- --duration 30
25# or
26./target/release/heater --duration 30
27```
28
29### Customize the number of free cores
30```bash
31# Leave 2 cores free
32cargo run --release -- --free-cores 2
33
34# Use ALL cores (leave 0 free)
35cargo run --release -- --free-cores 0
36
37# Run for 60 seconds, leaving 2 cores free
38cargo run --release -- --duration 60 --free-cores 2
39```
40
41## Options
42
43```
44-d, --duration <DURATION> Duration to run in seconds (omit for indefinite run)
45-f, --free-cores <FREE_CORES> Number of cores to leave free (default: 1)
46-g, --gpu Enable GPU usage (makes more heat)
47-h, --help Print help
48-V, --version Print version
49```