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

5728 Commits

Author SHA1 Message Date
Noel Maersk
08727c1a57 Update authors.
Still pulling from ckolivas/cgminer, so note that.
2014-01-14 19:02:58 +02:00
Noel Maersk
4c99829179 Merge pull request #1 from veox/forward-port
Forward port

Pull in changes in ckolivas/cgminer (up to commit 8fa5ddf, made on Wed Nov 13 11:57:29 2013 +0100).

This is still useful for all functionality not related to SHA256d/Scrypt mining. Obviously, ckolivas/cgminer developers are few bits more familiar with the code base.
2014-01-14 08:44:32 -08:00
Maksym Borodin
8fa5ddfd2c util.c: Decreasing reference count on allocated JSON obects to prevent memory leak 2014-01-14 18:35:56 +02:00
Con Kolivas
cd7f6ed56a Initialise the stgd lock mutex earlier to prevent dereferences when pool testing occurs before it.
Conflicts:
	cgminer.c
2014-01-14 18:33:59 +02:00
Con Kolivas
694a98ece3 --shares should be scaled to diff1 not absolute number of shares 2014-01-14 18:31:15 +02:00
Con Kolivas
cd03fcdf2d Reset the work_restart bool after the scanwork loop in case the driver flushes work synchronously. 2014-01-14 18:25:36 +02:00
Con Kolivas
75c5ac0457 Only check for the stratum clean message if we have had a valid message. 2014-01-14 18:24:29 +02:00
Con Kolivas
d38802a68f Get rid of the stage thread since all work can be asynchronously added now via hash_push anyway.
Conflicts:
	cgminer.c
2014-01-14 18:19:57 +02:00
Con Kolivas
c9bf06d19b Break out of the hash work loops when a failure is detected instead of dropping into mt disable. 2014-01-13 21:24:57 +02:00
ckolivas
d9b3037e4b Fix build for no libcurl 2014-01-13 21:19:15 +02:00
Noel Maersk
be0270408f doc: update README, rename CONFIGURATION back to SCRYPT. 2014-01-13 11:21:11 +02:00
Noel Maersk
e4680ab627 core: allow changing TCP keepalive packet idle time using tcp-keepalive command-line option or config-file option.
This may be useful in certain scenarios. However, server load from keepalive
is increased 6-fold if code is hard-changed from 30 to 5. So, provide it as
an option instead, and use the previous value as a default (30).

Explanation from

015c064396

Kevin's middlecoin fix, CURL TCP keepalive constants lowered:

CURLOPT_TCP_KEEPIDLE from 45 to 5 and CURLOPT_TCP_KEEPINTVL from 30 to
5. Before it'd trigger a keepalive packet after 45 seconds of connection
idle time and then again every 30 seconds. Now it triggers a keepalive
packet after 5 seconds of connection idle time and then again every 5
seconds.

It makes the client more resilient against coin switching pools or just
pools with connection issues in general. It will however add a tiny bit
pressure to the pool server; but a TCP keepalive probe is only about
60-80 bytes, so I don't think it is an issue.
2014-01-12 19:45:31 +02:00
Noel Maersk
bb5065b601 core: Remove two unused functions.
They were previously necessary to switch between SHA256d and Scrypt.
2014-01-12 17:46:57 +02:00
Noel Maersk
211da58a73 Remove a few stray ASIC defines. 2014-01-12 17:40:59 +02:00
Noel Maersk
d6f5f01e88 doc: move to separate directory. 2014-01-12 16:00:06 +02:00
Noel Maersk
21289de654 misc: Remove LICENSE (use COPYING). 2014-01-12 15:44:05 +02:00
Noel Maersk
83e52dfe78 api: remove references to FPGAs and ASICs. 2014-01-11 23:01:02 +02:00
Noel Maersk
71927bb0ba misc: Add Martin Danielsen to AUTHORS. 2014-01-11 22:31:22 +02:00
Noel Maersk
b11ca3650a Remove remaining references to have_opencl. 2014-01-11 20:57:15 +02:00
Noel Maersk
744e819117 Remove last references to opt_nogpu. 2014-01-11 20:51:54 +02:00
Martin Danielsen
2799c237c3 Added BIOS information to --ndevs|-n listing.
This will aid people identifying cards in setups with different cards within the same series, eg. 7950 and 7970s, or 290 and 290Xs.

Conflicts:
	adl.c
