Commit Graph

  • 86bc0426c6 Remove unused variable. Con Kolivas 2011-07-12 19:28:48 +1000
  • 10d66b2437 Fix isatty being undefined. Con Kolivas 2011-07-12 19:28:24 +1000
  • 941768e303 Bump version number. Con Kolivas 2011-07-12 19:22:45 +1000
  • 7b9b078114 Change get_work to use a timeout when trying to tq_pop as a sanity failsafe in case of unusual circumstances. Con Kolivas 2011-07-12 19:19:00 +1000
  • 222d4ee6bf Make curses completely inactivated in quiet mode and do not update curses code in wakeup thread when curses is inactive. Con Kolivas 2011-07-12 17:29:59 +1000
  • ad0be6cfbe Longpoll is not supposed to use POST and this could be leading to longpoll failures. Con Kolivas 2011-07-12 17:16:08 +1000
  • 76b233a544 Implement locking around curses updates to avoid screen corruption and refresh both windows fully regularly from the wakeup thread which wakes up infrequently to not be too cpu intensive. Con Kolivas 2011-07-12 17:03:13 +1000
  • 6d4476bba2 Use correct variable in initialisation. Con Kolivas 2011-07-12 00:54:42 +1000
  • c3566d3ffa Bump version number to clarify bugfixed nature. Con Kolivas 2011-07-12 00:36:06 +1000
  • ccf2ea914f Convert the log and status portions of the screen to two separate ncurses windows for simpler cleaner output. Con Kolivas 2011-07-12 00:33:08 +1000
  • c59e2ab8b6 Avoid possible divide by zero. Con Kolivas 2011-07-11 22:57:17 +1000
  • 43ef5f5d3f Get rid of the flaky time_lock and use the thread safe localtime_r instead. Con Kolivas 2011-07-11 22:45:19 +1000
  • c836b5bf01 Don't try to find where the cursor is and just set it to the last line for logcursor. Con Kolivas 2011-07-11 22:18:10 +1000
  • 231cd4fd9e va list needs to be copied as it's invalidated either way. Con Kolivas 2011-07-11 22:07:17 +1000
  • 73a864c51c vfprintf invalidates the va args so do it after the curses output. Con Kolivas 2011-07-11 21:56:34 +1000
  • a1ffba823e Refresh the display on every commit to applog since detecting bottom of the screen may be unreliable. Con Kolivas 2011-07-11 21:22:22 +1000
  • 78ed386bb4 Delay any threads from starting till everything is set up properly. Con Kolivas 2011-07-11 21:20:48 +1000
  • b93e6a4254 Show all devices even if only selected are enabled. Con Kolivas 2011-07-11 17:57:54 +1000
  • 505b18597b Merge https://github.com/ycros/cgminer into cgminer Con Kolivas 2011-07-11 16:56:28 +1000
  • 215ee79056 thr_id can be successful as -1 which is wrong and could lead to a crash. Con Kolivas 2011-07-11 16:52:18 +1000
  • 386489a147 Added support for pdcurses. Ycros 2011-07-11 14:56:17 +1000
  • 92e04f47cb Make clear for multiple GPUs. Con Kolivas 2011-07-11 13:46:01 +1000
  • 1549a3e9ea Bump version number for updated display. Con Kolivas 2011-07-11 13:42:22 +1000
  • 90839cdf5a Implement a completely curses based display and don't output to stderr when log is enabled unless it's redirected away from the terminal. Con Kolivas 2011-07-11 13:41:31 +1000
  • f12edd2fb8 Keep track of number of mining threads explicitly and only enforce that many work items on new block work. Con Kolivas 2011-07-10 23:07:53 +1000
  • 3565634198 Show communication error once only on failure. Con Kolivas 2011-07-10 22:32:17 +1000
  • 94fdff9a3e Fix help typo. Con Kolivas 2011-07-10 20:17:09 +1000
  • 75888a1f68 Implement device selection(s) with -d. Con Kolivas 2011-07-10 20:14:28 +1000
  • 4bb13bda68 Increment version number. Con Kolivas 2011-07-10 14:03:03 +1000
  • fbcd2942c8 Really correct the staged count logic failure. Con Kolivas 2011-07-10 14:02:23 +1000
  • 82cac38874 Logic failure meant the longpoll fake staged were never removed. This would lead to idle periods and may have even caused complete idle failures. Con Kolivas 2011-07-10 12:59:32 +1000
  • 8af98be7b9 Make the utility demonstrated relative to each device when showing per-device work submissions. Con Kolivas 2011-07-10 01:01:34 +1000
  • 6464dbfc65 Implement per-device request count to have a per-device efficiency and request status. Con Kolivas 2011-07-10 00:53:48 +1000
  • 0c910673b2 Set max preferred size to 256 to prevent lying cards from crashing when no worksize is set. Con Kolivas 2011-07-10 00:30:12 +1000
  • 3d9f244e02 Make all applog at least 80 columns wide obviating the need for spaces at the end of select messages to clear the status line. Con Kolivas 2011-07-09 17:30:54 +1000
  • 5e6b8076c6 Tidy output. Con Kolivas 2011-07-09 17:12:12 +1000
  • 1c92478997 Make sure to set first work as mandatory instead of generating work locally from it. Con Kolivas 2011-07-09 17:11:22 +1000
  • 102c4d4088 Give meaningful message on submission failure and resumption instead of spam. Con Kolivas 2011-07-09 17:06:30 +1000
  • cd8140a130 Merge https://github.com/ycros/cgminer into cgminer Con Kolivas 2011-07-09 16:55:32 +1000
  • fe6e212fb3 Bump version number. Con Kolivas 2011-07-09 16:55:17 +1000
  • 05355d3c79 Fix occasional crash when performing json rpc calls. Ycros 2011-07-09 16:10:35 +1000
  • f20e25e0c0 Moved pthread mutex inits up, due to applog using a mutex causing a crash. Added Win32 compatability to opt.c. Ycros 2011-07-06 19:46:02 +1000
  • a5fb85ef84 Fixed WIN32 compilation with byteswap. Ycros 2011-07-09 12:39:08 +1000
  • c9bbaec3b2 Cope with delays in retrieving work from the server by knowing when we have run out of staged work. Once we are out of staged work, roll the ntime forwards in the work to generate work locally without a getwork. Display a message explaining when we move to/from local generation to server retrieval. Make sure we don't think we've run out of work transiently after a longpoll by flagging a buffer of fake staged work. Con Kolivas 2011-07-09 10:18:29 +1000
  • 3126002b51 When shares come frequently on more powerful mining hardware the status line doesn't appear for very long and gets drowned out by share information. Cache the output and display it after each share submission. Con Kolivas 2011-07-08 20:27:12 +1000
  • 826cc4800e Opcode should be ULL. Con Kolivas 2011-07-08 11:58:04 +1000
  • a8be6851a9 Formalise the extra work item that the wakeup thread acts as a watchdog for. Con Kolivas 2011-07-08 11:53:40 +1000
  • 732baa1812 Use the wakeup thread as a watchdog to ensure we don't fall between the holes of queue and dequeue. Con Kolivas 2011-07-08 06:12:38 +1000
  • 37382565ad Add warning about NVIDIA cards. Con Kolivas 2011-07-07 15:04:54 +1000
  • 9304ebc642 Add display information to README. Con Kolivas 2011-07-07 14:52:32 +1000
  • a4f04773bf Update build instructions. Con Kolivas 2011-07-07 14:39:27 +1000
  • bb49287449 Make longpoll aware of when new block detection has detected a new block first and avoid flushing the work queue twice. Con Kolivas 2011-07-07 14:29:39 +1000
  • 186666d3d1 Prevent buffer overflow. Con Kolivas 2011-07-07 10:43:52 +1000
  • 25bebf3b92 Make the output line much terser now that it has a lot of information on it. Con Kolivas 2011-07-07 10:31:36 +1000
  • 1b2355176b Merge branch 'cgminer' into mfontani Con Kolivas 2011-07-07 10:04:37 +1000
  • ed233e8cb5 Put work into a staging area which makes it possible to check the latest work data received. Then check the latest work data against a store of the current_block and use it to determine if we have moved to a new block. This makes --no-longpoll work just as efficiently as longpoll, and works around when longpoll is unreliable. Con Kolivas 2011-07-07 09:58:26 +1000
  • c815de4991 Add "efficiency" and "utility" Marco Fontani 2011-07-05 08:29:13 +0100
  • efebee5ab8 Fix the case where there are no GPUs, and exit if they give errors. Rusty Russell 2011-07-06 16:47:29 +0930
  • 8b68dc44d4 Fix --ndevs/-n option. Rusty Russell 2011-07-06 16:47:29 +0930
  • 8d25df3c72 Cleanup --cpu-threads/-t logic Rusty Russell 2011-07-06 16:47:29 +0930
  • 3e8181216c Use ccan/opt for commandline parsing. Rusty Russell 2011-07-06 16:47:29 +0930
  • 5a83cc2de4 ccan: downgrade ccan/opt license from GPLv3 (or later) to GPLv2 (or later) Rusty Russell 2011-07-06 16:47:29 +0930
  • a0d14d1564 ccan: add ccan/opt and dependencies to build. Rusty Russell 2011-07-06 16:47:25 +0930
  • e2d912eb4a vapplog: new helper function for reporting errors. Rusty Russell 2011-07-06 16:44:36 +0930
  • 5969d65a04 First work for each thread is now queued in advance. Con Kolivas 2011-07-06 15:57:50 +1000
  • e9a397d4b9 More space to wipe old text. Con Kolivas 2011-07-06 15:56:30 +1000
  • e99069808a Fix the extra work queued every longpoll by queueing it all in the beginning. Con Kolivas 2011-07-06 15:40:12 +1000
  • 719deb3aac Create a wakeup thread that keeps the hashmeter going in case the mining threads all stall. Con Kolivas 2011-07-06 14:20:18 +1000
  • ddae5aa9d0 Remove unused variable. Con Kolivas 2011-07-06 13:29:01 +1000
  • 837e7b1a85 Remove unused cgpu rolling_local variable. Con Kolivas 2011-07-06 13:28:29 +1000
  • 93800e5790 More output tidy. Con Kolivas 2011-07-06 13:19:56 +1000
  • 56eee5f007 Retry should get_work() fail for whatever reason. Con Kolivas 2011-07-06 13:16:47 +1000
  • 07f6de8b34 Change ifdef order since batch is always defined if idle is. Con Kolivas 2011-07-06 13:05:57 +1000
  • cf1e4627e4 Give error messages at all points of failure. Con Kolivas 2011-07-06 13:04:35 +1000
  • 0f351d8466 Always log warnings and error messages. Con Kolivas 2011-07-06 12:57:38 +1000
  • ed7e5bf9a3 There is still potential for an uneven number of queued and dropped work items with this unnecessarily complex check. Flush work guarantees a symmetrical number of queue and discard already. Con Kolivas 2011-07-06 12:51:12 +1000
  • 69d8df643a More cleaning of output with detecting new block. Con Kolivas 2011-07-06 08:59:51 +1000
  • 4800832b1d Import updated asm for cpu mining based on ufasoft assembly. Con Kolivas 2011-07-06 08:31:06 +1000
  • 8333a2ff40 Improve output appearance +/- verbose mode. Con Kolivas 2011-07-06 00:01:40 +1000
  • 1fb09eaa0e Implement -n/--ndevs option. Con Kolivas 2011-07-05 23:11:05 +1000
  • 0ebdc39a19 Make debug mode imply verbose mode. Con Kolivas 2011-07-05 23:07:18 +1000
  • 413e6b8645 Fix potential divide by zero. Con Kolivas 2011-07-05 22:08:13 +1000
  • 660aabf7f7 Merge https://github.com/ycros/cgminer into cgminer Con Kolivas 2011-07-05 22:05:53 +1000
  • 0a80d4b04d Display the output as a refreshing line and only push continuous log to stderr if desired. Con Kolivas 2011-07-05 22:04:54 +1000
  • a636a6744f Merge branch 'cgminer' of git://github.com/ckolivas/cgminer into cgminer Ycros 2011-07-05 21:31:41 +1000
  • 52d6e7ca37 Fixed fread issues under Windows. Ycros 2011-07-05 21:31:24 +1000
  • cb13e2cfe5 Make it possible to build without opencl for cpu mining only. Con Kolivas 2011-07-05 19:47:03 +1000
  • a93b22c630 Make it possible to build without GPU mining by picking up HAVE_OPENCL from config.h. Con Kolivas 2011-07-05 17:34:54 +1000
  • 1f809987fa Merge branch 'cgminer' of git://github.com/ckolivas/cgminer into cgminer Ycros 2011-07-05 17:03:28 +1000
  • 4172fec24a Cope with invalid parameter passing. Con Kolivas 2011-07-05 16:47:19 +1000
  • bc7cde7b36 Implement short option parsing. Con Kolivas 2011-07-05 16:37:51 +1000
  • 5f20777a50 Merge branch 'cgminer' of git://github.com/ckolivas/cgminer into cgminer Ycros 2011-07-05 16:00:59 +1000
  • 13c57a5779 Properly initialise qd_lock mutex. Con Kolivas 2011-07-05 15:18:13 +1000
  • bbac2b938b Added HAVE_OPENCL define to config.h, added OpenCL message at the end of configure script. Ycros 2011-07-05 11:43:45 +1000
  • f90e73af51 Queue and pop precisely the same amount of work in flush_request to ensure all work is cleared and there isn't an uneven add/remove possible. Con Kolivas 2011-07-05 10:47:47 +1000
  • af6e7937ca Signal handling in dns lookup code is responsible for libcurl crashes when multithreading. Disable signal handling and use many curl handles instead, thus making work more asynchronous. Theoretically a curl can wait forever on a dns lookup with this but it's extremely unlikely. Con Kolivas 2011-07-05 10:42:11 +1000
  • 8a0bbf31d4 Update news information reflecting overall summary of gpu mining code. Con Kolivas 2011-07-04 20:50:35 +1000
  • 91f9c527ba Rename code and application binary to cgminer version 1.0.9 preempting version 1.1.0, moving main code to main.c. Con Kolivas 2011-07-04 20:33:31 +1000
  • 8f098e4ab4 Put locking around the queued count to ensure we're never left without work. Con Kolivas 2011-07-04 15:31:12 +1000
  • 122f0cf260 With pre-emptive queueing of work there is no need to have extra work in the queue by default. Make it a list of extra queue items instead of a total and default to 0. Con Kolivas 2011-07-04 13:59:24 +1000