Pages:
Author

Topic: [XPM] BFGMiner Branch.. on github (Read 9028 times)

hero member
Activity: 874
Merit: 1000
July 12, 2013, 10:50:29 PM
very awesome - I have this running on my systems now - will let folks know asap if this works Wink
legendary
Activity: 1792
Merit: 1008
/dev/null
July 12, 2013, 10:07:22 PM
#99
any news on the bfgminer?
I ported Chemisist's optimizations, and fixed a nasty bug making it do the same work over and over.
Working very well on unmodified primecoind testnet-in-a-box now.
check here: https://bitcointalksearch.org/topic/xpm-bfgminer-prime-branch-255358
also i found several blocks on testnet so it works Wink
legendary
Activity: 2576
Merit: 1186
July 12, 2013, 09:56:50 PM
#98
any news on the bfgminer?
I ported Chemisist's optimizations, and fixed a nasty bug making it do the same work over and over.
Working very well on unmodified primecoind testnet-in-a-box now.
hero member
Activity: 874
Merit: 1000
July 12, 2013, 09:53:12 PM
#97
any news on the bfgminer?
sr. member
Activity: 280
Merit: 250
July 12, 2013, 01:17:01 PM
#96
We maybe going at this from the wrong angle.

Luke Jr claims that BfgMiner has a 10-20x mining performance improvement over primecoind. If that is really true, it seems like most of the performance improvement should be in the prime implementation since both programs use CPU mining.

It should be feasible to take the prime implementation from BfgMiner and incorporate that into primecoind to get a similar performance improvement out of primecoind and avoid the getwork/gbt issue altogether...
Trouble with that is pools are going tobe needed sooner or later
hero member
Activity: 742
Merit: 500
July 12, 2013, 11:43:19 AM
#95
We maybe going at this from the wrong angle.

Luke Jr claims that BfgMiner has a 10-20x mining performance improvement over primecoind. If that is really true, it seems like most of the performance improvement should be in the prime implementation since both programs use CPU mining.

It should be feasible to take the prime implementation from BfgMiner and incorporate that into primecoind to get a similar performance improvement out of primecoind and avoid the getwork/gbt issue altogether...
hero member
Activity: 874
Merit: 1000
July 12, 2013, 11:24:50 AM
#94
well whoever figures this out gets a 2.5BTC bounty + I'm going to throw in some BTC as well if the improvement is indeed 10x
legendary
Activity: 1064
Merit: 1000
July 12, 2013, 10:59:26 AM
#93
Client node has no API support yet. Feel free to propose an API format for e.g. getwork.

Based on the above quote from Sunny King, it seems that the client simply has no API support for miners at all at the moment.

I think that needs to be done first before any miner program, BFGMiner or otherwise, can mine Primecoins...  Or am I missing something here?



Not quite sure.

I know getwork gives no valuable information:


Code:
{
"midstate" : "7601d3f08f8dd8ac7a67141fa7f24493c6839606ecaf82c6a62a00ad3636923a",
"data" : "000000029ff9bbfa7b85551842ecb1e786bea0b096f92916652235784277e741ee56291e05e3040e4aa68f7c4a2d3f2a91252ad22b25c4799dc88e67f29884a3aee5927751e026a307e7ea1e00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000",
"hash1" : "00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000",
"target" : "000000001eea6700000000000000000000000000000000000000000000000000"
}

Blocktemplate also appears to be missing some key information:


Code:
{
"version" : 2,
"previousblockhash" : "f104ee5b36efa6e6d1127306a14c7fe76253a3baaacba3504100533ae016d237",
"transactions" : [
],
"coinbaseaux" : {
"flags" : "062f503253482f"
},
"coinbasevalue" : 1588000000,
"target" : "000000000000000000000000000000000000000000000000006e439100000000",
"mintime" : 1373627219,
"mutable" : [
"time",
"transactions",
"prevblock"
],
"noncerange" : "00000000ffffffff",
"sigoplimit" : 20000,
"sizelimit" : 1000000,
"curtime" : 1373644465,
"bits" : "07ee4391",
"height" : 20203
}


