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

24 Commits

Author SHA1 Message Date
Tanguy Pruvot
d6e6f10881 intensity: prevent double free on change from (t)ui 2016-04-01 14:50:21 +02:00
ystarnaud
4ba8a68043 Merged develop branch with master +updates
Moved the develop code to master. Moving forward all updates will be
done on master unless it's work on a major feature.

This update contains all previous develop code as well as a few new ones
that weren't pushed yet:

* Added neoscrypt compatibility for xintensity/rawintensity
* Neoscrypt now uses correct TC if not specified or set to 0
* Reworked the application of pool settings on algorithm switch which
should resolve TC/Intensity changes between algos such as X11 and
neoscrypt
2014-12-03 10:09:55 -05:00
ystarnaud
81d9c9e574 Events framework
Added the ability to have users run commands, reboot the system or quit sgminer based on system events. These events can be defined and placed throughout the sgminer source. So far the events are: "gpu_sick", "gpu_dead" and "idle". I will document further shortly. Config example available here: http://pastebin.com/2rRv3EzH
2014-11-19 18:33:11 +01:00
ystarnaud
8a6168fa4b Fix for UI/API intensity changes
The API and UI functions to change intensity would update the gpu
settings directly without updating the config option strings. This
resulted in the intensity updates not saving in config files. This
update should resolve that problem.

Also added API functions to change xintensity and rawintensity.
2014-11-19 12:21:11 +01:00
ystarnaud
c0515e8fa3 Added alt kernel file option 2014-11-19 11:18:25 +01:00
ystarnaud
a408e856b2 Fix API profile list
API Profile list showed the default profile twice.
2014-07-09 14:37:41 -04:00
ystarnaud
f8fcbbcd0a Config writer fix
Reworked how the config writer works to properly save the config file.
Sometimes settings would get lost in profiles.

Also changed algorithm switch to only perform a soft reset and lowered
the verbosity of the algorithm switcher.
2014-07-09 14:23:07 -04:00
troky
9e515abfb0 MSVS fix. 2014-07-01 09:25:22 +02:00
ystarnaud
6f8d38ee11 Remote config files
Config parser can now read config files stored remotely via
https/http/ftp. Requires libcurl.
2014-07-01 00:51:54 -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
Elbandi
cc699e1d37 Fix typo 2014-06-27 13:17:55 +02:00
ystarnaud
3a728e65fb Fix possible config issue
Fixing a possible problem where loading default profile would override global level options.
2014-06-23 05:17:07 -04:00
ystarnaud
1914cef959 Fixed x13 and other issues
Corrected the x13 errors and fixed a few issues with the config parser's
handling of the default_profile.
2014-06-21 15:18:20 -04:00
Noel Maersk
76dd32a2c8 config: one less branching in load_default_profile(), some whitespace. 2014-06-20 20:22:01 +03:00
Noel Maersk
5430d1ee91 config: be a little less cryptic on what's going on in load_default_profile(). 2014-06-20 19:09:18 +03:00
Noel Maersk
6228694100 config: conflict with v5_0 (develop) branch, opt_algorithm was changed from a pointer. 2014-06-20 17:08:16 +03:00
ystarnaud
fae56ceeeb Added API function to change pool profile
Added the API function changepoolprofile to change a pool's profile to
the specified profile name.
2014-06-20 16:53:00 +03:00
ystarnaud
58def448c0 Fixed a segfault issue writing config file 2014-06-20 16:53:00 +03:00
ystarnaud
ea1aba07d8 API Update
Ability to add/remove profiles via API.
2014-06-20 16:53:00 +03:00
Noel Maersk
832ac82bf6 Updated API functionality
Fixed addpool to specify a profile or algorithm and sets defaults if
nothing specified. Also added a new API function to change multipool
strategy.

Conflicts (resolved):
	sgminer.c
2014-06-20 16:52:59 +03:00
ystarnaud
d9b4798e8e More options added
Added the following options to profiles/pools:
device (set devices on/off per profile), lookup-gap, shaders, worksize,
gpu-powertune, gpu-vddc
2014-06-20 16:50:06 +03:00
Noel Maersk
9fe5272c92 Updated config writer
Config writer now supports profiles and pool specific values. In
addition, the config writer now makes use of the jansson library to
create proper json objects and save them to the config file. This is
much better than trying to write our own json code.

Conflicts (resolved):
	sgminer.c
2014-06-20 16:49:51 +03:00
Yann St. Arnaud
03379f9f51 Fixed whitespaces
Cleaned up whitespaces in code
2014-06-20 16:49:07 +03:00
Yann St. Arnaud
9faa8fa59f Updated the config parser
Updated the config parser to provide better readability and flexibility
in config files. The latest features introduced a really messy way to
handle config files and this update alleviates this by adding the
ability to create profiles and associate them to pools.

Todo: Update the config file writer, in-program options and continue to
break off the config parsing/command line option code out of sgminer.c
to reduce clutter.
2014-06-20 16:49:07 +03:00