Sunny King (OP)
Legendary
Offline
Activity: 1205
Merit: 1010
|
 |
July 08, 2013, 03:35:37 AM |
|
Does anyone have a sense of what's involved (or could point me in the right direction) in adding an option to mine these primecoins with GPUs? I've got some experience working with nVidia's CUDA and might be able to contribute something of value here. That being said, I could very well be far out of my league...
The built in miner uses a basic sieve. The mining process involves two steps, first generating a sieve, then do power test (Fermat) to check primality. For simplicity maybe a GPU core for the sieve can be first developed, and throw an API call to the client to check primality. You can investigate prime.h and prime.cpp for the basic sieve code.
|
|
|
|
|
|
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
mercSuey
|
 |
July 08, 2013, 03:41:02 AM |
|
Does anyone have a sense of what's involved (or could point me in the right direction) in adding an option to mine these primecoins with GPUs? I've got some experience working with nVidia's CUDA and might be able to contribute something of value here. That being said, I could very well be far out of my league...
The built in miner uses a basic sieve. The mining process involves two steps, first generating a sieve, then do power test (Fermat) to check primality. For simplicity maybe a GPU core for the sieve can be first developed, and throw an API call to the client to check primality. You can investigate prime.h and prime.cpp for the basic sieve code. Sunny, theoretically, won't the primes get bigger as we find more of them, so that it's impossible to maintain a uniform time in between blocks? So that in fact, if the network hash rate remains constant over some period of time, difficulty will adjust lower?
|
|
|
|
Chemisist
Member

Offline
Activity: 99
Merit: 10
|
 |
July 08, 2013, 03:47:16 AM |
|
Does anyone have a sense of what's involved (or could point me in the right direction) in adding an option to mine these primecoins with GPUs? I've got some experience working with nVidia's CUDA and might be able to contribute something of value here. That being said, I could very well be far out of my league...
The built in miner uses a basic sieve. The mining process involves two steps, first generating a sieve, then do power test (Fermat) to check primality. For simplicity maybe a GPU core for the sieve can be first developed, and throw an API call to the client to check primality. You can investigate prime.h and prime.cpp for the basic sieve code. I'll have a look tomorrow, thanks Sunny.
|
btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
|
|
|
Sunny King (OP)
Legendary
Offline
Activity: 1205
Merit: 1010
|
 |
July 08, 2013, 03:48:32 AM |
|
Sunny, theoretically, won't the primes get bigger as we find more of them, so that it's impossible to maintain a uniform time in between blocks? So that in fact, if the network hash rate remains constant over some period of time, difficulty will adjust lower?
Difficulty is measured by chain length, not by prime sizes. Block spacing is maintained via continuous difficulty adjustment.
|
|
|
|
KrLos
|
 |
July 08, 2013, 03:49:35 AM |
|
i I would love some please... i had a sh**** pc. And been trying and nothing
Aeg98BVBRTq7jeH9u76FFRXaf769o8uxS5
|
|
|
|
hak8or
|
 |
July 08, 2013, 03:52:04 AM |
|
I have been mining away for the past hour using setgenerate true 3 on an I5-3570k (4 core stock) with this in the getmining info, { "blocks" : 709, "currentblocksize" : 1000, "currentblocktx" : 0, "errors" : "", "generate" : true, "genproclimit" : 3, "primespersec" : 89, "pooledtx" : 0, "testnet" : false } the primespersec varies from a low of 59 to an upper 115. Is this normal or what? I do not believe I have found a block yet sadly, based on transactions not showing anything nor getting any blockfound in the debug console.
|
|
|
|
TheSpiral
Full Member
 
Offline
Activity: 308
Merit: 113
Sinbad Mixer: Mix Your BTC Quickly
|
 |
July 08, 2013, 03:54:29 AM |
|
I have been mining away for the past hour using setgenerate true 3 on an I5-3570k (4 core stock) with this in the getmining info, { "blocks" : 709, "currentblocksize" : 1000, "currentblocktx" : 0, "errors" : "", "generate" : true, "genproclimit" : 3, "primespersec" : 89, "pooledtx" : 0, "testnet" : false } the primespersec varies from a low of 59 to an upper 115. Is this normal or what? I do not believe I have found a block yet sadly, based on transactions not showing anything nor getting any blockfound in the debug console. That seems about right. I get a little bit higher on the same CPU on 3 cores as well. Found 1 block, it takes a while regardless. There's only been ~750 total blocks found so far, so we're all (relatively) in the same boat.
|
|
|
|
BigJon901
|
 |
July 08, 2013, 03:54:54 AM |
|
It's more of luck. I mined for 20 minutes and got a block on a Core-i5-2500k (no overclock). Not sure if the code is AVX instruction set optimized. If so newer CPUs have an advantage over older ones.
|
Computer Engineering Technologist
|
|
|
TheMightyX
Sr. Member
  
Offline
Activity: 350
Merit: 250
Vires in Numeris
|
 |
July 08, 2013, 03:55:17 AM |
|
keep in mind theres some degree of luck when mining. Even a crap pc has a slight chance of stumbling on the correct number and completing the correct calculation. A faster pc will go through more of those calculations, thus increasing its odds of finding the correct one. my faster PC has been mining for several hours with no luck, my slower pc has already clinched two rewards. go figure.
|
|
|
|
Vorksholk
Legendary
Offline
Activity: 1713
Merit: 1027
|
 |
July 08, 2013, 03:57:11 AM |
|
keep in mind theres some degree of luck when mining. Even a crap pc has a slight chance of stumbling on the correct number and completing the correct calculation. A faster pc will go through more of those calculations, thus increasing its odds of finding the correct one. my faster PC has been mining for several hours with no luck, my slower pc has already clinched two rewards. go figure.
Same!! My crappy $300-$400 Toshiba laptop has gotten two blocks with a dual-core AMD processor, my i5-2500k has gotten one block, and my 8350 has gotten zero. 
|
|
|
|
hak8or
|
 |
July 08, 2013, 03:57:17 AM |
|
Well, thanks for the information guys! I shall happily be awaiting my first block and seeing how this crypto goes.
|
|
|
|
ReCat
|
 |
July 08, 2013, 03:59:17 AM |
|
Probability mathematics/physics is a really damn confusing thing.
|
BTC: 1recatirpHBjR9sxgabB3RDtM6TgntYUW Hold onto what you love with all your might, Because you can never know when - Oh. What you love is now gone.
|
|
|
Vorksholk
Legendary
Offline
Activity: 1713
Merit: 1027
|
 |
July 08, 2013, 04:00:02 AM |
|
keep in mind theres some degree of luck when mining. Even a crap pc has a slight chance of stumbling on the correct number and completing the correct calculation. A faster pc will go through more of those calculations, thus increasing its odds of finding the correct one. my faster PC has been mining for several hours with no luck, my slower pc has already clinched two rewards. go figure.
Same!! My crappy $300-$400 Toshiba laptop has gotten two blocks with a dual-core AMD processor, my i5-2500k has gotten one block, and my 8350 has gotten zero.  As well, I have two Large elastic instances from digitalocean. Each scores >10000 on Geekbench, yet and each one reports somewhere between 0 and 2 primes per second. :sig:
|
|
|
|
ReCat
|
 |
July 08, 2013, 04:03:16 AM |
|
I'm pretty sure that hosting instances are nerfed in the release binaries so that nobody can get an unfair advantage with it. 
|
BTC: 1recatirpHBjR9sxgabB3RDtM6TgntYUW Hold onto what you love with all your might, Because you can never know when - Oh. What you love is now gone.
|
|
|
rethaw
|
 |
July 08, 2013, 04:07:59 AM |
|
I'm pretty sure that hosting instances are nerfed in the release binaries so that nobody can get an unfair advantage with it.  Uh, how?
|
|
|
|
ReCat
|
 |
July 08, 2013, 04:08:57 AM |
|
CPUID checks. Hostname checks. Server specific information checks. It's not hard.
|
BTC: 1recatirpHBjR9sxgabB3RDtM6TgntYUW Hold onto what you love with all your might, Because you can never know when - Oh. What you love is now gone.
|
|
|
jjiimm_64
Legendary
Offline
Activity: 1876
Merit: 1000
|
 |
July 08, 2013, 04:13:39 AM |
|
CPUID checks. Hostname checks. Server specific information checks. It's not hard.
this is why i scuffed at the guy that said this is a dead coin because someone has 100 EC2's on it....
|
1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
|
|
|
drummerjdb666
|
 |
July 08, 2013, 04:15:43 AM |
|
Ok lol! Apparently this was much easier to figure out than I made it.. cause i was also ina hurry to leave for work earlier.. but yea! You don't need to create any config file for this at all.. It just works without a config.. maybe you will need to reboot after the first time you try to open it.. but.. it only worked for me after i deleted the .conf i tried to create completely.. haha! oops! Thnx a lot to the people that responded though!
|
|
|
|
hak8or
|
 |
July 08, 2013, 04:19:53 AM |
|
Well whatdayaknow, I got my first mined block just now, hah. 
|
|
|
|
rethaw
|
 |
July 08, 2013, 04:20:46 AM |
|
CPUID checks. Hostname checks. Server specific information checks. It's not hard.
With the code on github it would have to be obfuscated somehow. Care to point out what you think it is? I would be astonished if he intentionally broke virtual CPUs. That is just rewarding botnets and punishing everyone else.
|
|
|
|
|