Con Kolivas
4cd5f47efa
Revert "Multiple compiler warning fixes."
...
This reverts commit a5cbfbde2610e9f60e14b41a4e0595bcb34c772a.
Broke.
2011-07-04 19:47:19 +10:00
Con Kolivas
88761e6cf2
Multiple compiler warning fixes.
2011-07-04 19:47:19 +10:00
ckolivas
19eea9067f
Implement code detecting max work size and optimal vector width.
...
Use this to patch the kernel to suit the idea values for the card.
Then use these values when invoking the kernel.
2011-07-04 19:47:19 +10:00
ckolivas
237a5067c3
Skip trying to start thread of GPUs that don't successfully initcl().
2011-07-04 19:47:19 +10:00
ckolivas
14ca888373
Update help.
2011-07-04 19:47:19 +10:00
ckolivas
c08be809f2
Fix the setting of number of processors.
...
Add scan intensity variable.
2011-07-04 19:47:19 +10:00
ckolivas
2ab6180d55
Reset count once all threads are started to avoid slow rate being shown initially.
...
Update copyright notice and comments.
2011-07-04 19:47:19 +10:00
Con Kolivas
932ff72f70
The gpuminer thread uses very little cpu and needs to keep the gpu busy with as few delays as possible. Don't nice it.
2011-07-04 19:47:19 +10:00
Con Kolivas
f54d2cc0ed
Make poclbm use 4 vectors and decrease worksize to keep pipelines fullish.
...
Make it possible to have 0 CPU threads and update docs.
Fix counter with no cpu threads.
2011-07-04 19:47:19 +10:00
ckolivas
662404812a
Fix deref.
2011-07-04 19:47:19 +10:00
ckolivas
fa2f6b19c1
Unwind.
2011-07-04 19:47:19 +10:00
ckolivas
79fec01a46
Remove the input buffer and just pass args to the kernel as per plugin design.
2011-07-04 19:47:19 +10:00
Con Kolivas
f117675ac2
Optimise work loop to make cl calls asynchronous where possible.
2011-07-04 19:47:19 +10:00
Con Kolivas
f05270b8c8
Optimise loop and make debug debug only.
2011-07-04 19:47:19 +10:00
Con Kolivas
91e5cef3a5
Actually get first BFI_INT patch working.
2011-07-04 19:47:19 +10:00
Con Kolivas
910e6943b2
Increase baseline threads to 1<<22. Make total counter regularly update every 5 seconds.
...
Only write the blank buffer when it needs to be blanked.
2011-07-04 19:47:19 +10:00
ckolivas
6b77d8500d
Fixes.
2011-07-04 19:47:19 +10:00
ckolivas
ce3382ca53
Don't run gpu thread idle prio.
2011-07-04 19:47:18 +10:00
Con Kolivas
dde7039726
Merge gpumining from oclmine. Unstable.
2011-07-04 19:46:39 +10:00
ckolivas
51817422fc
Cope with older linux kernel headers that don't have the newer scheduling policies defined.
2011-07-04 19:46:38 +10:00
Con Kolivas
0a8ac14c9e
Forgot the else.
2011-07-04 19:46:38 +10:00
Con Kolivas
4f8045c253
Only increase solutions count when confirmed true.
2011-07-04 19:46:38 +10:00
Con Kolivas
ce750e42b3
Add a solution counter to the output.
2011-07-04 19:46:38 +10:00
Con Kolivas
7062557e74
Implement global hash rate counter through mutex lock protected data.
...
Make the output easier to read.
Don't do hashmeter updates if no output is requested.
Remove redundant output when using a single thread.
2011-07-04 19:46:38 +10:00
Jeff Garzik
4d6be0c194
Fix number-of-threads init logic on Windows
2011-07-04 19:46:38 +10:00
Jeff Garzik
8e0e24936c
only read processor count via sysconf on non-Windows platforms
2011-07-04 19:46:38 +10:00
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.
2011-07-04 19:46:38 +10:00
Jeff Garzik
69529c3859
Support full URL, in X-Long-Polling header
2011-03-24 14:09:49 -04:00
Jeff Garzik
46819af36f
--user/--pass fixes
...
Also, some newline fixes (applog callers do not need newlines in strings)
2011-03-21 20:50:59 -04:00
Jeff Garzik
81352ca48f
Support --user and --pass, as alternative to --userpass
2011-03-21 04:27:02 -04:00
Jeff Garzik
2fd9d54443
Convert remaining [f]print to applog().
...
Also, remove a few superfluous printouts.
2011-03-21 04:02:13 -04:00
Jeff Garzik
144cf62d7c
Avoid potential for div-by-zero, when calculating max-nonce
2011-03-21 03:45:26 -04:00
Jeff Garzik
d49d639269
cpu-miner.c: Remove newline from applog() call
2011-03-21 03:42:57 -04:00
Jeff Garzik
24afd61775
Introduce more standardized logging (incl. optional syslog).
...
Also, improve portability of alloca.
2011-03-18 17:24:16 -04:00
Jeff Garzik
7a87bee999
Add long polling support
2011-03-18 02:53:13 -04:00
Jeff Garzik
6818c6928a
Improve max nonce auto-adjustment with some basic algebra.
2011-03-17 23:22:10 -04:00
Jeff Garzik
2d49a9a5d7
Introduce ability to interrupt hash scanners in the middle of scanning.
2011-03-17 22:02:28 -04:00
Jeff Garzik
0258fae450
Fix Windows build, that broke with yasm integration
2011-03-14 23:36:28 -04:00
Jeff Garzik
4f7a51e9ed
Move all RPC I/O to separate thread.
2011-03-14 23:17:34 -04:00
Mark Crichton
96d2287c72
X86_64 SSE2 support for Linux
2011-03-06 23:49:00 -05:00
Jeff Garzik
4a7f3f70b5
Show date/time when proof-of-work is found.
2011-02-17 01:58:53 -05:00
Jeff Garzik
fa7e80b8e5
Extract get-work logic into separate function.
2011-02-17 01:21:16 -05:00
Jeff Garzik
6d2882937f
Add support for JSON-format configuration file
2011-02-13 03:04:02 -05:00
Jeff Garzik
c0935a9489
Re-use CURL object, thereby caching DNS and HTTP connections where possible.
2011-02-10 00:41:44 -05:00
Jeff Garzik
e47076caac
Fix max-nonce auto-adjustment logic to actually work
2011-02-04 11:54:31 -05:00
Jeff Garzik
e8ee4cb002
Add --retry-pause, to set length of pause time between failure retries
2011-02-03 00:54:03 -05:00
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.
2011-02-03 00:46:55 -05:00
Jeff Garzik
453101d9e9
Remove "PROOF OF WORK FOUND?" debug output; redundant.
2011-01-29 23:55:11 -05:00
Jeff Garzik
f889476bbd
Dynamically adjust time spent hashing current work unit, to meet target
2011-01-29 01:14:12 -05:00
Jeff Garzik
0b67740707
Pass max-nonce as arg to each sha256 algo.
...
Should be an equivalent transformation, with no behavior changes.
2011-01-29 00:56:24 -05:00