[Suggestion] CUDAMiner API #105

Open
Valcorb opened this Issue Mar 1, 2014 · 15 comments

Comments

Projects
None yet
9 participants
@Valcorb

Valcorb commented Mar 1, 2014

Similar to CGMiner API.
Think this is possible?

@cbuchner1

This comment has been minimized.

Show comment Hide comment
@cbuchner1

cbuchner1 Mar 1, 2014

Owner

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 notifications@github.com:

Similar to CGMiner API.
Think this is possible?

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

Owner

cbuchner1 commented Mar 1, 2014

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 notifications@github.com:

Similar to CGMiner API.
Think this is possible?

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

@Valcorb

This comment has been minimized.

Show comment Hide comment
@Valcorb

Valcorb Mar 4, 2014

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

Valcorb commented Mar 4, 2014

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

@ericecook

This comment has been minimized.

Show comment Hide comment
@ericecook

ericecook Mar 12, 2014

+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.

+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.

@KiloWatts

This comment has been minimized.

Show comment Hide comment
@KiloWatts

KiloWatts Mar 19, 2014

+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

+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

@icook

This comment has been minimized.

Show comment Hide comment
@icook

icook Mar 19, 2014

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 commented Mar 19, 2014

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.

@cbuchner1

This comment has been minimized.

Show comment Hide comment
@cbuchner1

cbuchner1 Mar 19, 2014

Owner

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 notifications@github.com:

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
.

Owner

cbuchner1 commented Mar 19, 2014

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 notifications@github.com:

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
.

@Valcorb

This comment has been minimized.

Show comment Hide comment
@Valcorb

Valcorb Apr 10, 2014

@cbuchner1 Any ETA?

Valcorb commented Apr 10, 2014

@cbuchner1 Any ETA?

@Bill48105

This comment has been minimized.

Show comment Hide comment
@Bill48105

Bill48105 Apr 22, 2014

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

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

@utahman

This comment has been minimized.

Show comment Hide comment
@utahman

utahman Apr 22, 2014

Just copy API from sgminer.

utahman commented Apr 22, 2014

Just copy API from sgminer.

@KiloWatts

This comment has been minimized.

Show comment Hide comment
@KiloWatts

KiloWatts Apr 22, 2014

This man is a genius.

This man is a genius.

@Bill48105

This comment has been minimized.

Show comment Hide comment
@Bill48105

Bill48105 Apr 22, 2014

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.

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.

@utahman

This comment has been minimized.

Show comment Hide comment
@utahman

utahman Apr 23, 2014

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 commented Apr 23, 2014

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.

@raid5

This comment has been minimized.

Show comment Hide comment
@raid5

raid5 Apr 30, 2014

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

raid5 commented Apr 30, 2014

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

@Stoyvo

This comment has been minimized.

Show comment Hide comment
@Stoyvo

Stoyvo May 22, 2014

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

Stoyvo commented May 22, 2014

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

@Bill48105

This comment has been minimized.

Show comment Hide comment
@Bill48105

Bill48105 May 22, 2014

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: jrouvier/darkminer#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.

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: jrouvier/darkminer#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.

@icook icook referenced this issue in simplecrypto/ppagent Jul 7, 2014

Open

Add cudaminer support #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment