ckolivas
69966ffe17
Update copyright dates.
13 years ago
ckolivas
332b3ca1e6
Configure out building and support of all CPU mining code unless --enable-cpumining is enabled.
13 years ago
ckolivas
86d6073ee0
Allow parsed values to be zero which will allow 0 values in the config file to work.
13 years ago
Luke Dashjr
b9d197dee8
Refactor the CPU scanhash_* functions to use a common API. Fixes bugs.
...
- Before, some returned bool, and others returned int (which was then turned
into a bool with a comparison); now, everything returns a bool
- Before, some set hashes_done to nonce - 1 when a share was found and others
set it to nonce + 1 or 2. This caused some algorithms to scan/submit shares
twice with the new cpu_scanhash function. Now, it has all been replaced with
last_nonce, which is set to the final nonce checked by the scanhash_* func.
- VIA needs the full data, and cannot use midstate. All the others were
expecting midstate and data+64 for their parameters. Now, we pass midstate
and the full data pointer, and let the scanhash_* function choose which to
use.
13 years ago
Con Kolivas
5d6159f55a
Don't consider a pool lagging if a request has only just been filed.
...
This should decrease the false positives for "pool not providing work fast enough".
13 years ago
Con Kolivas
12afb479d3
Invalidating work after longpoll made hash_pop return no work giving a false positive for dead pool.
...
Rework hash_pop to retry while finds no staged work until the abstime timeout really expires.
13 years ago
Luke Dashjr
a4d1fe1e5d
Refactor miner_thread to be common code for any kind of device
...
This expands on the device API, by taking the actual main thread out of the
device's code, and calling the API only for specific tasks. This brings
various changes that were made to the GPU thread code into the CPU miner.
It also fixes a bug where shares found on old GPU work were discarded when
it switched to a new work.
13 years ago
Luke Dashjr
845961af66
Refactor to abstract device-specific code
13 years ago
Con Kolivas
17e8d60b5f
Adjust utility width to be constant maximum as well.
13 years ago
Steve Brecher
52d134ce2e
Add percent signs to reject ratio outputs
13 years ago
Con Kolivas
ec8501a79c
Should the donation pool fail, don't make the fallover pool behave as though the primary pool is lagging.
13 years ago
ckolivas
59c29fc63f
Use an alternative pool should the donation getwork fail.
13 years ago
Kano
7187dfa049
If api-description is specified, save it when writing the config file
13 years ago
Con Kolivas
743d81b36b
Adjust column width of A/R/HW to be the maximum of any device and align them.
13 years ago
Kano
9bf0ad18a4
Display pool in summary if only 1 pool
13 years ago
Con Kolivas
d56e5ae61b
Force fresh curl connections on any detected rpc failure in case of dead persistent connections..
13 years ago
Con Kolivas
40ea56ee6e
Continue attempting to restart every minute whether a GPU is considered sick or dead.
13 years ago
Con Kolivas
c0775734fd
Again do not attempt to restart a hung device with the every minute attempted restart.
13 years ago
Con Kolivas
c7c838d780
Give warning with donor pool so as to explain why there may be a slow startup.
13 years ago
Con Kolivas
d656c14ef8
Don't give pool slow warning if it is the donation pool.
13 years ago
Kano
5033dcd355
fix test/set of thr->pth to also work in windows
13 years ago
Con Kolivas
9f41f2f341
Try to align device outputs in curses output.
13 years ago
Con Kolivas
2257b5023a
Simplify longpoll changeover to just check which pool it should grab its next longpoll from. This should prevent locking hangs and thread cancellation
...
crashes.
13 years ago
Con Kolivas
5e2e2f282d
Only use GPU management menu item if GPU threads exist.
13 years ago
Con Kolivas
a51514d9d1
White space cleanup.
13 years ago
Con Kolivas
eee665895d
Save config options for GPUs only if there are GPU devices.
13 years ago
Con Kolivas
291f1749d0
Ensure the correct pool information goes with the longpoll work item.
13 years ago
Con Kolivas
ae78620292
Show which pool is unresponsive on startup.
13 years ago
Con Kolivas
c786ac3b2a
Prevent crash from statline dereference if cgminer is quit before setting up fully.
13 years ago
Con Kolivas
acf88e0da4
Kill off the longpoll thread in kill_work only if have_longpoll is true.
13 years ago
Con Kolivas
8c066c4257
If have_longpoll is enabled, then make it mandatory the longpoll thread is killed from the outside, avoiding the race of trying to kill off a longpoll
...
thread that has potentially exited already.
13 years ago
Kano
d80e0ef4ce
Cleanup API thread if it exits early
13 years ago
Con Kolivas
9d36ee9b40
Do not add blank lines when there are less cpu threads enabled than processors.
13 years ago
Con Kolivas
78c89dc7ba
Move longpoll with changes to current active pool, selecting most suitable source for longpoll, or using any backup pool that has longpoll.
...
Actively stop longpoll if we already have longpoll running and have initiated a longpoll restart.
Make the longpoll activation notification warning level to make the switch visible.
Change lp_url to alloca to not lose malloced ram.
13 years ago
Con Kolivas
e75c8ec8de
Fix for non-adl configuration files.
13 years ago
Kano
f32a07250f
DOC related updates
13 years ago
Kano
50a0892254
2.0.8x Full GPU stats, descriptive field names and --api-description
13 years ago
Kano
45ebf2c5b4
Fix threading issues and bugs
13 years ago
Kano
d234b857ff
API v0.2 Added GPU commands and improved messages
13 years ago
Kano
df3fad3dbc
Add API options for port and listen mode
13 years ago
Kano
49532277df
Add summary command
13 years ago
Kano
2358056606
API v0.1
13 years ago
Con Kolivas
0638155c37
Don't load the default config if a config file is specified on the command line.
13 years ago
Con Kolivas
a70629a701
Make longpoll do a mandatory flushing of all work even if the block hasn't changed, thus supporting longpoll initiated work change of any sort and
...
merged mining.
13 years ago
Forrest Voight
e01d6941c1
Byteswap computed hash in hashtest so it can be correctly checked
13 years ago
Con Kolivas
8c63061eaa
Allow a fixed speed difference between memory and GPU clock speed that will change memory speed when GPU speed is changed in autotune mode.
13 years ago
Con Kolivas
9a0b709623
Update documentation about new configuration file with an example file.
13 years ago
Con Kolivas
6d004ddfad
Write unix configuration to .cgminer/cgminer.conf by default and prompt to overwrite if given a filename from the menu that exists.
13 years ago
Con Kolivas
09f6736ab0
Style cleanups.
13 years ago
Con Kolivas
31d3af0223
Support new configuration file format courtesy of Chris Savery which can write the config file from the menu and will load it on startup.
13 years ago