Bitcoin Forum
April 26, 2024, 10:17:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 [379] 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 ... 843 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5805212 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 16, 2012, 12:48:41 AM
 #7561

That's still only accounting for the simultaneous nonce problem, not the similar bitmask or zero bitmask cases. You certainly make a good argument for not using atomic ops.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714126651
Hero Member
*
Offline Offline

Posts: 1714126651

View Profile Personal Message (Offline)

Ignore
1714126651
Reply with quote  #2

1714126651
Report to moderator
Vbs
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


View Profile
October 16, 2012, 01:22:31 AM
Last edit: October 16, 2012, 01:37:45 AM by Vbs
 #7562

That's still only accounting for the simultaneous nonce problem, not the similar bitmask or zero bitmask cases. You certainly make a good argument for not using atomic ops.

No bitmasking needed, the C "?" operator has a specific GPU ISA op code. Smiley

Quote
OCL: (phatk vectors 2 example)
(...)
#elif defined VECTORS2
    uint result = W[117].x ? 0u:W[3].x;       //if(!W[117].x) result=W[3].x; else result=0;
           result = W[117].y ? result:W[3].y;  //if(!W[117].y) result=W[3].y; /*else result=result;*/
        if (result)                                               //result can only be 0 or a nonce: W[3].x or W[3].y
            SETFOUND(result);
(...)

GPU ISA:
(...)
1349    z: ADD_INT     T3.z,  PV1348.x,  T0.x      
          w: ADD_INT     ____,  PV1348.y,  T0.w      
1350  y: CNDE_INT    ____,  PV1349.w,  R18.w,  0.0f      
1351  x: CNDE_INT    R2.x,  T3.z,  R17.z,  PV1350.y
   
1352   x: PREDNE_INT  ____,  R2.x,  0.0f      UPDATE_EXEC_MASK UPDATE_PRED
66 JUMP  POP_CNT(1) ADDR(76)
(...)
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 16, 2012, 01:38:18 AM
 #7563

Nice, but it doesn't actually achieve any demonstrable performance advantage.

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

Activity: 75
Merit: 10


View Profile
October 16, 2012, 02:12:39 AM
 #7564

i want to mine on litecoin which version i donwload and how to use it


thanks
🏰 TradeFortress 🏰
Bitcoin Veteran
VIP
Legendary
*
Offline Offline

Activity: 1316
Merit: 1043

👻


View Profile
October 16, 2012, 03:11:39 AM
 #7565

i want to mine on litecoin which version i donwload and how to use it


thanks
What are you mining on?
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 16, 2012, 03:54:25 AM
 #7566

Code:
[2012-10-15 01:31:50] Pool 7 http://api.bitcoin.cz:8332 not responding!
[2012-10-15 01:31:51] Pool 7 http://api.bitcoin.cz:8332 alive
but, checking immediately after that, in the Pools section the pool is showed as "Enabled Dead", and it will remain dead forever. As soon as I restart cgminer, the pool is alive again (so it's not a pool problem).

I don't know if it happens every time the pool doesn't respond for a while, or whenever my box changes its IP address. I'm just sure it happens at least every few hours.

HTH.
I noticed this also when I used BTC Guild as a backup for a while. I just assumed they were sick of me using them for detecting new blocks sooner without actually giving much work back; I had just as many getworks with them as I did with my primary pool. Tongue

 I haven't seen this myself but there could well still be a bug in there. I'll keep auditing code.
Found it, thanks. Will be fixed next version.

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

Activity: 75
Merit: 10


View Profile
October 16, 2012, 04:09:35 AM
 #7567

i want to mine on litecoin which version i donwload and how to use it


thanks
What are you mining on?

on pool-x using cpuminer
420
Hero Member
*****
Offline Offline

Activity: 756
Merit: 500



View Profile
October 16, 2012, 05:16:07 AM
 #7568

I need scrypt parameters for mining with gtx 680

Donations: 1JVhKjUKSjBd7fPXQJsBs5P3Yphk38AqPr - TIPS
the hacks, the hacks, secure your bits!
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 16, 2012, 06:16:02 AM
 #7569

I need a holiday villa in the south pacific.

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

Activity: 756
Merit: 500



View Profile
October 16, 2012, 06:18:10 AM
 #7570

I need a holiday villa in the south pacific.

you need more donations. more help = more donations = more money for the holiday villa in the south pacific fund

Donations: 1JVhKjUKSjBd7fPXQJsBs5P3Yphk38AqPr - TIPS
the hacks, the hacks, secure your bits!
AxelMi
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
October 16, 2012, 07:28:56 AM
 #7571

Code:

 [2012-10-16 00:25:41] Work job_id 5357 nonce2 3a000000 ntime 507c8d4a

 [2012-10-16 00:25:41] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:25:42] 91.5 C  F: 85%(4570RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 97%  P: 0%
 [2012-10-16 00:25:42] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:25:42] 86.0 C  F: 85%(1793RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:25:43] [thread 3: 813694976 hashes, 161118.3 khash/sec]

 [2012-10-16 00:25:43] Reusing stratum work
 [2012-10-16 00:25:43] Generated stratum merkle 5c50e633d5d4d7f31ad96da1acca0ddc
