Bitcoin Forum
December 12, 2017, 03:35:26 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Poclbm Source Code HELP!!!  (Read 1696 times)
betatest512
Full Member
***
Offline Offline

Activity: 140


View Profile
September 29, 2012, 11:28:06 PM
 #1

can someone show me the line of code in the poclbm source code where the nonce is set

and the line of code where is nonce is incremented please show me the exact line and not only the function it is it and please provide as much detail as you can.

and can anyone tell me what does poclbm do after it has gone through all the nonce from 1 billion to 4 billion. what does it increment next. (and can you point out the line in code where it is incremented)
1513049726
Hero Member
*
Offline Offline

Posts: 1513049726

View Profile Personal Message (Offline)

Ignore
1513049726
Reply with quote  #2

1513049726
Report to moderator
1513049726
Hero Member
*
Offline Offline

Posts: 1513049726

View Profile Personal Message (Offline)

Ignore
1513049726
Reply with quote  #2

1513049726
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
crazyates
Legendary
*
Offline Offline

Activity: 952



View Profile
September 30, 2012, 01:38:10 AM
 #2

Of all the people on this forum, you're the last one who should be digging around the poclbm source code. Please stop, and just mine away like a good little boy (or girl, not sure).

Tips? 1crazy8pMqgwJ7tX7ZPZmyPwFbc6xZKM9
Previous Trade History - Sale Thread
kuzetsa
Sr. Member
****
Offline Offline

Activity: 367


View Profile
October 01, 2012, 08:38:43 PM
 #3

can someone show me the line of code in the poclbm source code where the nonce is set

and the line of code where is nonce is incremented please show me the exact line and not only the function it is it and please provide as much detail as you can.

and can anyone tell me what does poclbm do after it has gone through all the nonce from 1 billion to 4 billion. what does it increment next. (and can you point out the line in code where it is incremented)

**edited because I was using dismissive language / hadn't considered that you might be planning a patch of some sort

After 2^32 (4 billion) the "difficulty 1" share is submitted. This is because difficulty "1" only has that many possible nonce in addition to the base for your share (which is set by the pool or your copy of bitcoind via getwork RPC, depending on use case)

... Curious / wondering what change (if any) you plan to make here.

Sorry, I know I really didn't answer -- OpenCL breaks my head and I've not looked in the poclbm kernel yet.



Edited to add:

From looking at poclbm120823 (from cgminer) it seems that unless you're using the standalone version (or at least some version other than the one used in cgminer) the kernel itself doesn't seem to use counter checking to stop after 2^32 hashes. Really not sure what sort of control loop is used by cgminer, but the opencl kernel itself doesn't seem to handle it. Sorry. I'm more confused than I expected from looking at it.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2366


Ruu \o/


View Profile WWW
October 01, 2012, 10:34:13 PM
 #4

From looking at poclbm120823 (from cgminer) it seems that unless you're using the standalone version (or at least some version other than the one used in cgminer)
I simply kept the poclbm name in that kernel because that's where it evolved from. The poclbm kernel in cgminer is nothing like poclbm's own kernel any more.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
kuzetsa
Sr. Member
****
Offline Offline

Activity: 367


View Profile
October 02, 2012, 01:25:13 AM
 #5

((...snip...))

The poclbm kernel in cgminer is nothing like poclbm's own kernel any more.

I stand corrected.

Was I correct in my reverse engineering? The control loop for cgminer resides in the cgminer CLI program itself? (not in the open CL kernel)

Edited to clarify:

@betatest512

Still pretty sure my post isn't fulfilling the exact specifics of the request you're making... I'm still really not sure how the standalone poclbm thingy compares to cgminer's use of an opencl kernel "inspired by" poclbm...

... But this seems like the sort of code which could be roughly traced to, and found near the edges at or around the glue in NEARLY ANY bitcoin miner implementation.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!