1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 06:18:06 +00:00
Commit Graph

2764 Commits

Author SHA1 Message Date
Con Kolivas
500ed85bb3 Merge pull request #271 from luke-jr/cg_logfixes
Logging bugfixes
2012-07-29 03:46:49 -07:00
Con Kolivas
28ac422ab8 Merge pull request #270 from luke-jr/bugfix_procname
Bugfix: Copy argv[0] given to dirname()
2012-07-29 03:45:10 -07:00
Con Kolivas
150b29d445 Merge pull request #268 from luke-jr/bf_generic_kname
bitforce: Use "full work" vs "nonce range" for kernel name
2012-07-29 03:44:07 -07:00
Con Kolivas
6b80592cde Sleeping on intensity decrease is broken, remove it. 2012-07-29 20:27:37 +10:00
Con Kolivas
7e55a41209 Sleep only the extra amount of time we overran the dynamic interval in dynamic mode. 2012-07-29 20:17:15 +10:00
Con Kolivas
6332c4268b Add scrypt documentation in the form of a separate readme. 2012-07-29 20:13:22 +10:00
Con Kolivas
97aa6ea492 Fix build error without scrypt enabled. 2012-07-29 19:13:45 +10:00
Con Kolivas
b40c8b848f Limit total number of curls recruited per pool to the number of mining threads to prevent blasting the network when we only have one pool to talk to. 2012-07-29 19:10:40 +10:00
Luke Dashjr
cf36331d81 bitforce: Skip out of sending work if work restart requested 2012-07-29 06:42:40 +00:00
Con Kolivas
e87ff7c177 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. 2012-07-29 13:15:39 +10:00
Luke Dashjr
0c985b2411 RPC: Writeup on poolpriority command usage 2012-07-27 23:42:05 +00:00
Luke Dashjr
5ef9c13924 Bugfix: API: Report errors from poolpriority command 2012-07-27 21:28:13 +00:00
Luke Dashjr
8326d2dcaf RPC: New "poolpriority" command to set the order of pool priorities 2012-07-27 21:27:37 +00:00
Luke Dashjr
7418f5e211 strtok_ts: Thread-safe strtok that work on POSIX or Windows 2012-07-27 21:15:19 +00:00
Zefir Kurtisi
e8fb2bc1ba fpgautils: add support for 57.6 kBd serial 2012-07-26 22:54:39 +02:00
Kano
8a35b4ac7a miner.php add a socket RCV timeout for if cgminer is hung and the API thread is still running 2012-07-27 00:55:31 +10:00
Con Kolivas
43752ee58c Limit thread concurrency for scrypt to 5xshaders if shaders is specified. 2012-07-26 16:12:45 +10:00
Con Kolivas
da1b996a39 Simplify repeated use of gpus[gpu]. in ocl.c 2012-07-26 16:10:21 +10:00
Con Kolivas
5148502c1e Reinstate help information for lookup gap and thread concurrency since tc will often need to be manually set for optimal scrypt performance. 2012-07-25 22:30:37 +10:00
Con Kolivas
ea10b08dce Find the nearest power of 2 maximum alloc size for the scrypt buffer that can successfully be allocated and is large enough to accomodate the thread concurrency chosen, thus mapping it to an intensity. 2012-07-25 22:02:14 +10:00
Con Kolivas
bff58c3bed Add back in new cl files. 2012-07-24 20:55:34 +10:00
Con Kolivas
5e756d3f6a Don't make opt_scrypt mandatory blocking with opencl code. 2012-07-24 20:53:05 +10:00
Con Kolivas
b3a41e40a8 Update kernel versions reflecting changes in the API. 2012-07-24 20:33:04 +10:00
Con Kolivas
aca34d0aa1 Merge branch 'master' into newscrypt 2012-07-24 20:28:52 +10:00
Con Kolivas
9a6c082ad1 Make the thread concurrency and lookup gap options hidden on the command line and autotune parameters with a newly parsed --shaders option. 2012-07-24 20:27:37 +10:00
Con Kolivas
458fbeb5b4 Merge pull request #273 from kanoi/bfl
BFL force all code to timeout to avoid hanging
2012-07-24 02:48:23 -07:00
Con Kolivas
f98774c35c Fix target testing with scrypt kernel as it would have been missing shares below target. 2012-07-24 17:52:54 +10:00
Luke Dashjr
da4ff2bde1 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)
2012-07-23 20:29:06 +00:00
Luke Dashjr
d98e561a0a Simplify code to a single vprintf path for curses-less printing 2012-07-23 20:29:02 +00:00
Luke Dashjr
80593c47fc Move opt_quiet check to my_log_curses, so it works for curses-less builds 2012-07-23 20:28:57 +00:00
Luke Dashjr
d2195bd04e Use log_generic for vapplog to cut down on code duplication 2012-07-23 20:28:53 +00:00
Luke Dashjr
1097aefbad Add space to log output now that there is more screen real estate available. 2012-07-23 20:28:48 +00:00
Kano
c55830502a BFL force all code to timeout to avoid hanging 2012-07-24 02:19:23 +10:00
Luke Dashjr
a1cb0d06d5 Bugfix: Copy argv[0] given to dirname()
Per manpage, dirname can (and does on GNU/Linux!) modify its argument
2012-07-23 15:48:00 +00:00
Con Kolivas
3a0d60cfe1 Always create the largest possible padbuffer for scrypt kernels even if not needed for thread_concurrency, giving us some headroom for intensity levels. 2012-07-23 21:30:30 +10:00
Con Kolivas
d8f81c18ee Use the detected maximum allocable memory on a GPU to determine the optimal scrypt settings when lookup_gap and thread_concurrency parameters are not given. 2012-07-23 17:51:57 +10:00
Con Kolivas
89eb1fa393 Check the maximum allocable memory size per opencl device. 2012-07-23 17:41:31 +10:00
Con Kolivas
5087ff9069 Add debugging output if buffer allocation fails for scrypt and round up bufsize to a multiple of 256. 2012-07-23 16:37:13 +10:00
Con Kolivas
94c94d659a Nonce testing for btc got screwed up, leading to no accepted shares. Fix it. 2012-07-23 07:38:58 +10:00
Con Kolivas
1711b4eb77 Display size of scrypt buffer used in debug. 2012-07-22 00:58:09 +10:00
Con Kolivas
17dfe74f96 Allow intensities up to 20 if scrypt is compiled in. 2012-07-22 00:49:47 +10:00
Con Kolivas
c21e15a0c3 Add name to scrypt kernel copyright. 2012-07-21 17:37:23 +10:00
Con Kolivas
39f7d2fa74 Allow lookup gap and thread concurrency to be passed per device and store details in kernel binary filename. 2012-07-21 17:31:06 +10:00
Con Kolivas
ffe1318f70 Ignore negative intensities for scrypt. 2012-07-21 16:05:50 +10:00
Con Kolivas
04f55a0e66 Change the scale of intensity for scrypt kernel and fix a build warning. 2012-07-21 13:56:54 +10:00
Con Kolivas
e45ebb62a9 Correct target value passed to scrypt kernel. 2012-07-21 13:30:32 +10:00
Con Kolivas
1b5c676de7 Use 256 output slots for kernels to allow 1 for each worksize. 2012-07-21 11:00:36 +10:00
Con Kolivas
b9e5f8e550 Revert "Use cpu scrypt code to check if an scrypt share is below target before submitting it."
This reverts commit 808f403a14.

Conflicts:
	findnonce.c
2012-07-21 10:28:41 +10:00
Con Kolivas
a22edd2a7f Test the target in the actual scrypt kernel itself saving further calculations. 2012-07-21 10:25:33 +10:00
Con Kolivas
7d53fba1ad Reinstate GPU only opencl device detection. 2012-07-21 02:49:50 +10:00