32b60641aa61c63f2ed23d0d32b44eee
 [2012-10-16 00:25:43] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a2000000005c50e633d5d4d7f31ad96da1acca0ddc32b60641
aa61c63f2ed23d0d32b44eee507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:25:43] Work job_id 5357 nonce2 3b000000 ntime 507c8d4a

 [2012-10-16 00:25:43] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:25:43] [thread 4: 776994816 hashes, 153577.7 khash/sec]

 [2012-10-16 00:25:44] Reusing stratum work
 [2012-10-16 00:25:44] Generated stratum merkle 8833e39d5579b0110ac37701abae2317
673df355e03e848fa5713329f35c4122
 [2012-10-16 00:25:44] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a2000000008833e39d5579b0110ac37701abae2317673df355
e03e848fa5713329f35c4122507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:25:44] Work job_id 5357 nonce2 3c000000 ntime 507c8d4a

 [2012-10-16 00:25:44] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:25:44] [thread 5: 787480576 hashes, 155129.0 khash/sec]

 [2012-10-16 00:25:45] 91.5 C  F: 85%(4548RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 97%  P: 0%
 [2012-10-16 00:25:45] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:25:45] 86.0 C  F: 85%(1798RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:25:45] [thread 0: 1544552448 hashes, 305049.1 khash/sec]

(5s):936.7M (avg):936.7Mh/s | Q:8641  A:27338  R:47  HW:11  E:316%  U:13.0/m
 [2012-10-16 00:25:45] [thread 2: 807403520 hashes, 160508.3 khash/sec]

 [2012-10-16 00:25:47] Reusing stratum work
 [2012-10-16 00:25:47] Generated stratum merkle 364b46669f965971f49a4b4ba86446df
5cbad72f5005e50e00400817dc8254b1
 [2012-10-16 00:25:47] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a200000000364b46669f965971f49a4b4ba86446df5cbad72f
5005e50e00400817dc8254b1507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:25:47] Work job_id 5357 nonce2 3d000000 ntime 507c8d4a

 [2012-10-16 00:25:47] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:25:48] Reusing stratum work
 [2012-10-16 00:25:48] Generated stratum merkle 643052cd0d2894bbbacacfc7da8fc03c
cf444204fd0e6f1fd557e323ca441c81
 [2012-10-16 00:25:48] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a200000000643052cd0d2894bbbacacfc7da8fc03ccf444204
fd0e6f1fd557e323ca441c81507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:25:48] Work job_id 5357 nonce2 3e000000 ntime 507c8d4a

 [2012-10-16 00:25:48] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:25:48] 91.0 C  F: 85%(4548RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 97%  P: 0%
 [2012-10-16 00:25:48] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:25:48] 86.0 C  F: 85%(1795RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:25:48] [thread 3: 817364992 hashes, 161047.7 khash/sec]

 [2012-10-16 00:25:48] [thread 4: 786432000 hashes, 156339.4 khash/sec]

 [2012-10-16 00:25:49] [thread 5: 780140544 hashes, 154688.7 khash/sec]

 [2012-10-16 00:25:50] [thread 0: 1547173888 hashes, 307693.9 khash/sec]

(5s):938.8M (avg):936.7Mh/s | Q:8641  A:27338  R:47  HW:11  E:316%  U:13.0/m
 [2012-10-16 00:25:50] [thread 2: 811073536 hashes, 160060.5 khash/sec]

 [2012-10-16 00:25:51] 90.5 C  F: 85%(4570RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 97%  P: 0%
 [2012-10-16 00:25:51] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:25:51] 85.5 C  F: 85%(1793RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:25:53] [thread 3: 811597824 hashes, 161470.5 khash/sec]

 [2012-10-16 00:25:53] [thread 4: 779616256 hashes, 154769.0 khash/sec]

 [2012-10-16 00:25:54] 91.5 C  F: 85%(4570RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 98%  P: 0%
 [2012-10-16 00:25:54] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:25:54] 85.5 C  F: 85%(1796RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:25:54] Reusing stratum work
 [2012-10-16 00:25:54] Generated stratum merkle 56e4705b9c771181f57a40829b8485a0
52aec401c7de4d4982186ff9d295612c
 [2012-10-16 00:25:54] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a20000000056e4705b9c771181f57a40829b8485a052aec401
c7de4d4982186ff9d295612c507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:25:54] Work job_id 5357 nonce2 3f000000 ntime 507c8d4a

 [2012-10-16 00:25:54] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:25:55] [thread 5: 783810560 hashes, 155539.8 khash/sec]

 [2012-10-16 00:25:55] GPU 0 found something?
 [2012-10-16 00:25:55] OCL NONCE 292974444 found in slot 0
 [2012-10-16 00:25:55]  Proof: 00000000317122e466f714d85616124b0a89cf46d91af7754
9e1fd2fc4fbac66
Target: 00000000ffff0000000000000000000000000000000000000000000000000000
TrgVal? YES (hash < target)
 [2012-10-16 00:25:55] Pushing submit work to work thread
 [2012-10-16 00:25:55] Popping work to work thread
 [2012-10-16 00:25:55] Creating extra submit work thread
 [2012-10-16 00:25:55] Submitting share 317122e4 to pool 0
 [2012-10-16 00:25:55] [thread 0: 1547698176 hashes, 306093.6 khash/sec]

(5s):937.9M (avg):936.7Mh/s | Q:8641  A:27338  R:47  HW:11  E:316%  U:13.0/m
 [2012-10-16 00:25:55] [thread 2: 803209216 hashes, 159674.6 khash/sec]

 [2012-10-16 00:25:57] 91.5 C  F: 85%(4570RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 97%  P: 0%
 [2012-10-16 00:25:57] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:25:57] 85.5 C  F: 85%(1799RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:25:58] GPU 2 found something?
 [2012-10-16 00:25:58] OCL NONCE 2372215066 found in slot 0
 [2012-10-16 00:25:58]  Proof: 0000000043beb870a9eeec81d068e17bf0c6cdec62a831d79
085d82a99e9ffaf
Target: 00000000ffff0000000000000000000000000000000000000000000000000000
TrgVal? YES (hash < target)
 [2012-10-16 00:25:58] Pushing submit work to work thread
 [2012-10-16 00:25:58] Popping work to work thread
 [2012-10-16 00:25:58] Creating extra submit work thread
 [2012-10-16 00:25:58] Submitting share 43beb870 to pool 0
 [2012-10-16 00:25:58] [thread 3: 809500672 hashes, 161053.2 khash/sec]

 [2012-10-16 00:25:58] [thread 4: 773849088 hashes, 154113.6 khash/sec]

 [2012-10-16 00:25:59] GPU 0 found something?
 [2012-10-16 00:25:59] OCL NONCE 1594606699 found in slot 0
 [2012-10-16 00:25:59]  Proof: 00000000541c7a183c3175f3a9a6a16b1197ce8be3bef6d00
a2c8d6461b48442
Target: 00000000ffff0000000000000000000000000000000000000000000000000000
TrgVal? YES (hash < target)
 [2012-10-16 00:25:59] Pushing submit work to work thread
 [2012-10-16 00:25:59] Popping work to work thread
 [2012-10-16 00:25:59] Creating extra submit work thread
 [2012-10-16 00:25:59] Submitting share 541c7a18 to pool 0
 [2012-10-16 00:26:00] [thread 5: 780140544 hashes, 155212.0 khash/sec]

 [2012-10-16 00:26:00] 91.0 C  F: 85%(4570RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 97%  P: 0%
 [2012-10-16 00:26:00] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:26:00] 86.0 C  F: 85%(1790RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:26:00] [thread 0: 1542455296 hashes, 307244.4 khash/sec]

(5s):938  M (avg):936.7Mh/s | Q:8641  A:27338  R:47  HW:11  E:316%  U:13.0/m
 [2012-10-16 00:26:00] [thread 2: 815792128 hashes, 161629.7 khash/sec]

 [2012-10-16 00:26:03] 91.5 C  F: 85%(4570RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 98%  P: 0%
 [2012-10-16 00:26:03] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:26:03] 86.0 C  F: 85%(1795RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:26:03] [thread 3: 805306368 hashes, 159837.2 khash/sec]

 [2012-10-16 00:26:04] [thread 4: 782237696 hashes, 154920.3 khash/sec]

 [2012-10-16 00:26:05] [thread 5: 784334848 hashes, 155643.8 khash/sec]

 [2012-10-16 00:26:05] [thread 0: 1556086784 hashes, 309281.9 khash/sec]

(5s):939.7M (avg):936.7Mh/s | Q:8641  A:27338  R:47  HW:11  E:316%  U:13.0/m
 [2012-10-16 00:26:05] [thread 2: 813694976 hashes, 161598.3 khash/sec]

 [2012-10-16 00:26:06] 91.5 C  F: 85%(4548RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 98%  P: 0%
 [2012-10-16 00:26:06] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:26:06] 86.0 C  F: 85%(1786RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:26:07] Reusing stratum work
 [2012-10-16 00:26:07] Generated stratum merkle ebe6db761762b956ac2fc27dbfa6812a
5565ebda4f64c1c5bcae0b1f6db0e01d
 [2012-10-16 00:26:07] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a200000000ebe6db761762b956ac2fc27dbfa6812a5565ebda
4f64c1c5bcae0b1f6db0e01d507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:26:07] Work job_id 5357 nonce2 40000000 ntime 507c8d4a

 [2012-10-16 00:26:07] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:26:08] GPU 2 found something?
 [2012-10-16 00:26:08] OCL NONCE 3819531120 found in slot 0
 [2012-10-16 00:26:08]  Proof: 0000000025a36e11bc511d0bb17e10e801cbb331910372dd4
b49e50b99c50dd4
Target: 00000000ffff0000000000000000000000000000000000000000000000000000
TrgVal? YES (hash < target)
 [2012-10-16 00:26:08] Pushing submit work to work thread
 [2012-10-16 00:26:08] [thread 3: 807403520 hashes, 159999.4 khash/sec]

 [2012-10-16 00:26:08] Popping work to work thread
 [2012-10-16 00:26:08] Creating extra submit work thread
 [2012-10-16 00:26:08] Submitting share 25a36e11 to pool 0
 [2012-10-16 00:26:09] [thread 4: 784334848 hashes, 155089.8 khash/sec]

 [2012-10-16 00:26:09] 91.0 C  F: 85%(4570RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 97%  P: 0%
 [2012-10-16 00:26:09] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:26:09] 86.0 C  F: 85%(1789RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:26:10] [thread 5: 779091968 hashes, 154572.7 khash/sec]

 [2012-10-16 00:26:10] Reusing stratum work
 [2012-10-16 00:26:10] Generated stratum merkle fc71d2870ccdcde7f4f0bcdb0d6594de
8e1cab017d2d911deffdf46ecaccf370
 [2012-10-16 00:26:10] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a200000000fc71d2870ccdcde7f4f0bcdb0d6594de8e1cab01
7d2d911deffdf46ecaccf370507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:26:10] Work job_id 5357 nonce2 41000000 ntime 507c8d4a

 [2012-10-16 00:26:10] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:26:10] [thread 0: 1543503872 hashes, 304962.4 khash/sec]

(5s):937.7M (avg):936.7Mh/s | Q:8641  A:27338  R:47  HW:11  E:316%  U:13.0/m
 [2012-10-16 00:26:11] [thread 2: 809500672 hashes, 160765.4 khash/sec]

 [2012-10-16 00:26:11] Reusing stratum work
 [2012-10-16 00:26:11] Generated stratum merkle 62885714771c35e743df6b51e3313aba
02071a720e9e8275bdbb3d526b7178b3
 [2012-10-16 00:26:11] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a20000000062885714771c35e743df6b51e3313aba02071a72
0e9e8275bdbb3d526b7178b3507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:26:11] Work job_id 5357 nonce2 42000000 ntime 507c8d4a

 [2012-10-16 00:26:11] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:26:12] 91.5 C  F: 85%(4570RPM)  E: 850MHz  M: 1200Mhz  V: 1.175V
  A: 97%  P: 0%
 [2012-10-16 00:26:12] 75.5 C  F: 85%(-1RPM)  E: 875MHz  M: 1225Mhz  V: 1.163V
A: 99%  P: 0%
 [2012-10-16 00:26:12] 85.5 C  F: 85%(1784RPM)  E: 850MHz  M: 1200Mhz  V: 1.200V
  A: 99%  P: 0%
 [2012-10-16 00:26:13] [thread 3: 811597824 hashes, 161278.0 khash/sec]

 [2012-10-16 00:26:13] Reusing stratum work
 [2012-10-16 00:26:13] Generated stratum merkle f0516baecbad2694f5414fa2d0ec6eb2
8be53b5206d1fa3e430f5fbc93d1705f
 [2012-10-16 00:26:13] Generated stratum header 000000023abf97081b55c5236db67b02
cebe9af34e1b36665a50b495000003a200000000f0516baecbad2694f5414fa2d0ec6eb28be53b52
06d1fa3e430f5fbc93d1705f507c8d4a1a057e080000000000000080000000000000000000000000
0000000000000000000000000000000000000000000000000000000080020000

 [2012-10-16 00:26:13] Work job_id 5357 nonce2 43000000 ntime 507c8d4a

 [2012-10-16 00:26:13] Generated target 0000000000000000000000000000000000000000
000000000000ffff00000000
 [2012-10-16 00:26:14] [thread 4: 786432000 hashes, 154922.6 khash/sec]

 [2012-10-16 00:26:14] GPU 0 found something?
 [2012-10-16 00:26:14] OCL NONCE 2450255323 found in slot 0
 [2012-10-16 00:26:14]  Proof: 00000000fdb15728d8f4bbaf977c785ff3d9cba608c0905cf
fcbd4283997dcf8
Target: 00000000ffff0000000000000000000000000000000000000000000000000000
TrgVal? YES (hash < target)
 [2012-10-16 00:26:14] Pushing submit work to work thread
 [2012-10-16 00:26:14] Popping work to work thread
 [2012-10-16 00:26:14] Creating extra submit work thread
 [2012-10-16 00:26:14] Submitting share fdb15728 to pool 0

that is the last output from debugging after the miners dieded last night.
The machines with miner 2.8.3 - win32 and started with --fix-protocol didn't die.
so it seems it has todo with stratum and win32.
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 16, 2012, 07:53:20 AM
 #7572

Code:
 [2012-10-16 00:26:14] Creating extra submit work thread
 [2012-10-16 00:26:14] Submitting share fdb15728 to pool 0

that is the last output from debugging after the miners dieded last night.
The machines with miner 2.8.3 - win32 and started with --fix-protocol didn't die.
so it seems it has todo with stratum and win32.

Thanks! That at least helps me as to where I can look for potential bugs. I'm quite sure it's stratum related.

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

Activity: 78
Merit: 0


View Profile
October 16, 2012, 09:00:20 AM
 #7573

This is what I don't understand too well (sorry to bother you).

Let's assume, as you wrote, that your device has 1GH/s of computing power.

So what T do you like to choose?

If you choose T=1 sec, then the probabilty to find one nonce in T is the mean, so is lambda. Lambda is 1/4.3=0.23. 23%.
The probability to find two nonces in T, according to Poisson distribution, is ((0.2325^2)*e^-0.2325)/2!=0.021. 2,1%.
Depends on what question you are trying to solve. The question you answered above is "What is the probability of finding k nonces in a period of 1s? And in a period of 2s?"

That was not the question I was answering. My question was "What is the probability of finding k nonces at the same time?"

I think that, thanks to your patience, now I see how you approached the problem. Smiley

I wouldn't say "at the same time": Poisson distribution tells you the probability that an event happens N times in a fixed time interval (or in a fixed space interval) when you know that the mean in that period is lambda. So with Poisson you have first to choose an interval, and then go on. It can be as short as a... wavefront, or the clock of your hardware, I don't know how to say it well. You chose a hash computation time as the interval, of course.

Quote
The problem is independent of thread execution time, because that is relatively constant. They all end at mostly the same time in a wavefront. The problem is: when they all end, how many have nonces?

Oh, ok! I'm sorry to say that I don't know how hardware and software work, so please forgive me for my past assumptions. :-p

The problem is: "every n clocks, we don't care about n, we have our bunch of exactly X simultaneous hashes, all toghether in a wavefront, given by our X concurrent threads (I hope that "threads" is the right word here). Each thread gives us one and only one hash. Since we know that the probability for a hash to be a nonce is 1/2^32, how many Y nonces (with 0<=Y<=X) are we likely to find in a bunch?"

Well, then Poisson is not the most proper distribution for us: it isn't meant to describe this situation.
AFAIK Poisson is thought to calculate the probability of a number of sequential events in a fixed interval. You are using it to calculate the probability of simultaneous events in... no interval. Smiley
Using Poisson completely confused me, and led me to guess a different situation and a different problem. I'm sorry for that.

Of course Binomial is the proper distribution, but you're completely right writing that Poisson gives a very good approximation, as you showed, setting lambda = X/(2^32). So Poisson is numerically right, too, for our case.

I think I got your point, now. Thanks again. Smiley
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 16, 2012, 10:22:32 AM
 #7574

Yes but that would make my 2.722 Gh only appear as 2.7GH which is not accurate enough. Significant digits is the key.
I've created a (unnecessarily complex) workaround and committed it to git so it's always padded on the right by zeroes. I agree it looks better.

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

Activity: 700
Merit: 507



View Profile
October 16, 2012, 10:36:26 AM
 #7575

There seems to be a severe bug with 2.8.3 and ztex FPGAs.

I was running my ztex on 2.8.3 a few times always with the same result. After a random amount of time (ranging from 10min to 10hrs for me) the ztex only produces "hardware errors" and my gpu is only running at 100% with no shares produced (or send to the pool?). Also CPU goes up to 100% basically leaving my system unresponsive until cgminer is stopped hard.

Using
2.8.3 on Windows7 x64
GPU: ATI6850
ztex 1.15x
rav3n_pl
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
October 16, 2012, 10:52:00 AM
Last edit: October 16, 2012, 12:32:26 PM by rav3n_pl
 #7576

There seems to be a severe bug with 2.8.3 and ztex FPGAs.

I was running my ztex on 2.8.3 a few times always with the same result. After a random amount of time (ranging from 10min to 10hrs for me) the ztex only produces "hardware errors" and my gpu is only running at 100% with no shares produced (or send to the pool?). Also CPU goes up to 100% basically leaving my system unresponsive until cgminer is stopped hard.

Using
2.8.3 on Windows7 x64
GPU: ATI6850
ztex 1.15x

Maybe "cure" will be compile "GPU-only" and "FPGA-only" versions? And run 2 programs?

Edit: compiled GPU-only+scrypt 2.8.3-15
http://sdrv.ms/NtmDt5
if someone want to try it Smiley

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Vbs
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


View Profile
October 16, 2012, 10:57:01 AM
 #7577

I think I got your point, now. Thanks again. Smiley

You're welcome, it's always nice to have someone for debate! Grin
Vbs
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


View Profile
October 16, 2012, 11:56:51 AM
 #7578

Nice, but it doesn't actually achieve any demonstrable performance advantage.
You know something? You are quite right! We can write off all of this saga with a "human tries to beat compiler again"! Grin

Out of curiosity, I went to dig deeper on how AMD would do branch prediction (it doesn't), but it does branch predication for branches with few ops!
Basically, the instructions inside the if branches are only executed based on a comparison result (they are not done in paralell), each op inside gets a true/false predicate flag for execution. So the most efficient code for this part is simply removing the main "if" (using the phatk v2 example):
Code:
#elif defined VECTORS2
    if (!W[117].x)
        SETFOUND(W[3].x);
    if (!W[117].y)
        SETFOUND(W[3].y);

Each of the if(!...) starts with something as:
1351  x: PREDE_INT   ____,  R0.x,  0.0f      UPDATE_EXEC_MASK UPDATE_PRED
for updating the predicate flag

This means that if no nonce is found, the most common path, the penalty is only the execution of two PREDE_INT ops, with zero misfires for false positives (min path has the same exec time as with bitmasking). This also allows for simultaneous nonces in both vectors and allows for the nonce itself to be all zeros. Check the GPU ISA code, the execution path is clearer there! Smiley
Nachtwind
Hero Member
*****
Offline Offline

Activity: 700
Merit: 507



View Profile
October 16, 2012, 12:13:12 PM
 #7579

Maybe "cure" will be compile "GPU-only" and "FPGA-only" versions? And run 2 programs?

Thats what i try to accomplish not to have: I would love to have my miners in one single program.
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 16, 2012, 12:15:14 PM
 #7580

Alas the ztex code is in complete bitrot. The only code maintainer for it (nelisky) has long since disappeared and made no attempt to come back and maintain or bugfix it. So you're screwed.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Pages: « 1 ... 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 [379] 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 ... 843 »
  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!