CPU miner for LBRY
8a832eeab5
Add likely() macro. Optimise a few obvious code paths with likely/unlikely. Change algo to sse2_amd64 by default. Move priority change to worker threads only. Detect number of CPUs and set default number of threads == CPUs. Add scheduling policy change to worker threads to SCHED_IDLE first and fallback to SCHED_BATCH on linux. Don't error when failing to set priority. Add CPU affinity and bind worker threads to CPUs when number of threads is a multiple of number of CPUs. Update NEWS with changes. |
||
---|---|---|
compat | ||
x86_64 | ||
.gitignore | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
compat.h | ||
configure.ac | ||
COPYING | ||
cpu-miner.c | ||
elist.h | ||
example-cfg.json | ||
LICENSE | ||
Makefile.am | ||
miner.h | ||
mknsis.sh | ||
NEWS | ||
README | ||
sha256_4way.c | ||
sha256_cryptopp.c | ||
sha256_generic.c | ||
sha256_sse2_amd64.c | ||
sha256_via.c | ||
util.c |
This is a multi-threaded CPU miner for bitcoin. License: GPLv2. See COPYING for details. Dependencies: libcurl http://curl.haxx.se/libcurl/ jansson http://www.digip.org/jansson/ (jansson is optional, and is included in-tree) Basic *nix build instructions: ./autogen.sh # only needed if building from git repo CFLAGS="-O3 -Wall -msse2" ./configure make Basic WIN32 build instructions (on Fedora 13; requires mingw32): ./autogen.sh # only needed if building from git repo rm -f mingw32-config.cache MINGW32_CFLAGS="-O3 -Wall -msse2" mingw32-configure make ./mknsis.sh Usage instructions: Run "minerd --help" to see options. Also many issues and FAQs are covered in the forum thread dedicated to this program, http://www.bitcoin.org/smf/index.php?topic=1925.0;all