14

I thought it was the ALU OPs like here: https://bitcointalk.org/index.php?topic=7964.0

ArtForz speaks of much higher values, though: https://bitcointalk.org/index.php?topic=4689.msg68933#msg68933

Does the kernel run more than once for a hash? What am I missing?

10

The ALU OP numbers are correct. The numbers vary based on the video card but are basically in the range of 1,300 to 1,700 operations per double-hash. On the x86, you need more instructions (around 3,700 - 4,500 depending on the exact CPU) but these CPUs can average more than one operation per clock cycle, so you can't convert instruction counts directly into execution speed.

All sensible mining implementations (CPU or GPU) attempt more than one hash at a time. On an x86 CPU, it's typically around four hashes at a time (one per core). On a GPU, it's more like 1,000 - 3,000 hashes at a time (one per core). Hence the superior hashing performance of GPUs.

  • 1
    double hash as in: "Bitcoin uses: SHA256(SHA256(Block_Header))" en.bitcoin.it/wiki/Block_hashing_algorithm . any idea why ArtForz says "one bitcoinhash is ~6.35k x86 INTOP". are you sure the numbers are for a doule hash and not for a single hash? I will look into the kernel code. – kermit Sep 28 '11 at 20:25
  • Oops, you're right. I'll fix it. It doesn't quite double as there's some optimizations you can do. – David Schwartz Sep 28 '11 at 20:44
  • it looks like the poclbm kernel for example is doing both SHA256 at once as you said. – kermit Sep 29 '11 at 13:08
3

turns out it is ~3385 integer operations per bitcoin hash

https://bitcointalk.org/index.php?topic=7964.msg550288#msg550288

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.