Con Kolivas
f6591379fb
Minimise how much more work can be given in cpu mining threads each interval.
14 years ago
Con Kolivas
5acdbec47d
Make the fail-pause progressively longer each time it fails until the network recovers.
14 years ago
Con Kolivas
b4d6b11b9a
Only display the lagging message if we've requested the work earlier.
14 years ago
Con Kolivas
ced4a9ac92
Clean up the pool switching to not be dependent on whether the work can roll or not by setting a lagging flag and then the idle flag.
14 years ago
Con Kolivas
088ee2fa29
Only use one thread to determine if a GPU is sick or well, and make sure to reset the sick restart attempt time.
14 years ago
Con Kolivas
7c6dfaccf1
Display which longpoll failed and don't free the ram for lp_url since it belongs to the pool hdr path.
14 years ago
Con Kolivas
6f741597f8
Use any longpoll available, and don't disable it if switching to a server that doesn't have it.
14 years ago
Con Kolivas
b358bdc07e
Never automatically disable any pools but just specify them as idle if they're unresponsive at startup.
14 years ago
Con Kolivas
324d849bf2
Attempt to restart a GPU once every minute while it's sick.
...
Don't kill off the reinit thread if it fails to init a GPU but returns safely.
Only declare a GPU dead if there's been no sign of activity from the reinit thread for 10 mins.
14 years ago
Con Kolivas
1b228ee3d4
Re-enable devices immediately after ther old threads would have been killed off in case the first attempt to restart them fails but we still want them emabled.
14 years ago
Con Kolivas
75018d0d48
Release cl resources should the gpu mining thread abort.
14 years ago
Con Kolivas
a754cc3f0c
Suppress correct log output when display per-device status.
14 years ago
Con Kolivas
6f769e0f8f
Add the ability to enable/disable per-device stats on the fly and match logging on/off.
14 years ago
Con Kolivas
e414490bf7
Don't display rolling status if per device stats is enabled.
14 years ago
Con Kolivas
64e7cdd61b
The new phatk kernel needs a different nonce passed according to how many vectors are in use.
...
This fixes breakage that otherwise occurs when 1 or 4 vectors are chosen.
14 years ago
Znort 987
e49bfbf2ec
Add per-device statics log output
14 years ago
Znort 987
f66dec74e6
Fix a crash with --algo auto
14 years ago
Con Kolivas
cf54f9b850
Move to 256 sized buffers and don't risk overwrite by using only 127 mask.
14 years ago
Con Kolivas
52e521a7c1
Revert "Copy the work before returning from creating a thread in case we change the work before copying it."
...
This reverts commit 6bf4d781e9
.
Causing a double free error.
14 years ago
Phateus
d15d225a4c
Changed phatk version to 2.2
14 years ago
Con Kolivas
6bf4d781e9
Copy the work before returning from creating a thread in case we change the work before copying it.
14 years ago
Con Kolivas
1e77f04481
Clean up the longpoll management to ensure the right paths go to the right pool and display whether we're connected to LP or not in the status line.
14 years ago
Con Kolivas
074b8193b2
Flush output.
14 years ago
Con Kolivas
53a4245a43
Log summary at the end as per any other output.
14 years ago
Con Kolivas
939a0e02b7
Only show cpu algo in summary if cpu mining.
14 years ago
Con Kolivas
cdece1f248
Simplify code and tidy output.
14 years ago
Con Kolivas
8e38a149d8
Simplify output code and remove HW errors from CPU stats.
14 years ago
Con Kolivas
c53a7b0d2d
Only display the CPU algo when we're CPU mining.
14 years ago
Con Kolivas
8febf57af0
Keep options in alphabetical order.
14 years ago
Con Kolivas
845af9113e
Add --submit-stale option which submits all shares, regardless of whether they would normally be considered stale.
14 years ago
Con Kolivas
4e48561a13
Rework the last-initialised time displayed.
14 years ago
Con Kolivas
cfe8534c39
Partial restart of threads has proven to be unsuccessful so reinstate device re-initialisation to restart GPUs.
...
Do this by having a reinit thread that is told via a queue which device to restart.
If this thread fails to return from opencl code, it should not interrupt the workings of other devices.
14 years ago
Con Kolivas
42d49ffdc7
Revert "Restart threads by abstracting out the clcontext initialisation and using that instead of probing all cards."
...
This reverts commit 8f186e61e2
.
14 years ago
Con Kolivas
cf543507c6
Revert "Preinitialise the devices only once on startup."
...
This reverts commit 071a0ad2f1
.
14 years ago
Con Kolivas
b1289a0159
Revert "Move the non cl_ variables into the cgpu info struct to allow creating a new cl state on reinit, preserving known GPU variables."
...
This reverts commit 28880d0dc7
.
14 years ago
Con Kolivas
7c50bb02ab
Revert "Display last initialised time in gpu management info."
...
This reverts commit 177e07aed3
.
14 years ago
Con Kolivas
cac54f30b8
Revert "When pinging a sick cpu, flush finish and then ping it in a separate thread in the hope it recovers, but without blocking code elsewhere."
...
This reverts commit a466942fd8
.
14 years ago
Znort 987
92af1925a6
Remove benchmark data from main.c
14 years ago
Znort 987
8256402a63
Remove harmless warning on win32
14 years ago
Znort 987
593022dfd7
Added somme comments
14 years ago
Znort 987
e923ac78d5
Add CPU algo used to summary
14 years ago
Znort 987
4e3f38d047
Re-indent code for fork_monitor
14 years ago
Znort 987
39bdec8bbe
Various minor changes
...
- Fixed a type bug on 32bit platform in algo bench
- Some re-indenting
14 years ago
Znort 987
75639da1e3
Add WIN32 safe CPU benchmark method
...
Method for WIN32
- Add a hidden '--bench-algo' option to cgminer that only
benchmarks the specified algorithm.
- Create a chunk of shared mem
- Launch a new instance of cgminer with --bench-algo, and
act as a debugger for it to silently catch crashes.
- Once it completes, either successfully or because of a
crash, read benchmarked value from shared mem
14 years ago
Znort 987
84b0467cb2
Fix broken assert in algo bencher
14 years ago
Znort 987
6fd06387b3
On unix, make algo benchmark more generic
14 years ago
Znort 987
01886493cf
Add set_non_blocking routing
...
In preparation for upcoming generic unix automated
algorithm benchmark method (as opposed to linux specific),
add a utility method.
14 years ago
Znort 987
29f0f9bc18
Properly detect number of cores on WIN32
14 years ago
Znort 987
7158f9f9ed
Add automated benchmark of the CPU hashers
...
The --algo switch now accepts the "auto" argument.
When "auto" is passed to --algo, cgminer starts by benchmarking
all the CPU algorithms it nows about and picks the fastest.
This is useful for benchmarking, but also for folks who run
cgminer on a large number of heterogeneous computers because
it saves them from having to configure each instance optimally.
Caveat emptor: depending on the platform, some algorithms will
fail with "illegal instruction" (e.g. via padlock code on non via
platforms, or SSE4 code on non SSE4 platforms).
To protect against this, cgminer runs the benchmarks in a child
process. The crash, if any occurs in the child, and the parent
marks this algo as "fails" and continues benchmarking the next
algorithm.
Unfortunately, this safeguard is only implemented for Linux
because I have no clue how to do this on win32 (nor access to
a win32 box).
14 years ago
Con Kolivas
50504ef9e0
If a work item has had any mining done on it, don't consider it discarded work.
14 years ago