CudaMiner icon indicating copy to clipboard operation
CudaMiner copied to clipboard

[Suggestion] CUDAMiner API

Open ghost opened this issue 11 years ago • 15 comments

Similar to CGMiner API. Think this is possible?

ghost avatar Mar 01 '14 21:03 ghost

Hi,

it might not be the full API, but rather a subset. But it's not the first thing I am going to add:

https://bitcointalk.org/index.php?topic=167229.msg5436210#msg5436210

2014-03-01 22:49 GMT+01:00 Valcorb [email protected]:

Similar to CGMiner API. Think this is possible?

Reply to this email directly or view it on GitHubhttps://github.com/cbuchner1/CudaMiner/issues/105 .

cbuchner1 avatar Mar 01 '14 23:03 cbuchner1

That would be cool. I just want to be able to get my hashrate from cudaminer instead of my pool.

ghost avatar Mar 04 '14 12:03 ghost

+1 on the cudaminer API. I run a pool that uses a script to push data out of cgminer, had several people ask if we could build out support for CUDAMiner.

ericecook avatar Mar 12 '14 22:03 ericecook

+2 for a cudaminer API. CGWatcher/CGRemote is a remote-manager for mining rigs. It currently supports cgminer, sgminer, and bfgminer. If Cudaminer sent an API, it could support that as well and be included in the bunch.

The developer has expressed interest as well: http://coinmyne.proboards.com/thread/92/cudaminer-support

KiloWatts avatar Mar 19 '14 03:03 KiloWatts

Is there possibly an ETA on this? I might be able to add a basic implementation after we've rolled out more features on our pool, but I wouldn't want to duplicate work that's already being done.

icook avatar Mar 19 '14 04:03 icook

As a first quick solution to get cudaminer integrated into a BAMT spin-off, I will add some CSV file based logging. This would allow for some real time stats.

Adding a proper API will be looked into next week at the earliest.

Christian

2014-03-19 5:43 GMT+01:00 Isaac Cook [email protected]:

Is there possibly an ETA on this? I might be able to add a basic implementation after we've rolled out more features on our pool, but I wouldn't want to duplicate work that's already being done.

Reply to this email directly or view it on GitHubhttps://github.com/cbuchner1/CudaMiner/issues/105#issuecomment-38017426 .

cbuchner1 avatar Mar 19 '14 08:03 cbuchner1

@cbuchner1 Any ETA?

ghost avatar Apr 10 '14 19:04 ghost

Bump - API would be greatly appreciated. Even if just command summary to start with to monitor status of mining. Create socket. Listen on the port for the summary command then return the STATUS result with stats. Wait for next.

For summary status no real need for security beyond option to specify connecting IP's would be nice but can do in firewall if needed. I get around this limitation of cudaminer with a script at the moment but would be much cleaner & more useful if built in. :) Not sure how useful some of the values are or if all needed to start but the 2 MHS ones certainly would be needed for monitoring.

Example session: {"command":"summary"} {"STATUS":[{"STATUS":"S","When":1398192231,"Code":11,"Msg":"Summary","Descrip tion":"cgminer 3.7.2"}],"SUMMARY":[{"Elapsed":8870,"MHS av":0.25,"MHS 5s":0.24," Found Blocks":0,"Getworks":909,"Accepted":927,"Rejected":30,"Hardware Errors":0, "Utility":6.27,"Discarded":1801,"Stale":135,"Get Failures":1,"Local Work":4053," Remote Failures":0,"Network Blocks":424,"Total MH":3978.8216,"Work Utility":353. 69,"Difficulty Accepted":45584.00000000,"Difficulty Rejected":1472.00000000,"Dif ficulty Stale":5136.00000000,"Best Share":54683,"Device Hardware%":0.0000,"Devic e Rejected%":2.8153,"Pool Rejected%":2.8204,"Pool Stale%":9.8406}],"id":1}

If not likely to be added any time soon I might take a crack at it. Thx Bill

Bill48105 avatar Apr 22 '14 19:04 Bill48105

Just copy API from sgminer.

utahman avatar Apr 22 '14 19:04 utahman

This man is a genius.

KiloWatts avatar Apr 22 '14 21:04 KiloWatts

lol wow utahman why didn't I think of that. Copied it to the cudaminer folder but it didn't do anything. ;)

Thanks to KiloWatts, the link posted above lead me to darkminer (fork of sgminer) which indeed works with my 750 ti's and in fact is giving similar (although higher after autotune completes) hash rates than cudaminer but darkminer uses WAY more cpu than cudaminer and makes the computer almost unusable (similar to cudaminer without -i 1). CPU wise we're talking 1% vs 25% on quad core so no comparison.

If I wanted every bit of khash & required API & how interactive was not important, seems darkminer would be the way to go ATM. On the other hand, cudaminer is the clear winner ATM in the low cpu + interactive category. Granted I'm sure both miners could be tweaked to alter hash vs interactive-ness too. (I spent maybe 1/2 hr playing with it)

So at this point I'll stick with cudaminer & wait for API but will keep an eye on darkminer and maybe play around some more to balance hash speed, CPU & interactiveness. Or I might end up with cudaminer on my desktop & darkminer on a mining rig that doesn't get used as a computer too.

Bill48105 avatar Apr 22 '14 23:04 Bill48105

Cudaminer and sgminer have similar codebase, so copying API from one to another is the Least Significant Change. Some adaptation will be required, of course.

utahman avatar Apr 23 '14 01:04 utahman

Putting in my vote for a cudaminer api. Any updates on this?

raid5 avatar Apr 30 '14 21:04 raid5

We're hoping CudaMiner gets an API. We want to support it in https://github.com/cryptoGlance/cryptoGlance-web-app

Stoyvo avatar May 22 '14 04:05 Stoyvo

Update to my earlier post: Not to take away from CudaMiner project but if someone needs API ASAP, I spent the time to get darkminer (fork of sgminer) built on Windows and tweaked the code to get CPU usage down (near idle now) with very good hash rates. I posted up step by step build instructions (skip past the earlier comments working thru the build issues) If someone is interested: https://github.com/jrouvier/darkminer/issues/1 The API works well & I actually replaced cgminer with darkminer for my ATI rigs as well. I control/monitor the rigs with CGWatcher & the rigs are very stable with nearly idle CPU levels.

Bill48105 avatar May 22 '14 04:05 Bill48105