Bitcoin Forum
April 27, 2024, 11:40:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Poclbm Source Code HELP!!!  (Read 1806 times)
betatest512 (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


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)
1714218001
Hero Member
*
Offline Offline

Posts: 1714218001

View Profile Personal Message (Offline)

Ignore
1714218001
Reply with quote  #2

1714218001
Report to moderator
1714218001
Hero Member
*
Offline Offline

Posts: 1714218001

View Profile Personal Message (Offline)

Ignore
1714218001
Reply with quote  #2

1714218001
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714218001
Hero Member
*
Offline Offline

Posts: 1714218001

View Profile Personal Message (Offline)

Ignore
1714218001
Reply with quote  #2

1714218001
Report to moderator
1714218001
Hero Member
*
Offline Offline

Posts: 1714218001

View Profile Personal Message (Offline)

Ignore
1714218001
Reply with quote  #2

1714218001
Report to moderator
crazyates
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



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: 369
Merit: 250


View Profile
October 01, 2012, 08:38:43 PM
Last edit: October 01, 2012, 08:50:13 PM by kuzetsa
 #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
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


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.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
kuzetsa
Sr. Member
****
Offline Offline

Activity: 369
Merit: 250


View Profile
October 02, 2012, 01:25:13 AM
Last edit: October 04, 2012, 10:57:57 AM by kuzetsa
 #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:  

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