Con Kolivas
45d5435781
Make cpu mining work submission asynchronous as well.
13 years ago
Con Kolivas
380d145c64
Make threads report out when they're queueing a request and report if they've failed.
13 years ago
Con Kolivas
324dd93bb7
Don't take more than one lock at a time.
13 years ago
Con Kolivas
98f609b5be
Sanity check to prove locking.
13 years ago
Con Kolivas
c72840284f
Abstract out the decay time function and use it to make hash_div a rolling average so it doesn't change too abruptly and divide work in chunks large enough to guarantee they won't overlap.
13 years ago
Con Kolivas
a48895829e
Update both windows separately, but not at the same time to prevent the double refresh crash that old libncurses has.
...
Do the window resize check only when about to redraw the log window to minimise ncurses cpu usage.
13 years ago
Con Kolivas
6f905932af
Only free the thread structures if the thread still exists.
13 years ago
Con Kolivas
40bc82d4ca
Don't adjust hash_div only up for GPUs. Disable hash_div adjustment for GPUs.
13 years ago
Con Kolivas
1aadfc580b
Two redraws in a row cause a crash in old libncurses so just do one redraw using the main window.
13 years ago
Con Kolivas
3060b97de3
Bump version number.
13 years ago
Con Kolivas
0f6cf16f37
Update news.
13 years ago
Con Kolivas
93b284dbca
Best to serialise the restarting of threads to avoid device initialisation issues.
13 years ago
Con Kolivas
d5d56920dd
Off by one limit in device selection.
13 years ago
Con Kolivas
f9bc3771b4
The first work item is tricky so don't try and divide it up to begin with.
13 years ago
Con Kolivas
1536e085da
Increase efficiency of slow mining threads such as CPU miners dramatically.
...
Do this by detecting which threads cannot complete searching a work item within the scantime and then divide up a work item into multiple smaller work items.
Detect the age of the work items and if they've been cloned before to prevent doing the same work over.
If the work is too old to be divided, then see if it can be time rolled and do that to generate work.
This dramatically decreases the number of queued work items from a pool leading to higher overall efficiency (but the same hashrate and share submission rate).
13 years ago
Con Kolivas
7e7a5f777e
Don't request work too early for CPUs as CPUs will scan for the full opt_scantime anyway.
14 years ago
Con Kolivas
6045c4d161
Simplify gpu management enable/disable/restart code.
14 years ago
Con Kolivas
fa17f03432
Implement much more accurate rolling statistics per thread and per gpu and improve accuracy of rolling displayed values.
14 years ago
Con Kolivas
ce6af96821
Make the rolling log-second average more accurate.
14 years ago
Con Kolivas
7707ed4db1
Add a menu to manage GPUs on the fly allowing you to enable/disable GPUs or try restarting them.
...
Keep track of which GPUs are alive versus enabled.
Start threads for devices that are even disabled, but don't allow them to start working.
14 years ago
Con Kolivas
7143c25b72
The last pool is when we are low in total_pools, not active_pools.
14 years ago
Con Kolivas
a53716dc7f
Fix compiler warnings.
14 years ago
Con Kolivas
b3d20b573c
Make the thread restart do a pthread_join after disabling the device, only re-enabling it if we succeed in restarting the thread.
...
Do this from a separate thread so as to not block any other code.
This will allow cgminer to continue even if one GPU hangs.
14 years ago
Con Kolivas
a187fe1e7b
Try to do every curses manipulation under the curses lock.
14 years ago
Con Kolivas
5f54e164c9
Only use the sockoptfunction if the version of curl is recent enough.
14 years ago
Con Kolivas
2ca6c40991
Bump version.
14 years ago
Con Kolivas
e9ec92de2a
Update news.
14 years ago
Con Kolivas
401983136c
Do away with GET for dealing with longpoll forever. POST is the one that works everywhere, not the other way around.
14 years ago
Con Kolivas
508c5c4b12
Detect when the primary pool is lagging and start queueing requests on backup pools if possible before needing to roll work.
14 years ago
Con Kolivas
afcff07012
Load balancing puts more into the current pool if there are disabled pools. Fix.
14 years ago
Con Kolivas
27c7d2a480
Disable a GPU device should the thread fail to init.
14 years ago
Con Kolivas
2e37e3374e
Out of order command queue may fail on osx. Try without if it fails.
14 years ago
Con Kolivas
4cd12aa8e0
Fix harmless warning.
14 years ago
Con Kolivas
9a928e3407
Fix possible dereference on blank inputs during input_pool.
14 years ago
Con Kolivas
1a789a40c7
Defines missing would segfault on --help when no sse mining is built in.
14 years ago
Con Kolivas
fd473afedc
Revert "Free up resources/stale compilers."
...
This reverts commit b4960ec36b
.
Didn't help and might have caused other issues.
14 years ago
Con Kolivas
f3c5f55481
Only try to print the status of active devices.
14 years ago
Con Kolivas
d5fbf8f987
Some hardware might benefit from the less OPS so there's no harm in leaving it there apart from readability of the code.
...
Revert "Simplify the output part of the kernel. There's no demonstrable advantage from more complexity."
This reverts commit 53b53cb666
.
14 years ago
Con Kolivas
8b859aa72f
Merge pull request #19 from ycros/cgminer
...
OSX: fix setsockopt compile bug
14 years ago
Ycros
0c25ff8416
OSX: fix setsockopt compile bug
14 years ago
Con Kolivas
f0f6a0046c
Bump version number to 1.4.0
14 years ago
Con Kolivas
cf616ba4b6
Update NEWS.
14 years ago
Con Kolivas
020cf7d63f
Build support in for all SSE if possible and only set the default according to machine capabilities.
14 years ago
Con Kolivas
039a5ea7cd
No need to make leaveok changes win32 only.
14 years ago
Con Kolivas
4a34d10477
Merge pull request #18 from ycros/cgminer
...
Win32 threading, longpoll and clean exit fixes.
14 years ago
Ycros
a150140eb7
Merge branch 'cgminer' of git://github.com/ckolivas/cgminer into cgminer
14 years ago
Con Kolivas
53b53cb666
Simplify the output part of the kernel. There's no demonstrable advantage from more complexity.
14 years ago
Con Kolivas
a9e1a25518
Make it possible to select the choice of kernel on the command line.
14 years ago
Con Kolivas
116a9dc025
Update phatk kernel to one with new parameters for slightly less overhead again.
...
Make the queue kernel parameters call a function pointer to select phatk or poclbm.
14 years ago
Con Kolivas
b5358483c3
Cannot print the status of threads that don't exist so just queue enough work for the number of mining threads to prevent crash with -Q N.
14 years ago