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

25 Commits

Author SHA1 Message Date
aznboy84
18e0ed0042 Add BitBlock kernel 2014-07-01 01:29:18 -04:00
ystarnaud
3ae5f97b94 Algorithm Switcher Update
Updated Algorithm switcher to change on pool rather than on algorithm.
This way if, for example, 2 pools use the same algorithm but different
GPU settings, the settings will be applied when changing pool.

Additionally:
* Included a "common" algorithm type in API pool/profile listing. For
example using "marucoin-mod" will return "X13", "darkcoin-mod" will
return "X11", scrypt + nfactor != 10 will return "NScrypt", etc...

* Added "kernel" config option to be backwards compatible with other
miners' configs.

* Added a few algorithm aliases: x11mod -> darkcoin-mod, x13mod ->
marucoin-mod...

* New config keyword: "includes", which holds an array of include files.
This is to counter the JSON limitation not allowing multiple values with
the same name, thus preventing inclusion of multiple files.
2014-06-28 00:54:17 -04:00
ystarnaud
044bf70901 Nfactor fix
Sometimes the json parser, will read/apply nfactor before algorithm is set. When that is the case, set_algorithm() will reset nfactor to 10 preventing nscrypt from loading properly. Corrected the function to use previously set nfactor or default to 10.
2014-06-25 01:01:03 -04:00
Elbandi
2925ea0f65 Use macros in queue_talkcoin_mod_kernel 2014-06-21 23:35:48 +02:00
ystarnaud
056a9f754a Merge pull request #272 from lasybear/v5_0
Add talkcoin-mod (NIST5 algo) by Issue #268 + AMD drivers v14.6 for Windows compatibility fix
2014-06-21 12:19:23 -04:00
Elbandi
1f76f9bfcc Use macros in queue_kernel functions 2014-06-17 20:15:38 +02:00
lasybear
e7228b20f4 talkcoin-mod 2014-06-15 19:21:10 +04:00
troky
5ba1772d5a algorithm spaces/indentation fix 2014-06-13 17:50:55 +02:00
troky
d83d7bd386 Removed original sha2 and made code use sph_sha2 2014-06-12 13:19:30 +02:00
Jan Berdajs
e134ab75ad move algorithm-specific OpenCL compile options into algorithm_t 2014-06-08 20:36:45 +02:00
Jan Berdajs
e5779e1e26 move algorithms into separate folder 2014-06-08 03:26:42 +02:00
Jan Berdajs
dfaee21023 extract marucoin-modold (for old GPUs like Radeon HD 5xxx, e.g. 5850) as separate kernel and add support for it 2014-06-04 19:24:04 +02:00
Jan Berdajs
ce3624fba6 add marucoin-mod (X13-mod) 2014-06-03 01:36:56 +02:00
Jan Berdajs
9ec87cfc1a fixes for MSVC2010 to build 2014-05-29 22:48:25 +02:00
Jan Berdajs
dca83c1112 Add improved Darkcoin (X11-mod) algorithm 2014-05-27 03:39:19 +02:00
Jan Berdajs
9d9f5b7586 Add MaxCoin support 2014-05-27 01:12:30 +02:00
Jan Berdajs
c0baf790f6 making new algorithms and other changes merged from sph-sgminer work with current version of sgminer 2014-05-27 01:11:54 +02:00
Jan Berdajs
c2131df6aa add support for setting algorithm/nfactor for each pool separately, and fix bugged OpenCL thread cleanup (thread shutdown) 2014-03-31 21:05:20 +02:00
Noel Maersk
0db99d66c0 algorithm: add nfactor aliases "adaptive-n-factor" and "nscrypt".
Also change whitespace back to "4 spaces".
2014-03-14 17:05:23 +02:00
unknown
0e37fc24b0 Added algorrithm name to "coin" API command. Changed default algo name to "scrypt". 2014-03-13 23:02:51 +01:00
Noel Maersk
c6a27709f8 core: use global algorithm structure instead of opt_nfactor.
Also squashed:

config: add log messages to set_algo() and set_nfactor().

algorithm: use set_algorithm_nfactor() when setting default nfactor in set_algorithm().

Otherwise algorithm->n defaults to 0.

P.S. Did I already mention how this could have been C++?..
2014-03-07 02:27:06 +02:00
Noel Maersk
a0c52bf67c config: introduce set_nfactor() and use it to call set_algorithm_nfactor().
Had two bugs:

1. Will not compile due to unknown algorithm_t size.
2. nfactor is set to 0 (bad calling, fix later).

So squashed two commits:

1. algorithm: move algorithm_t definition to header.
2. config: if --nfactor is specified, properly set algorithm->nfactor.
2014-03-07 02:27:06 +02:00
Noel Maersk
92b7770212 config: add --algorithm option and documentation.
Doc in `doc/configuration.md` (has to be started sometime, no?).

Configuration function has to be lamely-named set_algo(), because
set_algorithm() is already declared in algorithm.h (prevent namespace
conflict).

algorithm has to be added as global variable due to the way the
callback is done (by CCAN/opt, which in itself is nice).

This can be cleaned up significantly by (at least) introducing a
global configuration struct, but there is no reason to do it now
just for this - better a wholesale manana.
2014-03-07 02:27:00 +02:00
Noel Maersk
50a792f2cd algorithm: initial set_algorithm() and set_algorithm_nfactor(). 2014-03-06 21:23:13 +02:00
Noel Maersk
776eec2e11 algorithm: initial structure definition. 2014-03-06 21:23:10 +02:00