Yes, I will fix it later.
Is it possible to extract the current TDP setting of the card?
Would be interesting..
With nvidia smi you have a few queries that help with that
nvidia-smi.exe --query-gpu=index,timestamp,power.draw,clocks.sm,clocks.mem,clocks.gr --format=csv -l 1
this one show you an output like this
index, timestamp, power.draw [W], clocks.current.sm [MHz], clocks.current.memory [MHz], clocks.current.graphics [MHz]
0, 2017/02/27 17:18:05.101, 91.43 W, 90 MHz, 3299 MHz, 90 MHz
1, 2017/02/27 17:18:05.103, 113.66 W, 116 MHz, 3299 MHz, 116 MHz
2, 2017/02/27 17:18:05.108, 108.22 W, 52 MHz, 3299 MHz, 52 MHz
3, 2017/02/27 17:18:05.111, 112.54 W, 103 MHz, 3299 MHz, 103 MHz
4, 2017/02/27 17:18:05.117, 111.85 W, 116 MHz, 3299 MHz, 116 MHz
5, 2017/02/27 17:18:05.121, 113.02 W, 90 MHz, 3299 MHz, 90 MHz
0, 2017/02/27 17:18:06.125, 106.84 W, 65 MHz, 3299 MHz, 65 MHz
1, 2017/02/27 17:18:06.127, 107.54 W, 90 MHz, 3299 MHz, 90 MHz
2, 2017/02/27 17:18:06.130, 110.24 W, 65 MHz, 3299 MHz, 65 MHz
3, 2017/02/27 17:18:06.132, 113.33 W, 103 MHz, 3299 MHz, 103 MHz
4, 2017/02/27 17:18:06.135, 111.65 W, 116 MHz, 3299 MHz, 116 MHz
You can also calculate the current % of TDP for your card design with
./nvidia-smi -i 0 -q |grep -i power (where -i is your card ID)
it will give you as output
Power Readings
Power Management : Supported
Power Draw : 113.72 W
Power Limit : 111.00 W
Default Power Limit : 185.00 W
Enforced Power Limit : 111.00 W
Min Power Limit : 92.50 W
Max Power Limit : 208.00 W
where you can see the power draw (actual) the power limit (your current tdp setting) the default power limit (the TDP @ 100%) the enforced power limit (where you set your TDP) , the minimal & maximal power limit (the 50% TDP and 112% TDP)
you can also format the output for easier parsing like so
nvidia-smi --query-gpu=index,power.draw.power.limit --format=csv
you can basically ask anything that nvidia smi show you using nvidia-smi --help-query-gpu to know the syntax like so.
nvidia-smi --query-gpu=index,power.draw,power.default_limit,enforced.power.limit,power.min_limit,power.max_limit --format=csv
will give you this output
index, power.draw [W], power.default_limit [W], enforced.power.limit [W], power.min_limit [W], power.max_limit [W]
0, 112.70 W, 185.00 W, 111.00 W, 92.50 W, 208.00 W
1, 112.29 W, 185.00 W, 111.00 W, 92.50 W, 208.00 W
2, 114.00 W, 185.00 W, 111.00 W, 92.50 W, 208.00 W
3, 113.86 W, 185.00 W, 111.00 W, 92.50 W, 208.00 W
4, 108.60 W, 185.00 W, 111.00 W, 92.50 W, 208.00 W
5, 113.22 W, 185.00 W, 111.00 W, 92.50 W, 208.00 W
This is what i use to calculate maximum profit/tdp, and also i use it as a power monitoring (always useful to monitor process, hashrate, power)