So it appears that either of the interfaces is missing the prime information.
legendary
Activity: 1066
Merit: 1098
July 12, 2013, 10:42:07 AM
#92
Client node has no API support yet. Feel free to propose an API format for e.g. getwork.

Based on the above quote from Sunny King, it seems that the client simply has no API support for miners at all at the moment.

I think that needs to be done first before any miner program, BFGMiner or otherwise, can mine Primecoins...  Or am I missing something here?

member
Activity: 84
Merit: 10
July 12, 2013, 10:34:41 AM
#91
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.

--no-getwork      or is that to obvious?

I tried that as well, and while bfgminer does not fail for me, it will not connect to primecoind with the --no-getwork option.

I think there is a problem with blkmk_address_to_script function in libblkmaker/base58.c
I added case 23 and 83 (primecoin PUBKEY_ADDRESS and SCRIPT_ADDRESS), but after 4 hours I have got no blocks ...

I guess one of the issues we have is that it takes so damn long to find a block that testing changes is painfully slow.  I have a 32-core ec2 instance running but even that is taking several hours to find a block
I tried testing code on primecoin testnet, but I couldn't connect to any testnet nodes.
hero member
Activity: 820
Merit: 1000
July 12, 2013, 10:30:37 AM
#90
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.

--no-getwork      or is that to obvious?

I tried that as well, and while bfgminer does not fail for me, it will not connect to primecoind with the --no-getwork option.

I think there is a problem with blkmk_address_to_script function in libblkmaker/base58.c
I added case 23 and 83 (primecoin PUBKEY_ADDRESS and SCRIPT_ADDRESS), but after 4 hours I have got no blocks ...

I guess one of the issues we have is that it takes so damn long to find a block that testing changes is painfully slow.  I have a 32-core ec2 instance running but even that is taking several hours to find a block
full member
Activity: 145
Merit: 100
July 12, 2013, 10:27:01 AM
#89
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.

--no-getwork      or is that to obvious?

I tried that as well, and while bfgminer does not fail for me, it will not connect to primecoind with the --no-getwork option.

I think there is a problem with blkmk_address_to_script function in libblkmaker/base58.c
I added case 23 and 83 (primecoin PUBKEY_ADDRESS and SCRIPT_ADDRESS), but after 4 hours I have got no blocks ...
hero member
Activity: 820
Merit: 1000
July 12, 2013, 10:24:56 AM
#88
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.
Is it using getwork successfully to talk to primecoind?
well it appears to getwork but fails submissions, so no.  I also think Luke-jr confirmed that getwork wasn't working
member
Activity: 84
Merit: 10
July 12, 2013, 10:16:12 AM
#87
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.
Is it using getwork successfully to talk to primecoind?
hero member
Activity: 742
Merit: 500
July 12, 2013, 09:34:33 AM
#86
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.

--no-getwork      or is that to obvious?

I tried that as well, and while bfgminer does not fail for me, it will not connect to primecoind with the --no-getwork option.
hero member
Activity: 721
Merit: 523
July 12, 2013, 09:29:27 AM
#85
ah true
hero member
Activity: 820
Merit: 1000
July 12, 2013, 09:28:19 AM
#84
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.

--no-getwork      or is that to obvious?
Tried that early on - causes a segmentation fault for me on startup
hero member
Activity: 721
Merit: 523
July 12, 2013, 09:27:22 AM
#83
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.

--no-getwork      or is that to obvious?
hero member
Activity: 742
Merit: 500
July 12, 2013, 09:05:14 AM
#82
BFGMiner prime is definitely using getwork when talking to primecoind.

I'm still poking around the source code to see if there is anyway to force it to use GBT.
hero member
Activity: 820
Merit: 1000
July 12, 2013, 08:20:03 AM
#81
This code isn't working "as-is". We are still trying to figure out how to get it working.

GBT, on the other hand, works fine without primecoind modification.



If you're implying that you have it working, please can you confirm this and share how you have managed it?
Pages:
Jump to: