1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 23:37:54 +00:00
Commit Graph

4013 Commits

Author SHA1 Message Date
ckolivas
68d691093c Move to storing the nonce1 in the work struct instead of the sessionid for the now defunct first draft mining.resume protocol. 2013-02-22 12:55:01 +11:00
Con Kolivas
7f595ca04b Use global constant arrays for all other constants used in scrypt kernel. 2013-02-21 22:11:36 +11:00
Con Kolivas
9b6a518acf Use global __constants for sha functions in scrypt kernel. 2013-02-21 21:51:49 +11:00
Con Kolivas
6bb942ffe5 Use constants for endian swap macros. 2013-02-21 21:34:48 +11:00
Con Kolivas
f08c3f766d Revise scrypt kernel copyright notice. 2013-02-21 21:17:19 +11:00
Con Kolivas
3d032ce615 Separate out additions in scrypt kernel. 2013-02-21 21:13:02 +11:00
Con Kolivas
9136bfc829 Merge pull request #388 from kanoi/bflsc
BFL stop 1st init command if no device
2013-02-21 01:06:57 -08:00
Con Kolivas
64f2c065a6 Reuse some Vals[] variables that can be assigned to constants earlier in the poclbm kernel, making for fewer ops. 2013-02-21 12:05:26 +11:00
Con Kolivas
19725e7cdb Put all constants used in poclbm kernel into __const memory array to speed up concurrent reads on the wavefront. 2013-02-21 12:04:01 +11:00
Kano
3515b6e2e6 BFL stop 1st init command if no device 2013-02-21 07:35:39 +11:00
Kano
add1dfbe04 Merge remote-tracking branch 'conman/queued_work' into test 2013-02-20 03:25:25 +11:00
Con Kolivas
fce5434975 Add a get_queued function for devices to use to retrieve work items from the queued hashtable. 2013-02-18 14:14:10 +11:00
ckolivas
f910476daa Merge branch 'usb-dev' into queued_work 2013-02-17 00:10:59 +11:00
ckolivas
22a50a5a0f Merge branch 'usb-dev' of github.com:ckolivas/cgminer into usb-dev 2013-02-17 00:10:36 +11:00
Con Kolivas
a7859bb416 Merge pull request #386 from luke-jr/bugfix_20130215a
Bugfix: Missing pool_no parameter to applog for no-stratum-sessionid debug message
2013-02-16 03:52:06 -08:00
Con Kolivas
4fdd45af6b Merge pull request #387 from luke-jr/bugfix_20130215b
Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free
2013-02-16 03:51:33 -08:00
Luke Dashjr
0847d45867 Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free 2013-02-16 06:46:00 +00:00
Luke Dashjr
7473c3dc94 Bugfix: Missing pool_no parameter to applog for no-stratum-sessionid debug message 2013-02-16 05:06:38 +00:00
Kano
4266245afe Merge remote-tracking branch 'conman/master' into bflsc 2013-02-16 14:15:17 +11:00
Con Kolivas
fda6d46e95 Add the choice of hash loop to the device driver, defaulting to hash_sole_work if none is specified. 2013-02-16 14:09:44 +11:00
Con Kolivas
254e25ac7f Add comments. 2013-02-16 14:03:40 +11:00
Con Kolivas
c80c65eac0 Add a driver specific flush_work for queued devices that may have work items already queued to abort working on them on the device and discard them. 2013-02-16 12:38:53 +11:00
Con Kolivas
294cda2eb2 Flush queued work on a restart from the hash database and discard the work structs. 2013-02-16 12:35:16 +11:00
Con Kolivas
e8e88beff1 Create a central point for removal of work items completed by queued device drivers. 2013-02-16 12:28:50 +11:00
Con Kolivas
95b2020263 Create a fill_queue function that creates hashtables of as many work items as is required by the device driver till it flags the queue full. 2013-02-16 12:14:13 +11:00
Con Kolivas
5e3253a7cf Create the hash queued work variant for use with devices that are fast enough to require a queue. 2013-02-16 11:54:05 +11:00
Con Kolivas
649f2939f7 Update copyright year. 2013-02-16 09:09:44 +11:00
Con Kolivas
0b83313161 Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle, not opt_log_interval. 2013-02-16 09:08:19 +11:00
Con Kolivas
e414cd055c Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle, not opt_log_interval. 2013-02-16 09:07:33 +11:00
Con Kolivas
ab0cc58cb4 Merge branch 'master' into usb-dev 2013-02-15 23:15:11 +11:00
Con Kolivas
0f7ab3670c Only continue submitting shares with mining.resume support on stratum when the session id matches. 2013-02-15 23:11:13 +11:00
Con Kolivas
be4705a003 Provide support for mining.resume with stratum, currently re-authorising after successful resumption pending finalising of the protocol process. 2013-02-15 23:05:29 +11:00
Con Kolivas
4cde791e9f Provide basic framework for restarting stratum depending on whether resume support exists or not. 2013-02-15 21:31:44 +11:00
Con Kolivas
c29df9760f Abstract out the setting up of the stratum curl socket. 2013-02-15 21:03:39 +11:00
Con Kolivas
16c7c983ae Free sessionid in clean_work and remove redundant setting of strings to NULL since the whole work struct is zeroed. 2013-02-15 20:27:07 +11:00
Con Kolivas
8fdf6d5c64 Only clear stratum shares mandatorily on stratum dropouts when the pool does not support resume. 2013-02-15 18:34:54 +11:00
Con Kolivas
f60637c3f9 Try resubmitting stratum shares every 5 seconds for up to 2 minutes if the pool session id exists and matches on failure to submit. 2013-02-15 17:48:13 +11:00
Con Kolivas
7e8019acdd Do as much outside of mutex locking of sshare_lock as possible. 2013-02-15 16:13:24 +11:00
Con Kolivas
7551b88d00 Remove last reference to struct work used outside the sshare_lock in submit_work_thread 2013-02-15 16:09:36 +11:00
Con Kolivas
ebb99e5a8d Unlock the sshare_lock in submit_work_thread when all references to work and sshare are complete. 2013-02-15 16:05:21 +11:00
Con Kolivas
1bf1f4a217 Add timestamps to stratum_share structs as they're generated and copy the stratum sessionid if it exists to stratum work generated. 2013-02-15 15:36:29 +11:00
Con Kolivas
c851f39598 Store session id for stratum if the pool supports it for future mining.resume support. 2013-02-15 14:46:30 +11:00
Con Kolivas
040cf6d3b8 Merge pull request #385 from kanoi/hotplug
API.java allow partial reads
2013-02-14 13:28:36 -08:00
Kano
00be617ce1 API.java allow partial reads 2013-02-15 01:36:50 +11:00
Con Kolivas
48c841318e Merge pull request #384 from kanoi/hotplug
debug_cb buffer type warning
2013-02-12 22:48:54 -08:00
Con Kolivas
77d1496b58 Merge branch 'usb-dev' of github.com:ckolivas/cgminer into usb-dev 2013-02-13 17:47:43 +11:00
Kano
c432c655f7 debug_cb buffer type warning 2013-02-13 14:50:55 +11:00
Con Kolivas
a691cc5574 Merge pull request #383 from kanoi/hotplug
MMQ rewrite the last of the old scanhash loop and drastically reduce CPU
2013-02-12 17:06:40 -08:00
Kano
b9968156ba MMQ rewrite the last of the old scanhash loop and drastically reduce CPU 2013-02-13 11:15:20 +11:00
Con Kolivas
20b5ebbc95 hash_sole_work can be static 2013-02-11 15:28:41 +11:00