Pages:
Author

Topic: Simple core/memory auto-tuner script (Read 4629 times)

hero member
Activity: 535
Merit: 502
January 13, 2014, 12:45:54 AM
#28
ive been looking for something like this, just what i need!
newbie
Activity: 36
Merit: 0
January 13, 2014, 12:39:14 AM
#27
It seems that this a script does not want to work with cgminer 3.7.2

I just noticed this after fooling with it for an hour  Cry

EDIT:

After some research and trial and error, adding these settings allowed me to use CGMinerTuner

Code:
"api-listen" : true,
"api-allow" : "W:192.168.1.100,192.168.1/24,127.0.0.1",
"api-port" : "4028",

We'll see what happens in a few hours  Grin
member
Activity: 86
Merit: 10
January 02, 2014, 02:11:47 PM
#26
It seems that this a script does not want to work with cgminer 3.7.2
FaT
member
Activity: 74
Merit: 10
May 17, 2013, 08:31:13 AM
#25
what kind syntax of command is for Win64 for example?  Undecided

Syntax is exactly the same, you just need to have python installed. You might need to give the full path to python when launching the script, for example:
>C:\python27\python.exe CGMinerTuner.py ....
FaT
member
Activity: 74
Merit: 10
May 17, 2013, 08:29:04 AM
#24

Can you change your GPU clocks using cgminer directly? If you try, ignore any "success" messages cgminer gives you after a clock change and verify that the new clocks are being used yourself (it should display them). This python just uses cgminers clock changing functionality, so if it doesn't work in cgminer, this script won't work.

Make sure you are giving the tuner sensible clock ranges for your card too.

checked with cgminer and it looks like I can't change the clocks in it either.  That sux.  Guess I'm S.O.L. on that.

Any chance you're going to expand this script to include other cgminer settings like threads, thread concurrency, worksize, etc?

Not at the moment. It seems like there are well established values to try for different cards though.
legendary
Activity: 2026
Merit: 1005
May 10, 2013, 02:11:53 PM
#23
what kind syntax of command is for Win64 for example?  Undecided
sr. member
Activity: 252
Merit: 254
May 08, 2013, 09:20:49 AM
#22

Can you change your GPU clocks using cgminer directly? If you try, ignore any "success" messages cgminer gives you after a clock change and verify that the new clocks are being used yourself (it should display them). This python just uses cgminers clock changing functionality, so if it doesn't work in cgminer, this script won't work.

Make sure you are giving the tuner sensible clock ranges for your card too.

checked with cgminer and it looks like I can't change the clocks in it either.  That sux.  Guess I'm S.O.L. on that.

Any chance you're going to expand this script to include other cgminer settings like threads, thread concurrency, worksize, etc?
full member
Activity: 210
Merit: 100
May 08, 2013, 01:01:26 AM
#21
I'm sending you a donation.  Not because This tool helped me speed up mining.  I got zero increase in mining.  I guess my cards are near optimally tuned.  But because I was able to optimize in another way.  Also,  I now have example code on how to talk to cgminer via APIs.  That could be useful to me some day.

You know that there are multiple examples of how to talk to the api in different languages in the cgminer package itself, right?
FaT
member
Activity: 74
Merit: 10
May 08, 2013, 12:57:46 AM
#20
I just tried this and keep running into "failed to set new gpu core clock".
Any ideas or is my card (4870x2) not compatible?

Win7 x64
Cgminer 3.0
Python 3 (will try 2.7 tomorrow)
amd/ati driver 13.1

thanks

Can you change your GPU clocks using cgminer directly? If you try, ignore any "success" messages cgminer gives you after a clock change and verify that the new clocks are being used yourself (it should display them). This python just uses cgminers clock changing functionality, so if it doesn't work in cgminer, this script won't work.

Make sure you are giving the tuner sensible clock ranges for your card too.
sr. member
Activity: 252
Merit: 254
May 07, 2013, 11:36:12 PM
#19
I just tried this and keep running into "failed to set new gpu core clock".
Any ideas or is my card (4870x2) not compatible?

Win7 x64
Cgminer 3.0
Python 3 (will try 2.7 tomorrow)
amd/ati driver 13.1

thanks
FaT
member
Activity: 74
Merit: 10
May 02, 2013, 05:41:21 PM
#18
The latest version should be compatible with Python 3.x now.
sr. member
Activity: 322
Merit: 250
Supersonic
May 02, 2013, 05:29:33 PM
#17
Python 3.3.1 ... The most current from Python's site over the weekend.

the script worked fine on linux with 2.7.x

You may want to try 2.7 ...
There are big incompatible changes between 2.x and 3.x , and most people still develop for 2.x unless they explicitly state that they require(or support) 3.
FaT
member
Activity: 74
Merit: 10
May 02, 2013, 05:29:10 PM
#16
Found the problem, its simple to fix. Will push the changes soon.
hero member
Activity: 518
Merit: 500
May 02, 2013, 05:26:14 PM
#15
Same error here.. gonna install 2.7 now

Also i'm using 64 bit -- should i take 32bit?
legendary
Activity: 954
Merit: 1000
May 02, 2013, 05:18:34 PM
#14
Python 3.3.1 ... The most current from Python's site over the weekend.
FaT
member
Activity: 74
Merit: 10
May 02, 2013, 04:40:40 PM
#13
I'm blind. Didn't see your obviously Windows command prompt.
What is the output of 'python --version'?
FaT
member
Activity: 74
Merit: 10
May 02, 2013, 04:37:51 PM
#12
Its throwing an error when I try to run against my miner machine remotely... same when I try to run against it locally.

C:\temp\virtual currencies\CGMinerTuner-master>python CGMinerTuner.py -i 192.168.1.111 -d 0 -c 800-1100 -m 1100-1500 -r 0.5-0.7 -t 82 --showtop 10
  File "CGMinerTuner.py", line 154
    except Exception, e:
                    ^
SyntaxError: invalid syntax


Are you using a Mac? You probably need to update your python installation (I used 2.7, but 3 should work too).
Download link: http://www.python.org/download/releases/2.7.4/
legendary
Activity: 954
Merit: 1000
May 02, 2013, 04:35:04 PM
#11
Its throwing an error when I try to run against my miner machine remotely... same when I try to run against it locally.

C:\temp\virtual currencies\CGMinerTuner-master>python CGMinerTuner.py -i 192.168.1.111 -d 0 -c 800-1100 -m 1100-1500 -r 0.5-0.7 -t 82 --showtop 10
  File "CGMinerTuner.py", line 154
    except Exception, e:
                    ^
SyntaxError: invalid syntax
FaT
member
Activity: 74
Merit: 10
May 02, 2013, 04:08:18 PM
#10
I'm sending you a donation.  Not because This tool helped me speed up mining.  I got zero increase in mining.  I guess my cards are near optimally tuned.  But because I was able to optimize in another way.  Also,  I now have example code on how to talk to cgminer via APIs.  That could be useful to me some day.

Thanks!
legendary
Activity: 2156
Merit: 1018
Buzz App - Spin wheel, farm rewards
May 01, 2013, 05:02:30 PM
#9
Going to give this a go tonight, looks great, thanks...
Pages:
Jump to: