Bitcoin Forum
November 06, 2024, 04:16:46 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Primecoin GPU miner implementation brainstorming thread  (Read 2263 times)
solracx (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


View Profile WWW
July 11, 2013, 03:26:28 PM
Last edit: July 11, 2013, 03:47:14 PM by solracx
 #1

Ok... this is to start a brainstorming thread on how to code up a GPU miner for Primecoin.

The code in question resides here:  https://github.com/primecoin/primecoin/blob/master/src/prime.cpp

line 341; MineProbablePrimeChain method

runs Sieve of Eratosthenes:   psieve.reset(new CSieveOfEratosthenes(nMaxSieveSize, block.nBits, block.GetHeaderHash(), bnFixedMultiplier));     

then a while loop:

while (nCurrent - nStart < 10000 && nCurrent >= nStart && pindexPrev == pindexBest)   over 10,000 primes.

looking for anything that fulfills this criteria:

if (ProbablePrimeChainTest(bnChainOrigin, block.nBits, false, nChainLengthCunningham1, nChainLengthCunningham2, nChainLengthBiTwin))       

simple enough!

someone should have a GPU implementation by the end of the day today!

ZenithCoin - Sustainable Scrypt Based Crypto Currency
fran2k
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500


View Profile WWW
July 11, 2013, 04:15:49 PM
 #2

You should also post this in the according mining board.

BazkieBumpercar
Sr. Member
****
Offline Offline

Activity: 415
Merit: 250



View Profile
July 11, 2013, 04:17:27 PM
 #3

http://www.ppcointalk.org/index.php?board=25.0
maybe post it here too Smiley

oroqen
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250



View Profile
July 15, 2013, 01:12:25 PM
 #4

Ok... this is to start a brainstorming thread on how to code up a GPU miner for Primecoin.

The code in question resides here:  https://github.com/primecoin/primecoin/blob/master/src/prime.cpp

line 341; MineProbablePrimeChain method

runs Sieve of Eratosthenes:   psieve.reset(new CSieveOfEratosthenes(nMaxSieveSize, block.nBits, block.GetHeaderHash(), bnFixedMultiplier));    

then a while loop:

while (nCurrent - nStart < 10000 && nCurrent >= nStart && pindexPrev == pindexBest)   over 10,000 primes.

looking for anything that fulfills this criteria:

if (ProbablePrimeChainTest(bnChainOrigin, block.nBits, false, nChainLengthCunningham1, nChainLengthCunningham2, nChainLengthBiTwin))        

simple enough!

someone should have a GPU implementation by the end of the day today!

There's enough people on this board smart enough too impalement it,  but not release it till they no longer have a massive advantage or a sustained nose dive in trade value. IMO
Vorksholk
Legendary
*
Offline Offline

Activity: 1713
Merit: 1029



View Profile WWW
July 15, 2013, 01:48:54 PM
 #5

I haven't really delved into the code much yet, but basically the prime chain has to have it's smallest element's average (1 less than, or one more than) a multiple of the block hash? Right?

VeriBlock: Securing The World's Blockchains Using Bitcoin
https://veriblock.org
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!