Title: Cgminer 3.7.2 patch - Add powertune to API Post by: shazeal on January 19, 2014, 07:22:23 PM I made this small patch for CGMiner to add the "--gpu-powertune" option to the API, called via the "gpupow" command.
The "gpupow" command takes the same command format as "gpuengine", "gpumem" etc, so a string with 2 parameters "0,20" for GPU0, Powertune 20. I made this as we have Night/Day power rates so the mining cards run at full overclock over night, then in the morning they are switched via a cronjob to low clock/power usage. Previously I could down the clocks but not set the power tune. Some cards like my R9 290s do not like running at 0 Powertune so they need to be at 3 on stock clocks, where as my R9 270s run great at -10 powertune at stock. PATCH: https://mega.co.nz/#!FIY0DIaA!QO96qhkQu0VsKaqcHvmA5GXcy8Fs8kFUGy6nnD1ufBs To Apply: Code: cd cgminer-3.7.2 EXAMPLE: Using pycgminer (https://github.com/tsileo/pycgminer) Snippet from my Cron script for the R9 270... Code: #!/usr/bin/python From my crontab... Code: 0 23 * * * /home/derp/bin/cg-api.py night End result, I use about 200W less power during the day at a cost of around 200kh/s, and gain those at night where power is half the cost. Hope this helps someone :D |