cgminer.c


Log

Author Commit Date CI Message
Con Kolivas 81d4f620 2012-02-11T15:15:03 Various string fixes for reject reason.
Con Kolivas b706da93 2012-02-11T14:55:12 Merge branch 'reject_reason' of https://github.com/luke-jr/cgminer into reject
Luke Dashjr 543265d6 2012-01-24T14:34:17 Generalize --temp-cutoff and implement support for reading temperature from BitFORCE FPGAs
Con Kolivas 8c609579 2012-02-10T19:07:53 Merge pull request #107 from kanoi/master Allow API to restrict access by IP address + other commits
Con Kolivas d24ee782 2012-02-11T13:57:35 Change message from recovered to alive since it is used on startup as well as when a pool has recovered.
Con Kolivas 8e682a2c 2012-02-11T13:53:09 Start mining as soon as any pool is found active and rely on the watchpool thread to bring up other pools.
Con Kolivas 405fcd76 2012-02-11T13:35:30 Delayed responses from testing pools that are down can hold up the watchdog thread from getting to its device testing code, leading to false detection of the GPU not checking in, and can substantially delay auto gpu/auto fan management leading to overheating. Move pool watching to its own thread.
Con Kolivas 5ec684ce 2012-02-11T13:20:32 Space out retrieval of extra work according to the number of mining threads.
Con Kolivas 37374bb4 2012-02-11T13:11:56 Make shutdown more robust. Enable the input thread only after the other threads exist. Don't kill off the workio thread and use it to exit main() only if there is an unexpected problem. Use kill_work() for all anticipated shutdowns where possible. Remove unused thread entry.
ckolivas 95a989da 2012-02-10T13:18:16 Conflicting entries of cl_kernel may have been causing problems, and automatically chosen kernel type was not being passed on. Rename the enum to cl_kernels and store the chosen kernel in each clState.
ckolivas 02c94272 2012-02-10T13:18:16 Conflicting entries of cl_kernel may have been causing problems, and automatically chosen kernel type was not being passed on. Rename the enum to cl_kernels and store the chosen kernel in each clState.
Con Kolivas 6e3ad7ad 2012-02-09T22:40:33 Logic fail on queue request.
Con Kolivas d40979d1 2012-02-09T22:28:59 No point discarding a share even if opt_fail is enabled.
Con Kolivas 435e5c85 2012-02-09T22:27:20 Work items have a tendency to expire at exactly the same time and we don't queue extra items when there are plenty in the queue, regardless of age. Allow extra work items to be queued if adequate time has passed since we last requested work even if over the limit.
Con Kolivas ffbf15ad 2012-02-09T22:00:04 Discard work when failover-only is enabled and the work has come from a different pool.
Con Kolivas 5b476100 2012-02-09T21:54:23 Move from the thread safe localtime_r to regular localtime which is the only one supported on newer pthread libraries on mingw32 to make it compile with the newer ming. Thread safety is of no importance where localtime is used in this code.
Kano f19e67fe 2012-02-08T19:06:24 Allow API to restrict access by IP address
Luke Dashjr f7a9897e 2012-01-26T00:07:42 Display X-Reject-Reason, when provided
Con Kolivas e0540bd4 2012-02-06T21:23:20 Revert "Rewrite the convoluted get_work() function to be much simpler and roll work as much as possible with each new work item." This reverts commit dec99ab739d16f2dd4f48482e713a25ebaef8e66. This seems to cause a race on work in free_work(). Presumably other threads are still accessing the structure.
Con Kolivas de4c6c29 2012-02-06T18:12:22 Provide support for the submitold extension on a per-pool basis based on the value being detected in a longpoll.
Con Kolivas dec99ab7 2012-02-06T17:36:51 Rewrite the convoluted get_work() function to be much simpler and roll work as much as possible with each new work item.
Con Kolivas a3e77937 2012-02-06T16:11:53 Roll as much work as possible from the work returned from a longpoll.
Con Kolivas eff9fe43 2012-02-06T10:42:52 Rolling work on each loop through the mining thread serves no purpose.
Con Kolivas d42d0c8e 2012-02-06T10:41:05 Allow to stage more than necessary work items if we're just rolling work.
Con Kolivas b9612715 2012-02-06T10:40:04 Replace divide_work with reuse_work function used twice.
Con Kolivas 0307f9bb 2012-02-06T10:37:29 Give rolled work a new ID to make sure there is no confusion in the hashtable lookups.
Con Kolivas d991a09e 2012-02-06T08:00:09 Remove now-defunct hash_div variables.
Con Kolivas 36d2fa48 2012-02-05T22:39:28 Silence unused parameter warnings.
Con Kolivas 294ac0b6 2012-02-05T22:33:58 Stagger the restart of every next thread per device to keep devices busy ahead of accessory threads per device.
Con Kolivas 82f74af5 2012-02-05T21:36:41 Deprecate the --donation feature. Needlessly complex, questionable usefulness, depends on author's server and a central pool of some kind, and was not heavily adopted.
Con Kolivas 488a3b73 2012-02-05T17:31:19 It's devices that report back now, not threads.
Con Kolivas 23685aa4 2012-02-05T17:28:53 Continue auto-management of fan and engine speeds even if a device is disabled for safety reasons.
Con Kolivas 01659bcc 2012-02-05T14:35:45 Abstract out tests for whether work has come from a block that has been seen before and whether a string is from a previously seen block.
Kano 0ebc0c9d 2012-02-04T17:49:49 Add last share's pool info in cgpu_info
ckolivas 53c1e9ae 2012-02-04T15:15:57 Allow the OpenCL platform ID to be chosen with --gpu-platform.
ckolivas cda798d9 2012-02-04T13:05:28 Only enable curses on failure if curses is desired.
zefir e0b0a6c0 2012-01-30T23:11:39 Modularize code: main.c -> device-cpu + device-gpu This patch is an initial attempt to re-structure cgminer source code from its monolithic design (with nearly all code being concentrated in main.c) to a more modular one. In this first stage, the conditionally compiled functions for GPU and CPU mining were extracted into dedicated files: * device-cpu.h and device-cpu.c covering WANT_CPUMINE functions * device-gpu.h and device-gpu.c covering HAVE_OPENCL functions The main.c file is left untouched as reference, while the remainder without the extracted parts is located in cgminer.c. The Makefile.am has been updated to use the re-structured source files for the build. Above pure re-structuring *NO* functional modifications were made. The sources were tested to compile and run on on a current Linux system with working CPU and GPU mining (Bitforce not tested due to loack of hardware).