Post
Topic
Board Mining (Altcoins)
Re: CPU SHA support for sha256d?
by
joblo
on 13/02/2018, 06:39:22 UTC
Does cpuminer-opt support CPU SHA functions for sha256d algo? Below, it doesn't seem to be the case.


Code:
# ./cpuminer --benchmark -a sha256d

         **********  cpuminer-opt 3.8.0  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD EPYC 7401P 24-Core Processor               .
SW built on Jan 25 2018 with GCC 7.2.0.
CPU features: SSE2 AES AVX AVX2 SHA.
SW features: SSE2 AES AVX AVX2.
Algo features: None.
Start mining with no optimizations.

[2018-02-13 05:20:19] 48 miner threads started, using 'sha256d' algorithm.


No, sha256d doesn't use the SHA extension. I'm doing some 4 way work with sha256
and sha512. 4 way sha256 might actually be faster than SHA. However, sha256d has
not been on my radar because it is hopelessly uncompetitive on a CPU. I might take a
look at it eventually but, so many more things to do.