1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00
Commit Graph

1148 Commits

Author SHA1 Message Date
Con Kolivas
b9aa5b6528 Check for cnx_needed on each loop through wait_lp_current. 2013-08-21 20:31:10 +10:00
Con Kolivas
919a836f14 Return positive for cnx_needed when no_work is true. 2013-08-21 20:29:46 +10:00
Con Kolivas
7dbe4bbeb3 Stratum is used more often so test for it first. 2013-08-21 20:12:00 +10:00
Con Kolivas
a52ec336bf Reorder support names alphabetically. 2013-08-21 20:09:17 +10:00
ckolivas
77f9400ca2 Only display the no pool work message once if there are multiple waiters in hash_pop 2013-08-21 12:15:40 +10:00
ckolivas
20de9226fd Provide a message and set a bool when no work is available from any pools and when it resumes again. 2013-08-21 11:21:13 +10:00
ckolivas
0e43084c09 We don't want to continue into the hash_pop function if the getq is frozen. 2013-08-21 11:05:21 +10:00
ckolivas
cbea0a5306 Only report threads in and out in queued work devices across a get work since the rest happens asynchronously and the get work is what the device might be waiting on. 2013-08-21 10:56:31 +10:00
ckolivas
b12badc9f2 Thread reportin and out can be static non inline. 2013-08-21 10:47:32 +10:00
Con Kolivas
ee2a5ae8f4 TimeBeginPeriod and TimeEndPeriod do not add significant overhead when run the entire time for cgminer so avoid trying to maintain balanced numbers of them for specific time calls to simplify code. 2013-08-20 20:46:09 +10:00
Con Kolivas
eeac9d81fc Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements. 2013-08-20 19:23:49 +10:00
Con Kolivas
78d78b1063 Import Aaron D. Gifford's fast sha256 implementation. 2013-08-19 19:10:41 +10:00
Con Kolivas
a61e41a070 Check for thr->work_restart in restart_wait. 2013-08-19 15:58:22 +10:00
Con Kolivas
98e338cc52 Provide a variant of find_work_bymidstate that returns a clone of the found work. 2013-08-14 23:05:13 +10:00
Con Kolivas
e95ad0479f Nonce2 stratum submission is not working with nonce2 lengths >4, revert the buggy __bin2hex function and use bin2hex. 2013-08-13 22:44:22 +10:00
Con Kolivas
1d614599a7 Add room for the null byte at the end of the nonce2 string on stratum share submission and zero the allocated ram. 2013-08-13 14:35:35 +10:00
Con Kolivas
c8aac74114 Only perform the bin2hex on nonce2 data if it's required for stratum submission, thereby removing the last conversion of that type from stratum work generation. 2013-08-13 06:09:42 +10:00
Con Kolivas
87ae66c7e6 Create a work data template when receiving stratum notification, allowing a simple memcpy of the merkle root avoiding more hex2bin conversions on each work generation. 2013-08-13 05:49:32 +10:00
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