2014-01-11 20:46:13 +02:00
Noel Maersk
e3d2579df1 doc: If ADL SDK is used, then version 5 or 6 is required. 2014-01-11 20:39:22 +02:00
Noel Maersk
45b1219aa1 misc: Change encoding of adl_functions.c to UTF-8. 2014-01-11 18:58:17 +02:00
Martin Danielsen
783cd01e11 Preparation for ADL Overdrive 6 support
There's no functionality implemented yet, nor has the existing functionality been changed.
2014-01-11 18:56:35 +02:00
Martin Danielsen
11c20c87fa core: Warn if GPU_MAX_ALLOC_PERCENT or GPU_USE_SYNC_OBJECTS is not set
...through export (Linux) or setx (Windows).
2014-01-11 18:13:20 +02:00
Martin Danielsen
31123de410 -g or --gpu-threads now support comma separated values, yaaay!
It is exactly what it says, now you can finally put that Frankenrig configuration in one file.
The parameter follows the same design as gpu-engine and gpu-memclock.
2014-01-11 18:11:14 +02:00
Noel Maersk
b4e36e69e8 Code cleanup after last two commits.
Display reject percentage in a fixed-width field.
2014-01-11 17:59:01 +02:00
Noel Maersk
d53b329f18 core: Revert printing threads for every GPU, this setting is not modifiable at run-time. 2014-01-11 17:42:37 +02:00
Martin Danielsen
89663c7e94 Display reject percentage instead of absolute accepted/rejected values
Changed GPU status line from "A:xxxxx R:xxx" to "R:0.0%". It shows (rejected/(accepted+rejected))*100, which is the percentage of rejections for a GPU. Total accepted and rejected in top status is unchanged.

GPU status lines now show both threads and intensity.
2014-01-11 17:41:30 +02:00
Noel Maersk
3ade514b94 log: Do not pad log string with a space. 2014-01-11 17:33:00 +02:00
Noel Maersk
f6f950273b log: Change log_dateformat to log_show_date and make it bool. 2014-01-11 17:32:57 +02:00
Martin Danielsen
ba1c47781f log: Added a switch to the log date and time format.
It is possible to switch back to full date and time on each log line with "--log-dateformat 1". The short time-only format is default with the value of 0.

Log with short time-only format looks like:
 [23:59:59] Accepted 389c47d1 Diff 1.16K/512 GPU 0 pool 0
 [00:00:16] Log date is now 2013-12-22
 [00:00:16] Stratum from pool 0 detected new block
 [00:00:33] Accepted 7a4950a4 Diff 536/512 GPU 0 pool 0
2014-01-11 17:32:39 +02:00
Martin Danielsen
fd8d465b02 core: Timeout on switching back to a pool after a broken connection lowered from 5 minutes to one minute. 2014-01-11 17:32:34 +02:00
Noel Maersk
5f8e69ff40 doc: Fix build instructions. 2013-12-22 17:17:48 +02:00
Noel Maersk
02c7b9de7b misc: AUTHORS cleanup. 2013-12-22 17:04:11 +02:00
Noel Maersk
1cb220781a core: Clarify --scrypt deprecation message. 2013-12-22 16:45:33 +02:00
Noel Maersk
8cc7ba7867 misc: Add Benjamin to AUTHORS.
Rename AUTHORS to AUTHORS.md.
2013-12-22 16:43:04 +02:00
Benjamin Herrenschmidt
9b8a7319c0 core: Add back a dummy --scrypt option
Removing it means existing shell scripts fail unless they are updated
to remove passing the option. Instead, just print a deprecation
warning.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-12-22 13:10:20 +11:00
Benjamin Herrenschmidt
4256bd10d8 adl: Properly restore default perf levels
We were copying the *pointer* to the perf levels structure rather
than the structure itself, and thus restoring the perf levels
did basically nothing.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-12-22 12:58:34 +11:00
Benjamin Herrenschmidt
f44d2fc57f adl: Fix query of default fan speed
This fixes a crash of the AMD driver when quitting as we were trying
to apply what basically is an uninitialized value.

Adds additional code to cope with a failure to retrieve just in case
we hit another problem like that in the future.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-12-22 12:58:34 +11:00
Noel Maersk
199cb10e18 HAVE_OPENCL is mandatory, remove checks form code an build system. 2013-12-05 20:49:18 +02:00
Noel Maersk
75e0cfc847 Update AUTHORS (add Noel Maersk aka veox). 2013-12-04 15:58:30 +02:00
Noel Maersk
dcd417a2be Update README with minimal instructions on how to build with ADL SDK. 2013-12-04 15:54:47 +02:00
Noel Maersk
e1413db04d README stray semicolon. 2013-12-04 15:52:43 +02:00
Noel Maersk
a5ba238c26 README whitespace. 2013-12-04 15:50:37 +02:00
Noel Maersk
82298d6457 README update. 2013-12-04 15:48:35 +02:00
Noel Maersk
dcb0111a22 Add all sources unconditionally in Makefile.am.
As in wolf's branch: cfac323a4f
2013-12-04 00:37:49 +02:00
Noel Maersk
edf6779650 Minor README improvements. 2013-12-03 21:27:13 +02:00
Noel Maersk
16730ed90e Reinstitute MAX_INTENSITY=42, but this time with a note in SCRYPT-README. 2013-12-03 21:14:25 +02:00
Noel Maersk
4bc93fbf8b Remove mentiones of unused options. 2013-12-03 21:14:07 +02:00