Con Kolivas
b6ac9f185e
Revert "Make sure not to try and submit work for nonces higher than already submitted in current work item."
...
This reverts commit a2dd410e36
.
Incorrect fix. Missed real shares that are accepted.
14 years ago
Con Kolivas
a2dd410e36
Make sure not to try and submit work for nonces higher than already submitted in current work item.
...
This reduces rejects substantially.
14 years ago
Con Kolivas
c36cc61f64
Ensure we connect at least once successfully before continuing to try to connect.
14 years ago
Con Kolivas
3a968490b2
Turn the wakeup thread into a watchdog thread that checks when the last time a thread reported in was and restarts the thread if it has been idle for more than a minute.
14 years ago
Con Kolivas
43ef5f5d3f
Get rid of the flaky time_lock and use the thread safe localtime_r instead.
14 years ago
Con Kolivas
90839cdf5a
Implement a completely curses based display and don't output to stderr when log is enabled unless it's redirected away from the terminal.
14 years ago
Con Kolivas
6464dbfc65
Implement per-device request count to have a per-device efficiency and request status.
14 years ago
Ycros
a5fb85ef84
Fixed WIN32 compilation with byteswap.
14 years ago
Con Kolivas
c9bbaec3b2
Cope with delays in retrieving work from the server by knowing when we have run out of staged work.
...
Once we are out of staged work, roll the ntime forwards in the work to generate work locally without a getwork.
Display a message explaining when we move to/from local generation to server retrieval.
Make sure we don't think we've run out of work transiently after a longpoll by flagging a buffer of fake staged work.
14 years ago
Rusty Russell
e2d912eb4a
vapplog: new helper function for reporting errors.
14 years ago
Con Kolivas
837e7b1a85
Remove unused cgpu rolling_local variable.
14 years ago
Con Kolivas
0a80d4b04d
Display the output as a refreshing line and only push continuous log to stderr if desired.
14 years ago
Con Kolivas
cb13e2cfe5
Make it possible to build without opencl for cpu mining only.
14 years ago
Con Kolivas
9950aa3927
Fix 32 bit builds.
14 years ago
Con Kolivas
5007805d1f
Update CPU reentrant scan code to work properly for extended periods up to scantime and adjust rate properly.
...
Simplify locking in hashmeter since it's called relatively infrequently anyway.
Set gpuminer hashmeter interval update to log interval / 5 as well.
14 years ago
Ycros
ec8319176e
Build on windows using mingw32.
14 years ago
ckolivas
08a7821072
Make the log show what the thread is: cpu or gpu and what number.
14 years ago
ckolivas
f490143a9a
Add local thread count to info, store hw error count, and make share submission debug only.
14 years ago
Con Kolivas
6374e0fafe
Import the phatk kernel. Enable it only for hardware with amd media ops for now since it crashes nvidia et. al.
...
Fallback to the poclbm kernel for the rest. Try harder to avoid stale blocks around longpoll detecting new blocks.
14 years ago
Con Kolivas
a45c54aaf8
Make postcalc_hash asynchronous as well.
14 years ago
Con Kolivas
dde7039726
Merge gpumining from oclmine. Unstable.
14 years ago
ckolivas
262b98ca95
Linux + x86_64 optimisations.
...
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.
14 years ago
Glenn Francis Murray
180b99f2d9
OSX Support
...
Derived from xorg source
http://cgit.freedesktop.org/xorg/xserver/tree/GL/glx/glxbyteorder.h?id=cdf6b15f039c4905d8d54152153b0a3ecd7aba55;id2=415e49b940bba2d08870db410ebb47d2add5d836
14 years ago
Jeff Garzik
2fd9d54443
Convert remaining [f]print to applog().
...
Also, remove a few superfluous printouts.
14 years ago
Jeff Garzik
23e9cf91f0
Ensure cpuminer-config.h is universally included, in *.c and *.h alike.
...
In miner.h, this fixes an alloca-definition-related warning.
For the other files, this is simply future-proofing/precaution.
14 years ago
Jeff Garzik
24afd61775
Introduce more standardized logging (incl. optional syslog).
...
Also, improve portability of alloca.
14 years ago
Jeff Garzik
7a87bee999
Add long polling support
14 years ago
Jeff Garzik
33e5b54928
miner.h: pad out work_restart to max likely cache line size
14 years ago
Jeff Garzik
2d49a9a5d7
Introduce ability to interrupt hash scanners in the middle of scanning.
14 years ago
Jeff Garzik
0258fae450
Fix Windows build, that broke with yasm integration
14 years ago
Jeff Garzik
4f7a51e9ed
Move all RPC I/O to separate thread.
14 years ago
Jeff Garzik
6b19b15aa9
Fix warnings in sse2_64 implementation.
14 years ago
Mark Crichton
96d2287c72
X86_64 SSE2 support for Linux
14 years ago
Jeff Garzik
1083e15c47
Mark hash success as unlikely, using __builtin_expect() intrinsic
14 years ago
Jeff Garzik
9f3472ad19
Use bswap_32 from byteswap.h, if __builtin_bswap() is not available
14 years ago
Jeff Garzik
c0935a9489
Re-use CURL object, thereby caching DNS and HTTP connections where possible.
14 years ago
Jeff Garzik
714c0fd7c9
Continue scanhash, even if high 32 bits are zero.
...
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.
14 years ago
Jeff Garzik
c68ffb30dd
Display proof-of-work hash when one is discovered
14 years ago
Jeff Garzik
0b67740707
Pass max-nonce as arg to each sha256 algo.
...
Should be an equivalent transformation, with no behavior changes.
14 years ago
Jeff Garzik
a296799358
Replace ___constant_swab32() with gcc's __builtin_bswap32
...
http://www.bitcoin.org/smf/index.php?topic=1925.msg34827#msg34827
Credit: lfm
14 years ago
Jeff Garzik
970e74c07d
Move 32-bit swap code into miner.h, for sharing.
14 years ago
Jeff Garzik
d88648dd39
sha256_via: ensure that found nonce is copied back into output data buffer
...
Also, some minor cleanups, removing unused args.
14 years ago
Jeff Garzik
f1fcd76ba7
sha256_cryptopp: Add crypto++ 32-bit assembly implementation
14 years ago
Jeff Garzik
74bb196296
Add Crypto++ sha256 implementation (C only, ASM elided for now)
14 years ago
Jeff Garzik
339ddf4d75
Move sha256_generic into its own .o build output. Const-ify midstate param.
14 years ago
Jeff Garzik
4da2e4fbe2
miner.h: include sys/time.h for struct timeval definition
14 years ago
Jeff Garzik
e2eeaaf75b
Add experimental (read: probably broken) VIA padlock support.
14 years ago
Jeff Garzik
86eb37d631
Improve and modularize compile-time CPU detection.
...
Ideally, we should move this to autoconf.
14 years ago
Jeff Garzik
35ea649d97
Improve hash performance statistics.
14 years ago
Jeff Garzik
c639149977
Add tcatm's 4way SSE2 sha256 implementation.
14 years ago