Giter Club home page Giter Club logo

cgminertuner's Introduction

CGMinerTuner

Version 0.2

This program will basically try find the sweet spot for your GPU.
It works by recording the hash rate at all the valid clocks within ranges you specify, and displaying the top results.

Configuring CGMiner

Before you can use CGMinerTuner, you need to enable the CGMiner's API interface.
To do this, you just need to append --api-listen --api-allow W:127.0.0.1 to your CGMiner command line options. Replace 127.0.0.1 with your IP if you are connecting to CGMiner remotely.

Usage:

python CGMinerTuner.py [-h] [-i HOST] [-p PORT] [-d DEVICE] -c CORERANGE -m
                       MEMRANGE [-r RATIORANGE] [--coreinc COREINC]
                       [--meminc MEMINC] [-w WAITTIME] [-t MAXTEMP]
                       [--showtop SHOWTOP]

optional arguments:
  -h, --help            show this help message and exit
  -i HOST, --host HOST  CGMiner host address. Defaults to localhost.
  -p PORT, --port PORT  CGMiner API port. Defaults to 4028.
  -d DEVICE, --device DEVICE
                        OpenCL device number to test. Defaults to 0.
  -c CORERANGE, --corerange CORERANGE
                        Set the GPU core clock range to test. Format is range:
                        <minval>-<maxval>.
  -m MEMRANGE, --memrange MEMRANGE
                        Set the GPU memory clock range to test. Format is
                        range: <minval>-<maxval>.
  -r RATIORANGE, --ratiorange RATIORANGE
                        Set the desired GPU core clock to GPU memory clock
                        ratio range to use. This can dramatically reduce the
                        search space. Format: <minratio>-<maxratio>. Disabled
                        by default.
  --coreinc COREINC     Set the GPU core clock increment amount. Defaults to
                        10.
  --meminc MEMINC       Set the GPU memory clock increment amount. Defaults to
                        10.
  -w WAITTIME, --waittime WAITTIME
                        Time (s) to wait for new clocks to settle before
                        reading the new hashrate. Defaults to 30 seconds.
  -t MAXTEMP, --maxtemp MAXTEMP
                        Cut-off temp at which clocks will be set to minimum.
                        Defaults to 80 degrees celcius.
  --showtop SHOWTOP     Specify the number of top results to show. Defaults to
                        5.

The results are also stored in a log file within the same directory.

Example Usage

The following will search for the best core and memory clock for the second GPU in host 192.168.0.4 between core clocks of 800 to 1100 and memory clocks 1100-1500:

python CGMinerTuner.py -i 192.168.0.4 -d 1 -c 800-1100 -m 1100-1500 -r 0.5-0.7 -t 82 --showtop 10

It will also only test core and memory combinations that fall within the ratio of 0.5 to 0.7, prevent testing from letting the GPU exceed 82 degrees, and show the top 10 results. Specifiying the IP address and device number isn't compulsory, they default to localhost and device 0 respectively.

If you found the script useful, please consider making a donation :)

BTC: 1CM1zDcfUpg81fCJxacq2nNsZCE3G96FLH
LTC: Lej4FBr9k3HM49GJix922xyJCm1whqHmfU
FTC: 72KjWoZKM3C8S8xaujTNwcFjFbq48XNfpg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.