aboutsummaryrefslogtreecommitdiff
path: root/miner.h
AgeCommit message (Collapse)Author
2011-12-29Added Cell/BE optimizationsSiarhei Siamashka
Linux on PS3 gets a huge boost in litecoin mining performance. Cell/BE support should be detected and enabled automatically by autotools. The miner threads are first allocated to the available SPU cores (typically 6). The remaining threads are allocated on PPU. There will be 8 threads total on PS3: 6 SPU threads and 2 PPU threads. Each SPU core provides ~5.4 khash/s if compiled with spu-elf-gcc 4.6 The performance may vary for different gcc versions, older ones are typically slower.
2011-10-01Rip out sha256 algosArt Forz
2011-09-20add scrypt functionArt Forz
2011-06-09Linux + x86_64 optimisations.ckolivas
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.
2011-05-11OSX SupportGlenn Francis Murray
Derived from xorg source http://cgit.freedesktop.org/xorg/xserver/tree/GL/glx/glxbyteorder.h?id=cdf6b15f039c4905d8d54152153b0a3ecd7aba55;id2=415e49b940bba2d08870db410ebb47d2add5d836
2011-03-21Convert remaining [f]print to applog().Jeff Garzik
Also, remove a few superfluous printouts.
2011-03-20Ensure cpuminer-config.h is universally included, in *.c and *.h alike.Jeff Garzik
In miner.h, this fixes an alloca-definition-related warning. For the other files, this is simply future-proofing/precaution.
2011-03-18Introduce more standardized logging (incl. optional syslog).Jeff Garzik
Also, improve portability of alloca.
2011-03-18Add long polling supportJeff Garzik
2011-03-17miner.h: pad out work_restart to max likely cache line sizeJeff Garzik
2011-03-17Introduce ability to interrupt hash scanners in the middle of scanning.Jeff Garzik
2011-03-14Fix Windows build, that broke with yasm integrationJeff Garzik
2011-03-14Move all RPC I/O to separate thread.Jeff Garzik
2011-03-07Fix warnings in sse2_64 implementation.Jeff Garzik
2011-03-06X86_64 SSE2 support for LinuxMark Crichton
2011-02-17Mark hash success as unlikely, using __builtin_expect() intrinsicJeff Garzik
2011-02-10Use bswap_32 from byteswap.h, if __builtin_bswap() is not availableJeff Garzik
2011-02-10Re-use CURL object, thereby caching DNS and HTTP connections where possible.Jeff Garzik
2011-02-03Continue scanhash, even if high 32 bits are zero.Jeff Garzik
Previously, we would stop the scan if the high 32 bits of the hash were zero, as a quick shortcut for testing the full hash. If this quick test succeeded, we would pass the work to the server for full validation. Change this logic to perform full validation inside minerd, so that work may be resumed more quickly if hash > target.
2011-02-02Display proof-of-work hash when one is discoveredJeff Garzik
2011-01-29Pass max-nonce as arg to each sha256 algo.Jeff Garzik
Should be an equivalent transformation, with no behavior changes.
2011-01-29Replace ___constant_swab32() with gcc's __builtin_bswap32Jeff Garzik
http://www.bitcoin.org/smf/index.php?topic=1925.msg34827#msg34827 Credit: lfm
2010-12-26Move 32-bit swap code into miner.h, for sharing.Jeff Garzik
2010-12-23sha256_via: ensure that found nonce is copied back into output data bufferJeff Garzik
Also, some minor cleanups, removing unused args.
2010-12-06sha256_cryptopp: Add crypto++ 32-bit assembly implementationJeff Garzik
2010-11-28Add Crypto++ sha256 implementation (C only, ASM elided for now)Jeff Garzik
2010-11-27Move sha256_generic into its own .o build output. Const-ify midstate param.Jeff Garzik
2010-11-27miner.h: include sys/time.h for struct timeval definitionJeff Garzik
2010-11-27Add experimental (read: probably broken) VIA padlock support.Jeff Garzik
2010-11-27Improve and modularize compile-time CPU detection.Jeff Garzik
Ideally, we should move this to autoconf.
2010-11-26Improve hash performance statistics.Jeff Garzik
2010-11-26Add tcatm's 4way SSE2 sha256 implementation.Jeff Garzik
2010-11-26Replace argp with getopt_longJeff Garzik
2010-11-25Move utility routines to util.c.Jeff Garzik