miner.h


Log

Author Commit Date CI Message
Kano fc14b2ee 2012-10-17T09:56:42 MMQ new initialisation (that works) and clocking control
Con Kolivas 7450b25e 2012-10-14T12:07:27 Dramatically simplify the dynamic intensity calculation by oversampling many runs through the opencl kernel till we're likely well within the timer resolution on windows.
Con Kolivas 420fdf32 2012-10-12T14:17:29 Display the actual share diff next to the pool required diff, using a suffix creation function to prevent values of >1000 being shown in their entirety.
Con Kolivas d15c70f8 2012-10-12T11:30:35 Fix wrong byteswap macro being used on mingw32 which was breaking target generation on stratum.
Con Kolivas a977fa47 2012-10-11T20:46:04 Fix lack of htobe64 on mingw32.
Con Kolivas 4fbc570f 2012-10-11T20:30:47 Reinstate the history on dynamic intensity mode to damp fluctuations in intensity but use an upper limit on how much the value can increase at any time to cope with rare overflows.
Con Kolivas 0a902071 2012-10-07T13:22:17 Merge branch 'master' into stratum
Con Kolivas aa35fbcc 2012-10-07T10:21:20 Fix sign warning in ocl.c
Con Kolivas 40b747ba 2012-10-07T10:00:02 Put scrypt warning on separate line to avoid 0 being shown on windows as bufsize.
Con Kolivas a8d69302 2012-10-05T12:37:29 Move stratum sockets to curl infrastructure with locking around send+recv to begin support for proxies and ssl.
Con Kolivas deb0a9b6 2012-10-04T23:18:33 Windows doesn't work with MSG_PEEK on recv so move to a continuously updating buffer for incoming messages.
Con Kolivas c113534f 2012-10-04T15:35:28 Begin support for mingw stratum build. Conflicts: configure.ac
Con Kolivas 2fae9064 2012-10-03T21:10:30 Don't try to parse unneeded parameters in response to mining.subscribe.
Con Kolivas 284b786d 2012-10-03T11:18:08 Check the stratum pool difference has not changed compared to the work diff when testing whether a share meets the target or not and retarget if necessary.
Con Kolivas fdaabf59 2012-10-03T00:35:08 Make target on stratum scale to any size by clearing sequential bits according to diff.
Con Kolivas 2941febd 2012-10-02T00:00:55 Store a sockaddr url of the stripped url used in determining sockaddr to not confuse it with the stratum url and fix build warnings.
Con Kolivas b97a33a5 2012-10-01T14:44:44 Use statically allocated stratum strings in struct work to cope with the inability to safely deallocate dynamically allocated ram.
Con Kolivas 7415d7aa 2012-09-29T16:10:13 Begin implementing a hash database of submissions and attempt sending results.
Con Kolivas aa93fa33 2012-09-29T15:02:23 Copy parameters from stratum work required for share submission.
Con Kolivas ac47f7f3 2012-09-29T14:16:16 Store and display stripped url in its own variable.
Con Kolivas 3db6fb4f 2012-09-29T13:07:00 Create machinery to divert work requests to stratum.
Con Kolivas 1f6fe551 2012-09-29T02:16:22 Generate the coinbase for generation of stratum based work.
Con Kolivas 1f64491f 2012-09-29T01:48:01 The number of transactions is variable so make merkle a variable length dynamically allocated array and track how many there are for stratum.
Con Kolivas 1221a80d 2012-09-29T01:03:23 Rename nonce2 to n2size reflecting that it's a size variable and not the actual nonce.
Con Kolivas 56255a0c 2012-09-28T18:01:33 Create a stratum thread per pool that has stratum that monitors the socket and serves received data.
Con Kolivas 9d4a44e8 2012-09-28T09:57:42 Create helper functions for duplicating json strings to avoid keeping json references in use.
Con Kolivas a6f1a622 2012-09-28T04:35:16 Create helper functions for checking when a socket is ready to read on and receive a single line at a time. Begin stratum authorisation process.
Con Kolivas 64df34cd 2012-09-27T13:26:09 Create a stratum work structure to store current work variables.
Con Kolivas f6f43500 2012-09-27T09:06:56 Detect stratum in common place when adding urls, and use a bool to tell us when it's active.
Con Kolivas e3f1b02e 2012-09-26T16:49:51 Extract and store various parameters on stratum init confirming successful mining notify.
Con Kolivas 58873c1d 2012-09-25T20:23:59 Get detailed addressinfo from the parsed URL for future raw socket usage when possible. IPV4 only for now.
Con Kolivas 144a0160 2012-09-24T16:50:04 Add data structures to pool struct for socket communications.
Kano 7c32562d 2012-09-24T11:34:50 API stats add some pool getwork difficulty stats
Con Kolivas 57a73dce 2012-09-24T08:30:07 Test for sequential getwork failures on a pool that might actually be up but failing to deliver work as we may end up hammering it repeatedly by mistake.
Con Kolivas 3243b91e 2012-09-20T23:23:15 Merge pull request #310 from kanoi/master API debug, API-README, API Correct diff1 name, Device diff1, API diff1 etc.
Con Kolivas 61899902 2012-09-21T16:10:34 As we average gpu time over 5 work intervals for dynamic GPU intensity, there is no need to maintain a rolling average and it avoids the potential long term corruption of a single overflow value.
Kano a6bf276f 2012-09-19T01:14:43 API - Add last share difficulty for devices and pool
Kano 89b6989f 2012-09-19T00:54:55 Store and report Accepted,Rejected,Stale difficulty in the summary and API
Kano 923b9e0d 2012-09-18T11:19:57 Calculate work difficulty for each getwork and display with WorkTime debug
Kano 796f3906 2012-09-16T07:57:43 WorkTime - multiple nonce per work and identify the work source
Kano bd3c98aa 2012-09-15T14:04:57 Optional WorkTime details with each Accepted/Rejected work item
Kano 99f0607f 2012-09-12T23:26:43 API add display of and setting queue,scantime,expiry
Kano cef9731f 2012-09-12T07:44:00 CURL support for individual proxy per pool and all proxy types
Kano 307d8da0 2012-09-04T15:57:11 HW: error counter auto for all devices - ztex code not fixed
Kano 9487ba05 2012-09-04T12:52:11 API/BFL identify a device - currently only BFL to flash the led
Kano 7a2407f1 2012-09-04T02:26:17 BFL add throttle count to internal stats + API
Kano 4023872b 2012-09-01T23:51:51 count device diff1 shares
Kano a178039a 2012-08-30T23:22:37 miner.h max_hashes -> int64_t
Con Kolivas 3acc064b 2012-08-23T07:50:28 Merge pull request #306 from kanoi/api Pools: add RollTime info to API 'stats' and 'Stats' button in miner.php (to display it)
Con Kolivas 618b3e8b 2012-08-23T23:50:38 Track queued and staged per pool once again for future use.
Kano d5f485c5 2012-08-23T19:20:12 Pools: add RollTime info to API 'stats' and 'Stats' button in miner.php
ckolivas edd9b816 2012-08-22T10:07:20 Do not add time to dynamic opencl calculations over a getwork.
Kano b3e9858c 2012-08-20T16:07:20 API new command 'coin' with mining information
Kano 9210abdf 2012-08-19T15:09:45 API V1.17 show Work Utility and Diff1 Shares
Con Kolivas 26ab7346 2012-08-18T15:27:53 Implement a new pool strategy, BALANCE, which monitors work performed per pool as a rolling average every 10 minutes to try and distribute work evenly over all the pools. Do this by monitoring diff1 solutions to allow different difficulty target pools to be treated equally, along with solo mining. Update the documentation to describe this strategy and more accurately describe the load-balance one.
Con Kolivas d8c76bbd 2012-08-18T11:26:11 Getwork fail was not being detected. Remove a vast amount of unused variables and functions used in the old queue request mechanism and redefine the getfail testing.
Con Kolivas c3e32274 2012-08-16T10:41:01 Cull all the early queue requests since we request every time work is popped now.
Con Kolivas 5fadfdb2 2012-08-16T09:19:45 Overlap queued decrementing with staged incrementing.
Con Kolivas 611f1cec 2012-08-15T22:48:08 Roll work whenever we can on getwork.
Con Kolivas fd0be1bb 2012-08-15T22:28:09 Queue requests for getwork regardless and test whether we should send for a getwork from the getwork thread itself.
Con Kolivas 2480cf23 2012-08-15T10:54:38 Don't try to get bitforce temperature if we're polling for a result to minimise the chance of interleaved responses.
Con Kolivas 8745ba1e 2012-08-15T09:38:45 Windows' timer resolution is limited to 15ms accuracy. This was breaking dynamic intensity since it tries to measure below this. Since we are repeatedly sampling similar timeframes, we can average the gpu_us result over 5 different values to get very fine precision.
Kano 95dff736 2012-08-14T12:54:27 API allow display/change failover-only setting
Con Kolivas 8aa61f66 2012-08-11T16:47:49 Make sure we have work from the current pool somewhere in the queue in case the queue is full of requests from a pool that has just died.
Con Kolivas 8085ae68 2012-08-11T14:04:55 Further simplify the queue request mechanism.
Con Kolivas 3576abf8 2012-08-05T15:43:27 Make pool_disabled the first in the enums == 0, fixing the pool enabled count which compares if value is not enabled before enabling it.
Con Kolivas fc44b6d7 2012-08-05T15:32:44 Use different variables for command line specified lookup gap and thread concurrency to differentiate user defined versus auto chosen values.
Con Kolivas bf9c3247 2012-08-05T13:40:46 The queueing mechanism has become a complex state machine that is no longer predictable. Rewrite it from scratch watching only current queues in flight and staged work available on a pool by pool basis.
Con Kolivas b70ec3cb 2012-08-02T17:17:53 Merge pull request #283 from kanoi/icarus ICA support 57600 baud rate, up to 8 FPGA and partial working FPGA boards
Con Kolivas 7fa794a4 2012-08-03T09:26:43 It is not critical getting the temperature response in bitforce so don't mandatorily wait on the mutex lock.
Kano e067be42 2012-08-01T22:50:30 ICA support 57600 baud rate, up to 8 FPGA and partial working FPGA boards
Con Kolivas c91148f1 2012-07-30T09:02:23 Remove the low hash count determinant of hardware being sick. A low hash rate can be for poor network connectivity or scrypt mining, neither of which are due to sick hardware.
Con Kolivas 500ed85b 2012-07-29T03:46:49 Merge pull request #271 from luke-jr/cg_logfixes Logging bugfixes
Con Kolivas e87ff7c1 2012-07-29T13:15:39 Keep a counter of enabled pools and use that instead of iterating over the pool list. Use that value to ensure we don't set the last remaining active pool to the rejecting state.
Con Kolivas 9a6c082a 2012-07-24T20:27:37 Make the thread concurrency and lookup gap options hidden on the command line and autotune parameters with a newly parsed --shaders option.
Luke Dashjr da4ff2bd 2012-07-23T20:22:01 Bugfix: Use a mutex to control non-curses output Without this, there is no guarantee writes won't overlap (and it happens quite a bit on Windows with the bitforce driver)
Luke Dashjr d98e561a 2012-07-23T20:15:45 Simplify code to a single vprintf path for curses-less printing
Luke Dashjr 80593c47 2012-07-23T19:56:03 Move opt_quiet check to my_log_curses, so it works for curses-less builds
Con Kolivas 89eb1fa3 2012-07-23T17:41:31 Check the maximum allocable memory size per opencl device.
Con Kolivas 17dfe74f 2012-07-22T00:49:47 Allow intensities up to 20 if scrypt is compiled in.
Con Kolivas 39f7d2fa 2012-07-21T17:31:06 Allow lookup gap and thread concurrency to be passed per device and store details in kernel binary filename.
Con Kolivas 6ac14f42 2012-07-16T13:14:21 Don't enqueuewrite buffer at all for pad8 and pass work details around for scrypt in dev_blk.
Con Kolivas 0f43eb5e 2012-07-13T20:35:44 Don't test nonce with sha and various fixes for scrypt.
Con Kolivas b085c338 2012-07-13T20:28:36 Make scrypt buffers and midstate compatible with cgminer.
Con Kolivas dd740caa 2012-07-13T19:02:43 Provide initial support for the scrypt kernel to compile with and mine scrypt with the --scrypt option.
Con Kolivas 5a65415b 2012-07-13T14:47:02 Enable completely compiling scrypt out.
Con Kolivas 176cdf8b 2012-07-13T14:44:52 Begin import of scrypt opencl kernel from reaper.
Con Kolivas c1c99f1d 2012-07-12T23:09:05 Merge https://github.com/pshep/cgminer into pshep
Paul Sheppard d4d5b28e 2012-07-11T14:46:09 Abbrv. correction
Luke Dashjr c57c308d 2012-07-11T20:29:06 Bugfix: Don't declare devices SICK if they're just busy initializing This mainly applies to ModMiner since it takes 4-5 minutes to upload the bitstream
Paul Sheppard 5f0a22d2 2012-07-11T08:32:41 Remove superfluous ave_wait
Paul Sheppard 2c54522d 2012-07-11T08:11:53 Add average wait time to api stats
Paul Sheppard 01a69ee4 2012-07-11T08:07:39 Revert "Merge branch 'ave_time' of https://github.com/pshep/cgminer.git" This reverts commit 242e52cdf902aabd124e600a65b7d7140b11fef0, reversing changes made to 4dc1bf2319daf5d8eae3a486e2bbbaa3ed00c88b.
ckolivas 5c7e0308 2012-07-11T22:59:58 Modify te scanhash API to use an int64_t and return -1 on error, allowing zero to be a valid return value.
Paul Sheppard 3cc0aa76 2012-07-10T15:34:01 Add average return time to api stats
Paul Sheppard 953ecd9e 2012-07-08T23:25:02 Change timeouts to time-vals for accuracy.
Con Kolivas 2ce7f28b 2012-07-08T04:24:55 Merge pull request #254 from luke-jr/work_restart2 Turn work_restart array into a bool in thr_info
Con Kolivas fd55fab9 2012-07-06T16:54:00 Make bitforce nonce range support a command line option --bfl-range since enabling it decrease hashrate by 1%.
Luke Dashjr d4af2d05 2012-07-06T02:39:32 Turn work_restart array into a bool in thr_info
Con Kolivas 3271be14 2012-07-06T15:01:39 Provide a ms based sleep function that uses nanosleep to avoid the inaccuracy of usleep on SMP systems.