1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-01 18:55:36 +00:00
Commit Graph

2105 Commits

Author SHA1 Message Date
Con Kolivas
d5d56920dd Off by one limit in device selection. 2011-07-26 22:41:42 +10:00
Con Kolivas
f9bc3771b4 The first work item is tricky so don't try and divide it up to begin with. 2011-07-26 21:40:11 +10:00
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).
2011-07-26 20:48:05 +10:00
Con Kolivas
7e7a5f777e Don't request work too early for CPUs as CPUs will scan for the full opt_scantime anyway. 2011-07-26 15:16:39 +10:00
Con Kolivas
6045c4d161 Simplify gpu management enable/disable/restart code. 2011-07-26 13:47:18 +10:00
Con Kolivas
fa17f03432 Implement much more accurate rolling statistics per thread and per gpu and improve accuracy of rolling displayed values. 2011-07-26 11:58:45 +10:00
Con Kolivas
ce6af96821 Make the rolling log-second average more accurate. 2011-07-26 10:45:52 +10:00
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.
2011-07-26 10:26:03 +10:00
Con Kolivas
7143c25b72 The last pool is when we are low in total_pools, not active_pools. 2011-07-25 16:44:24 +10:00
Con Kolivas
a53716dc7f Fix compiler warnings. 2011-07-25 13:59:34 +10:00
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.
2011-07-25 13:55:01 +10:00
Con Kolivas
a187fe1e7b Try to do every curses manipulation under the curses lock. 2011-07-25 13:00:44 +10:00
Con Kolivas
5f54e164c9 Only use the sockoptfunction if the version of curl is recent enough. 2011-07-25 10:58:32 +10:00
Con Kolivas
2ca6c40991 Bump version. 2011-07-24 19:58:56 +10:00
Con Kolivas
e9ec92de2a Update news. 2011-07-24 19:43:29 +10:00
Con Kolivas
401983136c Do away with GET for dealing with longpoll forever. POST is the one that works everywhere, not the other way around. 2011-07-24 17:34:57 +10:00
Con Kolivas
508c5c4b12 Detect when the primary pool is lagging and start queueing requests on backup pools if possible before needing to roll work. 2011-07-24 12:07:44 +10:00
Con Kolivas
afcff07012 Load balancing puts more into the current pool if there are disabled pools. Fix. 2011-07-24 11:25:23 +10:00
Con Kolivas
27c7d2a480 Disable a GPU device should the thread fail to init. 2011-07-24 10:59:19 +10:00
Con Kolivas
2e37e3374e Out of order command queue may fail on osx. Try without if it fails. 2011-07-24 10:58:03 +10:00
Con Kolivas
4cd12aa8e0 Fix harmless warning. 2011-07-24 09:04:56 +10:00
Con Kolivas
9a928e3407 Fix possible dereference on blank inputs during input_pool. 2011-07-24 08:55:16 +10:00
Con Kolivas
1a789a40c7 Defines missing would segfault on --help when no sse mining is built in. 2011-07-24 08:51:07 +10:00
Con Kolivas
fd473afedc Revert "Free up resources/stale compilers."
This reverts commit b4960ec36b.

Didn't help and might have caused other issues.
2011-07-24 08:44:14 +10:00
Con Kolivas
f3c5f55481 Only try to print the status of active devices. 2011-07-24 08:42:07 +10:00
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.
2011-07-24 01:09:30 +10:00
Con Kolivas
8b859aa72f Merge pull request #19 from ycros/cgminer
OSX: fix setsockopt compile bug
2011-07-23 00:30:17 -07:00
Ycros
0c25ff8416 OSX: fix setsockopt compile bug 2011-07-23 17:11:16 +10:00
Con Kolivas
f0f6a0046c Bump version number to 1.4.0 2011-07-23 16:28:11 +10:00
Con Kolivas
cf616ba4b6 Update NEWS. 2011-07-23 16:24:00 +10:00
Con Kolivas
020cf7d63f Build support in for all SSE if possible and only set the default according to machine capabilities. 2011-07-23 16:19:51 +10:00
Con Kolivas
039a5ea7cd No need to make leaveok changes win32 only. 2011-07-23 16:17:28 +10:00
Con Kolivas
4a34d10477 Merge pull request #18 from ycros/cgminer
Win32 threading, longpoll and clean exit fixes.
2011-07-22 23:16:01 -07:00
Ycros
a150140eb7 Merge branch 'cgminer' of git://github.com/ckolivas/cgminer into cgminer 2011-07-23 16:00:49 +10:00
Con Kolivas
53b53cb666 Simplify the output part of the kernel. There's no demonstrable advantage from more complexity. 2011-07-23 15:58:41 +10:00
Con Kolivas
a9e1a25518 Make it possible to select the choice of kernel on the command line. 2011-07-23 15:15:46 +10:00
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.
2011-07-23 14:17:25 +10:00
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. 2011-07-23 09:37:22 +10:00
Ycros
e615b61f0a Merge branch 'cgminer' of git://github.com/ckolivas/cgminer into cgminer 2011-07-23 02:26:07 +10:00
Ycros
e04aee24d3 Win32: Fix for mangled output on the terminal on exit. 2011-07-23 02:25:54 +10:00
Con Kolivas
8d4fbc3258 Clear log window from consistent place. No need for locking since logging is disabled during input. 2011-07-23 00:45:03 +10:00
Con Kolivas
ba89a0a44f Unlocking error on retry. Locking unnecessary anyway so remove it. 2011-07-23 00:33:01 +10:00
Con Kolivas
f94ca32dcf Make sure intensity is carried over to thread count and is at least the minimum necessary to work. 2011-07-22 23:53:24 +10:00
Ycros
d37c3fe56b Win32 threading and longpoll keepalive fixes. 2011-07-22 23:43:26 +10:00
Con Kolivas
e83a32a4e2 Remove the mandatory work requirement at startup by testing for invalid work being passed which allows for work to be queued immediately.
This also removes the requirement for resetting the timecodes at the start which caused huge over-estimates of hashing for a short period.
2011-07-22 23:37:50 +10:00
Con Kolivas
61e555e44c Tell getwork how much of a work item we're likely to complete for future splitting up of work. 2011-07-22 22:22:14 +10:00
Con Kolivas
9e42d63cd6 With huge variation in GPU performance, allow intensity to go from -10 to +10. 2011-07-22 21:57:43 +10:00
Con Kolivas
65b4876431 Update README. 2011-07-22 21:02:40 +10:00
Con Kolivas
5f360394c0 News update. 2011-07-22 20:36:28 +10:00
Con Kolivas
61e5cc10e9 Extra refresh not required. 2011-07-22 20:12:32 +10:00