Con Kolivas
|
34bc106d82
|
Export the workpadding char in miner.h
|
2013-08-13 04:57:04 +10:00 |
|
Con Kolivas
|
46b6b07afa
|
Avoid a potential overflow should a pool specify a large nonce2 length with stratum.
|
2013-08-12 16:02:20 +10:00 |
|
Con Kolivas
|
0379123bc1
|
Avoid one more hex2bin in gen stratum work.
|
2013-08-12 15:32:45 +10:00 |
|
Con Kolivas
|
11bcf2b3fb
|
Rename work gbt_coinbase to coinbase to be in line with pool variable name.
|
2013-08-12 11:40:17 +10:00 |
|
Con Kolivas
|
5237bf350d
|
Perform merkle bin hex2bin on stratum notify to avoid doing it on each work generation.
|
2013-08-12 11:36:28 +10:00 |
|
Con Kolivas
|
8bc469e916
|
Reuse just the one pool coinbase variable in stratum, avoiding more string functions and storage in gen_stratum_work on each work generation.
|
2013-08-12 11:16:46 +10:00 |
|
Con Kolivas
|
8c8ef6ff9b
|
Rename pool gbt_coinbase variable to coinbase to combine it with the stratum coinbase data.
|
2013-08-12 10:58:43 +10:00 |
|
Con Kolivas
|
c542e47aa3
|
Use a nonce2 offset variable for both gbt and stratum to consolidate requirements on work generation.
|
2013-08-12 10:49:38 +10:00 |
|
Con Kolivas
|
fb94dfa098
|
Cache as much of the gbt coinbase as possible to avoid doing unnecessary hex2bin conversion on every work generation with gbt.
|
2013-08-12 01:15:22 +10:00 |
|
Con Kolivas
|
a1052188fd
|
We should be using a cg_wlock initially in generating stratum and gbt work before downgrading the lock.
|
2013-08-12 00:27:22 +10:00 |
|
Con Kolivas
|
b423fe9de8
|
Cache the hex2bin of pool nonce1 in stratum, avoiding hex2bin on each work generation.
|
2013-08-11 14:06:17 +10:00 |
|
Con Kolivas
|
fef649dfef
|
Cache the binary generation of coinbase1 and 2 on stratum, avoiding a hex2bin of coinbase1 and 2 on each work generation.
|
2013-08-11 13:47:46 +10:00 |
|
Con Kolivas
|
580b77b757
|
Fix warning.
|
2013-08-09 21:52:54 +10:00 |
|
Con Kolivas
|
106e461f21
|
Recreate curses windows on windows when a device is hotplugged to allow window resizing without crashing.
|
2013-08-09 16:57:16 +10:00 |
|
Con Kolivas
|
2b171f7fae
|
Limit intensity range according to whether scrypt is in use or not.
|
2013-08-09 15:12:57 +10:00 |
|
Con Kolivas
|
cb6d62de08
|
Do not allow benchmark mode to be used with scrypt.
|
2013-08-09 06:48:59 +10:00 |
|
Con Kolivas
|
d71e9f91f4
|
Add a --bflsc-overheat command which allows you to set the throttling temperature for BFLSC devices or disable it.
|
2013-08-09 06:43:25 +10:00 |
|
Con Kolivas
|
812852cc36
|
Move bflsc defines to a header file.
|
2013-08-09 06:31:57 +10:00 |
|
kanoi
|
8dc0935639
|
Merge pull request #467 from someone42/master
Support for BitBurner boards
|
2013-08-05 01:18:51 -07:00 |
|
Olivier Langlois
|
c31ff57277
|
remove unnecessary memcpy
The next operation is flipping the merkleroot on the same
destination.
Signed-off-by: Olivier Langlois <olivier@olivierlanglois.net>
|
2013-07-29 23:53:20 -04:00 |
|
Chris Chua
|
dc4ca0de97
|
using more concise description
|
2013-07-30 00:15:45 +10:00 |
|
Chris Chua
|
b0f4d55be7
|
changes to Avalon driver for BitBurner boards
|
2013-07-29 21:39:29 +10:00 |
|
Kano
|
a8c974f5f1
|
set device_drv function noops when first add_cgpu
|
2013-07-18 08:51:08 +10:00 |
|
Kano
|
a9e10988ed
|
force type checking on curses
|
2013-07-06 22:08:17 +10:00 |
|
Kano
|
74d71cce2c
|
cgminer - size check all sprintf
|
2013-07-06 20:47:49 +10:00 |
|
Kano
|
ad1572f77f
|
size check get_datestamp/get_timestamp and remove unused cgpu->init
|
2013-07-06 20:17:17 +10:00 |
|
Kano
|
385a70bea7
|
make all statline overflow safe
|
2013-07-06 19:15:59 +10:00 |
|
Kano
|
df05174e1d
|
WU only needs +2 width
|
2013-07-05 18:26:18 +10:00 |
|
Con Kolivas
|
42d96ee7fe
|
Convert the decay_time function into one that truly creates an exponentially decaying average over opt_log_interval.
|
2013-07-02 20:41:44 +10:00 |
|
Con Kolivas
|
065b6a5e36
|
Provide an --avalon-freq command line to give a valid range of frequencies for avalon in auto mode.
|
2013-07-01 15:38:15 +10:00 |
|
Con Kolivas
|
f142a4de23
|
Allow the avalon fanspeed range to be passed as parameter on the command line, default to 20-100%
|
2013-07-01 10:41:22 +10:00 |
|
Con Kolivas
|
1b81ecf932
|
Just display A: and R: for difficulty accepted and rejected to preserve screen real estate and decrease decimal places for WU.
|
2013-06-30 15:51:46 +10:00 |
|
Kano
|
a94b7be3bc
|
correct device DR: and remove global U:
|
2013-06-29 08:41:22 +10:00 |
|
Kano
|
800dc24916
|
Update all screen A/R to instead use DA/DR and device U to WU
|
2013-06-29 01:43:18 +10:00 |
|
Con Kolivas
|
e811c4dc77
|
Add an avalon-auto option which enables dynamic overclocking based on hardware error rate for maximum effective hashrate.
|
2013-06-26 00:15:04 +10:00 |
|
Con Kolivas
|
9b45daba6b
|
Add an --avalon-cutoff feature which puts the avalon idle should it reach this temperature, defaulting to 60, re-enabling it when it gets to target temperature.
|
2013-06-25 19:39:42 +10:00 |
|
Con Kolivas
|
661a448ad8
|
Fix build warning.
|
2013-06-24 12:47:04 +10:00 |
|
Con Kolivas
|
1fca632f7c
|
Add an --avalon-temp option to allow a user specified target temperature.
|
2013-06-24 11:04:02 +10:00 |
|
Con Kolivas
|
2ab7dac243
|
Demote the invalid nonce warning to log info.
|
2013-06-23 17:03:59 +10:00 |
|
Con Kolivas
|
94e636a906
|
Only update hashmeter if we have done hashes or haven't updated longer than the log interval, fixing a us/ms error.
|
2013-06-21 17:02:13 +10:00 |
|
Con Kolivas
|
ccfa893577
|
Increase watchdog sick time to longer than it takes for a pool to be detected dead.
|
2013-06-19 13:20:25 +10:00 |
|
Kano
|
e300e50281
|
disable curses device resize that crashes on windows
|
2013-06-19 11:59:28 +10:00 |
|
Con Kolivas
|
e0c4d35b28
|
Multiplier fail for microseconds vs milliseconds when updating hashmeter in hash_queued_work.
|
2013-06-18 20:59:45 +10:00 |
|
Con Kolivas
|
6eb7f6226a
|
Only make threads report in/out across the actual driver code and update their status on reporting out as well as in.
|
2013-06-18 20:30:48 +10:00 |
|
Con Kolivas
|
7014bd6b8b
|
Difficulty should be unconditionally byteswapped, not swapped to big endian.
|
2013-06-17 21:20:36 +10:00 |
|
Kano
|
7eba963477
|
remove varargs from logging/quit/in general as much as possible
|
2013-06-15 22:03:56 +10:00 |
|
Con Kolivas
|
6789c96fd4
|
Off by one error in device count for display.
|
2013-06-15 01:37:00 +10:00 |
|
Con Kolivas
|
994c0245c0
|
Don't display devices beyond the most_devices count in the curses status.
|
2013-06-15 01:31:37 +10:00 |
|
Con Kolivas
|
cd9ff7f6b8
|
Only display as many device rows as the maximum live existed at any time.
|
2013-06-15 01:28:00 +10:00 |
|
Kano
|
7ad9132bbe
|
usb lock out use cg locks
|
2013-06-15 01:02:27 +10:00 |
|
Kano
|
ad30d41f79
|
usb lock out transfers during open/close
|
2013-06-14 23:48:03 +10:00 |
|
Con Kolivas
|
42891f07a7
|
Merge pull request #444 from zenwheel/master
Compile UNIX conditionals on Mac OS X
|
2013-06-13 16:59:06 -07:00 |
|
ckolivas
|
465ca14236
|
Only show efficiency in pool information for pools that don't support local work generation.
|
2013-06-14 09:57:05 +10:00 |
|
ckolivas
|
9aeed2f992
|
Create a pool_localgen bool function for testing when a pool can generate work locally.
|
2013-06-14 09:56:22 +10:00 |
|
Scott Jann
|
16587dd7c1
|
compile unix code on Mac OS X
fixes not finding the config file in $HOME
|
2013-06-13 18:50:50 -05:00 |
|
Kano
|
84ffcbc51b
|
Use mining start time for device MH/U calculations
|
2013-06-14 01:09:50 +10:00 |
|
Con Kolivas
|
24398bde03
|
cgsem_post after creating the thread info
|
2013-06-09 16:38:57 +10:00 |
|
ckolivas
|
9b2e517f30
|
Use cgsem structures instead of the flaky pings in the work queue to start mining threads and remove the unused thr_info_freeze function.
|
2013-06-09 12:20:04 +10:00 |
|
ckolivas
|
b59c33800b
|
Implement cgminer specific cgsem semaphores to imitate unnamed semaphore behaviour on osx which does not support them.
|
2013-06-06 13:08:00 +10:00 |
|
Con Kolivas
|
dd5788762f
|
Fix build for !curses
|
2013-06-04 21:49:28 +10:00 |
|
Con Kolivas
|
03305afbae
|
Remove start device limitation on log window size to allow it to get larger with hotplugged devices.
|
2013-06-03 16:49:15 +10:00 |
|
Con Kolivas
|
fc95c19165
|
Switch logsize after hotplugging a device.
|
2013-06-03 16:38:40 +10:00 |
|
Con Kolivas
|
cc9223f041
|
Change switch_compact function name to switch_logsize to be used for other changes.
|
2013-06-03 16:37:56 +10:00 |
|
Con Kolivas
|
514491bd0e
|
Only adjust cursor positions with curses locked.
|
2013-06-03 16:01:20 +10:00 |
|
Kano
|
12045aae55
|
devs display - fix GPU duplicate bug
|
2013-06-03 12:26:50 +10:00 |
|
Con Kolivas
|
5f2c4f13f9
|
Do not hotplug enable a device if devices have been specified and the hotplug device falls outside this range.
|
2013-06-03 11:28:18 +10:00 |
|
Con Kolivas
|
6e014b0f8e
|
Merge branch 'master' of github.com:ckolivas/cgminer
|
2013-06-03 11:10:10 +10:00 |
|
Con Kolivas
|
727184d6ef
|
Change the --device parameter parsing and configuration to use ranges and comma separated values.
|
2013-06-03 11:09:36 +10:00 |
|
Kano
|
9b756d7316
|
devs display - show ZOMBIEs after all others
|
2013-06-03 10:24:02 +10:00 |
|
Con Kolivas
|
c7ffa58b26
|
Check for pool_disabled in wait_lp_current
|
2013-06-02 20:36:49 +10:00 |
|
Con Kolivas
|
6fec07ab7e
|
Check for pool enabled in cnx_needed.
|
2013-05-31 23:10:46 +10:00 |
|
Con Kolivas
|
181ada4e5a
|
Merge branch 'usbdev'
Conflicts:
cgminer.c
|
2013-05-30 18:03:27 +10:00 |
|
Con Kolivas
|
6fa32c9246
|
Revert "Perform execv in a forked child process, waiting on the original to exit to allow resources to be released."
This reverts commit b0fa94d52a .
Loses control of the terminal.
|
2013-05-30 13:49:54 +10:00 |
|
Con Kolivas
|
78d6bee137
|
Inverted sem_init logic.
|
2013-05-30 12:03:16 +10:00 |
|
Con Kolivas
|
b0fa94d52a
|
Perform execv in a forked child process, waiting on the original to exit to allow resources to be released.
|
2013-05-30 12:00:17 +10:00 |
|
Con Kolivas
|
f4a9a8e60c
|
Do avalon driver detection last as it will try to claim any similar device and they are not reliably detected.
|
2013-05-30 11:43:25 +10:00 |
|
Con Kolivas
|
cc04d3abc7
|
Use a counting semaphore to signal the usb resource thread that it has work to do.
|
2013-05-30 11:01:29 +10:00 |
|
Con Kolivas
|
185cac3ee9
|
Set devices to disabled after they exit the hashing loops to prevent the watchdog thread from trying to act on them.
|
2013-05-29 23:30:27 +10:00 |
|
Con Kolivas
|
502c7bcb4e
|
Add avalon driver to hotplug.
|
2013-05-29 23:06:18 +10:00 |
|
ckolivas
|
99b117be47
|
Scanhash functions perform driver shutdown so don't repeat it.
|
2013-05-29 12:26:12 +10:00 |
|
ckolivas
|
5b9cf0f077
|
Send the shutdown message to threads and do the thread shutdown functions before more forcefully sending pthread_cancel to threads.
|
2013-05-29 12:06:06 +10:00 |
|
Con Kolivas
|
876e7e5893
|
Merge branch 'icarus-dev' into usbdev
Conflicts:
usbutils.h
|
2013-05-29 00:01:54 +10:00 |
|
Con Kolivas
|
6972ec62a7
|
Execute driver shutdown sequence during kill_work.
|
2013-05-28 23:33:32 +10:00 |
|
Kano
|
2f94ec8025
|
usb separate thread for resource locking and modified windows locking code
|
2013-05-27 23:30:18 +10:00 |
|
Con Kolivas
|
9650bfd6a3
|
Compile usbutils into avalon driver.
|
2013-05-27 14:58:08 +10:00 |
|
Con Kolivas
|
44736b3012
|
Make submit_nonce return a bool for whether it's a valid share or not.
|
2013-05-26 20:59:40 +10:00 |
|
Kano
|
1bb2cadfa6
|
thread shutdown is different on windows
|
2013-05-23 21:11:16 +10:00 |
|
Con Kolivas
|
000c01dcae
|
Create a logwin_update function which mandatorily updates the logwin and use it when input is expected to prevent display refresh delays.
|
2013-05-19 22:17:02 +10:00 |
|
Con Kolivas
|
a009f0422f
|
Must unlock curses as well in logwin_update.
|
2013-05-19 21:30:16 +10:00 |
|
Con Kolivas
|
01fca3e756
|
Create a logwin_update function which mandatorily updates the logwin and use it when input is expected to prevent display refresh delays.
|
2013-05-19 21:28:53 +10:00 |
|
Con Kolivas
|
bbb797067f
|
Check for *pth dereference on pthread_join
|
2013-05-19 19:34:12 +10:00 |
|
Con Kolivas
|
04d530f36a
|
Make mining threads report out during work submission.
|
2013-05-19 16:40:35 +10:00 |
|
Con Kolivas
|
bb3b227b9b
|
submit_work_async is no longer used directly by driver code.
|
2013-05-19 16:39:07 +10:00 |
|
Con Kolivas
|
ecd03cefb7
|
Properly pthread_join miner threads on shutdown.
|
2013-05-19 12:55:46 +10:00 |
|
Con Kolivas
|
894a3d64f0
|
Properly pthread_join miner threads on shutdown.
|
2013-05-19 12:55:20 +10:00 |
|
Con Kolivas
|
69f36358b1
|
Merge branch 'master' into icarus-dev
|
2013-05-19 11:36:18 +10:00 |
|
Con Kolivas
|
3a2008ac61
|
Use a persistent single separate thread for stratum share submission that uses workqueues since all stratum sends are serialised.
|
2013-05-19 11:25:45 +10:00 |
|
Con Kolivas
|
bd652a623e
|
Only allow the mining thread to be cancelled when it is not within driver code, making for cleaner shutdown and allowing us to pthread_join the miner threads on kill_work().
|
2013-05-18 16:57:13 +10:00 |
|
Con Kolivas
|
830f30ff2d
|
Only allow the mining thread to be cancelled when it is not within driver code, making for cleaner shutdown and allowing us to pthread_join the miner threads on kill_work().
|
2013-05-18 16:56:23 +10:00 |
|
Kano
|
fac3bf8722
|
add icarus to hotplug
|
2013-05-17 22:06:54 +10:00 |
|