Coder Social home page Coder Social logo

genesismining / sgminer-gm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicehash/sgminer

340.0 61.0 146.0 14.83 MB

A multi-algo GPU miner

License: GNU General Public License v3.0

Java 0.10% Makefile 0.21% C 96.95% C++ 0.81% PHP 0.77% Python 0.01% Shell 0.01% M4 1.13% Batchfile 0.01%

sgminer-gm's Introduction

sgminer

Introduction

This is a multi-threaded multi-pool GPU miner with ATI GPU monitoring, (over)clocking and fanspeed support for scrypt-based cryptocurrency. It is based on cgminer by Con Kolivas (ckolivas), which is in turn based on cpuminer by Jeff Garzik (jgarzik).

releases: https://github.com/sgminer-dev/sgminer/releases

git tree: https://github.com/sgminer-dev/sgminer

bugtracker: https://github.com/sgminer-dev/sgminer/issues

irc: #sgminer and #sgminer-dev on freenode

mailing lists: https://sourceforge.net/p/sgminer/mailman/

License: GPLv3. See COPYING for details.

Documentation

Documentation is available in directory doc. It is organised by topics:

  • API for the RPC API specification;
  • configuration.md for (largely incomplete) detailed information on all configuration options;
  • FAQ.md for frequently asked questions;
  • GPU for semi-obsolete information on GPU configuration options and mining SHA256d-based coins;
  • kernel.md for OpenCL kernel-related information, including development procedure;
  • MINING.md for how to find the right balance in GPU configuration to mine Scrypt-based coins efficiently;
  • windows-build.txt for information on how to build on Windows.

Note that most of the documentation is outdated or incomplete. If you want to contribute, fork this repository, update as needed, and submit a pull request.

Building

Dependencies

Mandatory:

Optional:

  • curses dev library - libncurses5-dev on Debian or libpdcurses on WIN32, for text user interface
  • AMD ADL SDK - version 6, required for ATI GPU monitoring & clocking

If building from git:

  • autoconf
  • automake

sgminer-specific configuration options:

--disable-adl           Override detection and disable building with adl
--disable-adl-checks
--without-curses        Do not compile support for curses TUI

Debian Example

apt-get install libcurl4-openssl-dev pkg-config libtool libncurses5-dev

AMD APP SDK and AMD ADL SDK must be downloaded from the amd websites.

*nix build instructions

If needed, place include headers (*.h files) from ADL_SDK_*<VERSION>*.zip in sgminer/ADL_SDK.

Then:

git submodule init
git submodule update
autoreconf -i
CFLAGS="-O2 -Wall -march=native -std=gnu99" ./configure <options>
make

To compile a version that can be used accross machines, remove -march=native.

To compile a debug version, replace -O2 with -ggdb.

Depending on your environment, replace -std=gnu99 with -std=c99.

Systemwide installation is optional. You may run sgminer from the build directory directly, or make install if you wish to install sgminer to a system location or a location you specified with --prefix.

Windows build instructions

See doc/windows-build.txt for MinGW compilation and cross-compiation, doc/cygwin-build.txt for building using Cygwin, or use the provided winbuild Microsoft Visual Studio project (tested on MSVS2010), with instructions in winbuild/README.txt.

Basic Usage

WARNING: documentation below this point has not been updated since the fork.

After saving configuration from the menu, you do not need to give sgminer any arguments and it will load your configuration.

Any configuration file may also contain a single

"include" : "filename"

to recursively include another configuration file.

Writing the configuration will save all settings from all files in the output.

Single pool:

sgminer -o http://pool:port -u username -p password

Multiple pools:

sgminer -o http://pool1:port -u pool1username -p pool1password -o http://pool2:port -u pool2usernmae -p pool2password

Single pool with a standard http proxy, regular desktop:

sgminer -o "http:proxy:port|http://pool:port" -u username -p password

Single pool with a socks5 proxy, regular desktop:

sgminer -o "socks5:proxy:port|http://pool:port" -u username -p password

Single pool with stratum protocol support:

sgminer -o stratum+tcp://pool:port -u username -p password

The list of proxy types are: http: standard http 1.1 proxy http0: http 1.0 proxy socks4: socks4 proxy socks5: socks5 proxy socks4a: socks4a proxy socks5h: socks5 proxy using a hostname

If you compile sgminer with a version of CURL before 7.19.4 then some of the above will not be available. All are available since CURL version 7.19.4.

If you specify the --socks-proxy option to sgminer, it will only be applied to all pools that don't specify their own proxy setting like above.

For more advanced usage , run sgminer --help.

See doc/GPU for more information regarding GPU mining and doc/SCRYPT for more information regarding Scrypt mining.

Runtime usage

The following options are available while running with a single keypress:

[P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit

P gives you:

Current pool management strategy: Failover [F]ailover only disabled [A]dd pool [R]emove pool [D]isable pool [E]nable pool [C]hange management strategy [S]witch pool [I]nformation

S gives you:

[Q]ueue: 1 [S]cantime: 60 [E]xpiry: 120 [W]rite config file [C]gminer restart

D gives you:

[N]ormal [C]lear [S]ilent mode (disable all output) [D]ebug:off [P]er-device:off [Q]uiet:off [V]erbose:off [R]PC debug:off [W]orkTime details:off co[M]pact: off [L]og interval:5

Q quits the application.

G gives you something like:

GPU 0: [124.2 / 191.3 Mh/s] [A:77 R:33 HW:0 U:1.73/m WU 1.73/m] Temp: 67.0 C Fan Speed: 35% (2500 RPM) Engine Clock: 960 MHz Memory Clock: 480 Mhz Vddc: 1.200 V Activity: 93% Powertune: 0% Last initialised: [2011-09-06 12:03:56] Thread 0: 62.4 Mh/s Enabled ALIVE Thread 1: 60.2 Mh/s Enabled ALIVE

[E]nable [D]isable [R]estart GPU [C]hange settings Or press any other key to continue

The running log shows output like this:

[2012-10-12 18:02:20] Accepted f0c05469 Diff 1/1 GPU 0 pool 1 [2012-10-12 18:02:22] Accepted 218ac982 Diff 7/1 GPU 1 pool 1 [2012-10-12 18:02:23] Accepted d8300795 Diff 1/1 GPU 3 pool 1 [2012-10-12 18:02:24] Accepted 122c1ff1 Diff 14/1 GPU 1 pool 1

The 8 byte hex value are the 2nd 8 bytes of the share being submitted to the pool. The 2 diff values are the actual difficulty target that share reached followed by the difficulty target the pool is currently asking for.

The output line shows the following: (5s):1713.6 (avg):1707.8 Mh/s | A:729 R:8 HW:0 WU:22.53/m

Each column is as follows: 5s: A 5 second exponentially decaying average hash rate avg: An all time average hash rate A: The total difficulty of Accepted shares R: The total difficulty of Rejected shares HW: The number of HardWare errors WU: The Work Utility defined as the number of diff1 shares work / minute (accepted or rejected).

GPU 1: 73.5C 2551RPM | 427.3/443.0Mh/s | A:8 R:0 HW:0 WU:4.39/m

Each column is as follows: Temperature (if supported) Fanspeed (if supported) A 5 second exponentially decaying average hash rate An all time average hash rate The total difficulty of accepted shares The total difficulty of rejected shares The number of hardware erorrs The work utility defined as the number of diff1 shares work / minute

The sgminer status line shows: ST: 1 SS: 0 NB: 1 LW: 8 GF: 1 RF: 1

ST is STaged work items (ready to use). SS is Stale Shares discarded (detected and not submitted so don't count as rejects) NB is New Blocks detected on the network LW is Locally generated Work items GF is Getwork Fail Occasions (server slow to provide work) RF is Remote Fail occasions (server slow to accept work)

The block display shows: Block: 0074c5e482e34a506d2a051a... Started: [17:17:22] Best share: 2.71K

This shows a short stretch of the current block, when the new block started, and the all time best difficulty share you've found since starting sgminer this time.

Multipool

Failover strategies

A number of different strategies for dealing with multipool setups are available. Each has their advantages and disadvantages so multiple strategies are available by user choice, as per the following list:

Failover

The default strategy is failover. This means that if you input a number of pools, it will try to use them as a priority list, moving away from the 1st to the 2nd, 2nd to 3rd and so on. If any of the earlier pools recover, it will move back to the higher priority ones.

Round robin

This strategy only moves from one pool to the next when the current one falls idle and makes no attempt to move otherwise.

Rotate

This strategy moves at user-defined intervals from one active pool to the next, skipping pools that are idle.

Load balance

This strategy sends work to all the pools on a quota basis. By default, all pools are allocated equal quotas unless specified with --quota. This apportioning of work is based on work handed out, not shares returned so is independent of difficulty targets or rejected shares. While a pool is disabled or dead, its quota is dropped until it is re-enabled. Quotas are forward looking, so if the quota is changed on the fly, it only affects future work. If all pools are set to zero quota or all pools with quota are dead, it will fall back to a failover mode. See quota below for more information.

The failover-only flag has special meaning in combination with load-balance mode and it will distribute quota back to priority pool 0 from any pools that are unable to provide work for any reason so as to maintain quota ratios between the rest of the pools.

Balance

This strategy monitors the amount of difficulty 1 shares solved for each pool and uses it to try to end up doing the same amount of work for all pools.

Quotas

The load-balance multipool strategy works off a quota based scheduler. The quotas handed out by default are equal, but the user is allowed to specify any arbitrary ratio of quotas. For example, if all the quota values add up to 100, each quota value will be a percentage, but if 2 pools are specified and pool0 is given a quota of 1 and pool1 is given a quota of 9, pool0 will get 10% of the work and pool1 will get 90%. Quotas can be changed on the fly by the API, and do not act retrospectively. Setting a quota to zero will effectively disable that pool unless all other pools are disabled or dead. In that scenario, load-balance falls back to regular failover priority-based strategy. While a pool is dead, it loses its quota and no attempt is made to catch up when it comes back to life.

To specify quotas on the command line, pools should be specified with a semicolon separated --quota(or -U) entry instead of --url. Pools specified with --url are given a nominal quota value of 1 and entries can be mixed.

For example: --url poola:porta -u usernamea -p passa --quota "2;poolb:portb" -u usernameb -p passb Will give poola 1/3 of the work and poolb 2/3 of the work.

Writing configuration files with quotas is likewise supported. To use the above quotas in a configuration file they would be specified thus:

"pools" : [
    {
            "url" : "poola:porta",
            "user" : "usernamea",
            "pass" : "passa"
    },
    {
            "quota" : "2;poolb:portb",
            "user" : "usernameb",
            "pass" : "passb"
    }
]

Extra File Configuration

If you want to store a number of pools in your configuration file, but don't always want them automatically enabled at start up (or restart), then the "state" option with a value of "disabled" can be used:

"pools" : [
    {
            "url" : "poola:porta",
            "user" : "usernamea",
            "pass" : "passa"
    },
    {
            "quota" : "2;poolb:portb",
            "user" : "usernameb",
            "pass" : "passb",
            "state" : "disabled"
    }
]

It is then trivial to change the "state" setting to "enabled" in the configuration file at anytime and then restart the miner (see below). You can enable the pool whilst the miner is still running ('p' followed by 'e' followed by pool number) - but the pool will still be disabled on restart if the config file is not changed.

"state" can also be set to "hidden". This allows the json file to contain a large number of pools, of which some could be automatically culled at start up. This makes it easy to swap pools in and out of the runtime selection, without having a large list of pools cluttering up the display.

"pools" : [
    {
            "poolname" : "Main Pool",
            "url" : "poola:porta",
            "user" : "usernamea",
            "pass" : "passa",
            "state" : "disabled"
    },
    {
            "poolname" : "Joe's Weekend Pool",
            "quota" : "2;poolb:portb",
            "user" : "usernameb",
            "pass" : "passb",
            "state" : "hidden"
    }
]

These options are considered experimental and therefore will NOT be created when the 'Write config file' option is used ('s' followed by 'w').

A restart of the miner ('s' followed by 'c') will reload the config file and any changes that may have been made.

Logging

sgminer will log to stderr if it detects stderr is being redirected to a file. To enable logging simply append 2>logfile.txt to your command line and logfile.txt will contain all debug output unless you set debug-log to false, in which case it will only contain output at the log level you specified (notice by default).

There is also the -m option on Linux which will spawn a command of your choice and pipe the output directly to that command.

The WorkTime details 'debug' option adds details on the end of each line displayed for Accepted or Rejected work done. An example would be:

<-00000059.ed4834a3 M:X D:1.0 G:17:02:38:0.405 C:1.855 (2.995) W:3.440 (0.000) S:0.461 R:17:02:47

The first 2 hex codes are the previous block hash, the rest are reported in seconds unless stated otherwise: The previous hash is followed by the getwork mode used M:X where X is one of P:Pool, T:Test Pool, L:LP or B:Benchmark, then D:d.ddd is the difficulty required to get a share from the work, then G:hh:mm:ss:n.nnn, which is when the getwork or LP was sent to the pool and the n.nnn is how long it took to reply, followed by 'O' on it's own if it is an original getwork, or 'C:n.nnn' if it was a clone with n.nnn stating how long after the work was recieved that it was cloned, (m.mmm) is how long from when the original work was received until work started, W:n.nnn is how long the work took to process until it was ready to submit, (m.mmm) is how long from ready to submit to actually doing the submit, this is usually 0.000 unless there was a problem with submitting the work, S:n.nnn is how long it took to submit the completed work and await the reply, R:hh:mm:ss is the actual time the work submit reply was received

If you start sgminer with the --sharelog option, you can get detailed information for each share found. The argument to the option may be "-" for standard output (not advisable with the ncurses UI), any valid positive number for that file descriptor, or a filename.

To log share data to a file named "share.log", you can use either: ./sgminer --sharelog 50 -o xxx -u yyy -p zzz 50>share.log ./sgminer --sharelog share.log -o xxx -u yyy -p zzz

For every share found, data will be logged in a CSV (Comma Separated Value) format: timestamp,disposition,target,pool,dev,thr,sharehash,sharedata For example (this is wrapped, but it's all on one line for real): 1335313090,reject, ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000, http://localhost:8337,GPU0,0, 6f983c918f3299b58febf95ec4d0c7094ed634bc13754553ec34fc3800000000, 00000001a0980aff4ce4a96d53f4b89a2d5f0e765c978640fe24372a000001c5 000000004a4366808f81d44f26df3d69d7dc4b3473385930462d9ab707b50498 f681634a4f1f63d01a0cd43fb338000000000080000000000000000000000000 0000000000000000000000000000000000000000000000000000000080020000

sgminer-gm's People

Contributors

aznboy84 avatar bitbandi avatar bllacky avatar ckolivas avatar denis2342 avatar elbandi avatar fleger avatar gzm55 avatar joe4782 avatar kalroth avatar kanoi avatar luke-jr avatar mrbrdo avatar nan-git avatar nelisky avatar neocogent avatar nushor avatar ohgodagirl avatar prettyhatemachine avatar pshep avatar rustyrussell avatar setkeh avatar someone42 avatar sterlingpickens avatar troky avatar tupieurods avatar veox avatar xiangfu avatar ycros avatar ystarnaud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sgminer-gm's Issues

API Re-Work

I forked this to more easily follow this project a while back and spent some time studying the code. I noticed others making suggestions for a GUI to interface with the application. While the API is nice it lacks a lot of capabilities. Therefore, I have been working on revamping the API to not only provide all of the information the console app provides (When it's using ncurses) but also to allow real time control of all the existing features that the can be altered dynamically on the fly. During the rebuild of the API I will do it in such a way that each API subroutine is located in it's own .c file for orginizational purposes. The api will have a master.c file that parses and calls the appropriate functions. This will allow for easier additions to the api by adding a parsing instruction in the api master file and the code in a new .c file for the added feature. Once the entire CLI (Curses) interface is 100% API compatible it will open a doorway to creating very sharp looking GUI's in C# (My favorite for GUI development because of it's cross compatibility). The GUI can also be designed in such a way to manage all the machines within a subnet but right now getting the API polished to where it will function as a communications protocol to a GUI (Or web interface) is most important.

What would be the best way for me to proceed with this? I can re-fork the repository so that I can keep it's code current with sgminer-gm to be merged into your main project once completed. While under development there would be far too many pull requests for you to manage because the API, as it stands right now is a sloppy mess, needs a lot of changes.

Let me know your thoughts... Thanks.

One Suggestion: If anyone is knowledgeable on the Vulkan API I would love to see a modular Spir-V kernel implementation the same way OpenCL is integrated. In fact if everything where moved over to Vulkan it would become 100% cross compatible across all operating systems and all GPU's. That's just a thought tho. My private miner uses Vulkan and I will just say that I'm getting close to 2X OpenCL's hash-rate but it's been extremely hardware optimized. My private miner was written in C++ tho so its code is not directly compatible with this miner due to my heavy use of classes and custom vector structures.

Visual Studio build errors

I am using VS 2013 and when I try to compile x86 version I've got several errors:

1>..\driver-opencl.c(521): error C2440: '=' : cannot convert from 'uint32_t *' to 'int *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\driver-opencl.c(531): error C2440: '=' : cannot convert from 'uint32_t *' to 'int *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\driver-opencl.c(538): error C2440: '=' : cannot convert from 'uint32_t *' to 'int *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\driver-opencl.c(1240): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>..\driver-opencl.c(1435): error C2440: '=' : cannot convert from 'void *' to 'uint32_t *'
1>          Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>..\sgminer.c(2047): error C2440: '=' : cannot convert from 'void *' to 'char *'
1>          Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>..\sgminer.c(2562): error C2664: 'bool parse_diff_ethash(char *,const char *)' : cannot convert argument 1 from 'uint8_t [32]' to 'char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\sgminer.c(3332): error C2664: 'char *bin2hex(const unsigned char *,size_t)' : cannot convert argument 1 from 'uint64_t *' to 'const unsigned char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\sgminer.c(6031): error C2664: 'char *bin2hex(const unsigned char *,size_t)' : cannot convert argument 1 from 'uint64_t *' to 'const unsigned char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\sgminer.c(6053): error C2664: 'char *bin2hex(const unsigned char *,size_t)' : cannot convert argument 1 from 'uint32_t *' to 'const unsigned char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\util.c(1370): error C2440: '=' : cannot convert from 'void *' to 'char *'
1>          Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>..\util.c(1862): error C2664: 'bool hex2bin(unsigned char *,const char *,size_t)' : cannot convert argument 1 from 'char *' to 'unsigned char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\util.c(1866): error C2664: 'bool hex2bin(unsigned char *,const char *,size_t)' : cannot convert argument 1 from 'char *' to 'unsigned char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\util.c(1908): error C2664: 'bool parse_diff_ethash(char *,const char *)' : cannot convert argument 1 from 'uint8_t [32]' to 'char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\util.c(1910): error C2664: 'bool parse_diff_ethash(char *,const char *)' : cannot convert argument 1 from 'uint8_t [32]' to 'char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\util.c(2006): error C2440: '=' : cannot convert from 'const char *' to 'char *'
1>          Conversion loses qualifiers
1>..\util.c(2007): error C2664: 'bool hex2bin(unsigned char *,const char *,size_t)' : cannot convert argument 1 from 'uint32_t *' to 'unsigned char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\util.c(2087): error C2440: '=' : cannot convert from 'char *' to 'uint8_t *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\util.c(2092): error C2664: 'bool hex2bin(unsigned char *,const char *,size_t)' : cannot convert argument 2 from 'uint8_t *' to 'const char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

Will appreciate any advise how to compile it under Windows 7 VS 2013

Intermittent hang during sgminer startup

This is likely to be an awkward one to track down, an intermittent bug (perhaps a race condition) that occurs irregularly (one time in three or four) when starting sgminer on system startup, and results in sgminer hanging before bringing up the curses interface, after initialising GPUs and connecting to pools but before generating work and getting started.

When this occurs, sgminer stops writing to the debug log and the curses interface, sitting in limbo until I send a Ctrl-C to kill it. Upon which, it briefly draws the curses interface, displaying the last message as "Waiting for work to become available from pools" before exiting with the usual summary. There is a twist, though - at the same time, it then flushes to the debug log a pile of messages from stratum_rthread indicating that work was indeed being received from the pools.

Attached debug log (1.7MB) showing how far it got when it started up at 22:37 and what it subsequently logged in which order on killing it at 01:37, in hopes that this helps identify where the issue is. The same configuration works more often than not, hence the suspicion of a race condition of some sort.

sgminer-hang.log

auto-fan fails to control fan, sets GPU0 to 0%

Errors in debug log, and auto fan fails to manage fan-speeds on amdgpu-pro 16.50 and 16.40. Fan of GPU 0 goes to 0 and the rest of the fans fail to change regardless of gpu-temp.

Debug log contains:
[00:41:01] Failed to open /sys/bus/pci/devices/0000:01:00.0/hwmon/hwmon0/fan1_input
[00:41:01] Failed to open /sys/bus/pci/devices/0000:02:00.0/hwmon/hwmon1/fan1_input
[00:41:01] Failed to open /sys/bus/pci/devices/0000:03:00.0/hwmon/hwmon2/fan1_input
[00:41:01] Failed to open /sys/bus/pci/devices/0000:04:00.0/hwmon/hwmon3/fan1_input
[00:41:01] Failed to open /sys/bus/pci/devices/0000:05:00.0/hwmon/hwmon4/fan1_input
[00:41:01] Failed to open /sys/bus/pci/devices/0000:08:00.0/hwmon/hwmon5/fan1_input
[00:41:01] Failed to open /sys/bus/pci/devices/0000:0a:00.0/hwmon/hwmon6/fan1_input

On my system (Ubuntu 16.04) the sysfs node should be /sys/bus/pci/devices/0000:0a:00.0/hwmon/hwmon6/pwm1

I don't know about when the drivers are working on other gpu's but that is the correct name for RX470 and RX480 gpu's.

Does auto-fan require ADL?

Note: I tried changing fan1_input to pwm1 in the code, and recompiling. This fixed the log errors, and changed the display so that it reports RPM (but the RPM it reports is a number that is stored in the pwm1 (which is between 0 and 255 representing fan speed). So that is not right. I looked at the code and it appears that the calculation of fan_speed_to_percent and fan_percent_to_speed is correct, but I think it must be that in the past the min-max and fan1_input were RPM's maybe (?) on another driver set. On amdgpu-pro in linux they are 0-255.

In any case with that change, the fan speeds change but with 2 problems.

  1. The fan on GPU0 still slams to 0% and stays there even as the unit gets hot
  2. the fans on the others do not increase enough to cool down the units they are controlling.

I will point out that in the new pwm1 fan control process the change in value must be at least 9 to actually change the fan speed... or else it just stays there. It could be that the 5% adjustments built into sgminer-gm are not enough to move the needle, but I have had a chance to test that yet.

(Has anyone got auto-fan working? I have external fan control code but I suspect the changes cause problems when simultaneous changes are being made by sgminer - so I am trying to get sgminer auto-fan to work)

SGMiner-GM 5.5.5

You've not attached the windows release?
The description has gone now, is there something wrong with it?

failure on epoch change

Just happened with a 4GB R9 290. 2 R9 380s (4GB) controlled by the same sgminer instance handled the transition fine. Running v5.4.0 on Ubuntu 14.04 with fglrx drivers. Same GPU is mining fine after restarting sgminer. Error message:
[14:01:00] Error -2: Setting args for the DAG kernel and/or executing it.
[14:01:00] Error: clSetKernelArg of all params failed.
[14:01:00] GPU 0 failure, disabling!

Cross-platform OpenCL misbehaviour

Edit: not obviously an issue with sgminer but with running it against amdgpu-pro 16.50.

Opening this as a discrete issue, though it likely relates closely to some of the foregoing ones. Setting up a third rig, in Ubuntu initially and on 16.50, I get a flurry of HW errors and no useful work from a config that works on other machines. The problem is characterised by reporting ~2x the plausible hashrate for ethash but with errors; I have run into it on a couple of machines, but been more able to fix it on some than on others. The problem neither seems to lie squarely with the 16.50 driver nor clearly with 5.5.4, though it seems to connect with what has or has not been installed previously. That is to say:

  • having had the same problem on another machine, it persisted with older versions of sgminer against the same driver, but in that case, rebuilding everything, removing old binaries and nuking anything sgminer-related in /usr/local/bin solved it, and on that machine I've 5.5.4 playing nicely with amdgpu-pro 16.50 under 16.04.1.

  • however, I have as yet been incapable of fixing it on the new rig, the same in every respect as a rig that works except that it hasn't seen older versions of sgminer or amdgpu-pro in the same fashion. Packages currently installed are identical, same things tried, user baffled. Installing 5.4.0 didn't fix it, which pushes suspicion towards the drivers (I'll try downgrading). Machine has a working OpenCL setup and will run silentarmy for ZEC or genoil for ETH, pointing me back towards sgminer.

  • now for the red herring. Same rig has a newly installed Windows 10, onto which I installed 16.12.2 drivers, AMDAPPSDK-3.0 and Windows binary of 5.5.4. Stock BIOS, a much simpler config, and the first thing that happens when I get sgminer running? The exact same behaviour from 5.5.4 on a different operating system and a different OpenCL platform.

Quite where that sites the problem, I don't know. In all cases I'm referring to ethash, my suspicion is that something is wrong in the new DAG handling code. Whether and how far this interacts with on-disk binaries, .cl sources and driver versions I'm not adequately certain; it interacts with something as I have 5.5.4 working against 16.50 on other rigs, including where it had previously done the same thing, but quite how I got it so I'm not able to reproduce.

Pursuant to issues reported by others, I'll try the 5.4.0 binary cleanly under Ubuntu before trying an older driver, and ditto under Windows. If there is a bug introduced in 5.5.4, that may help isolate it as such. So far, nothing is working too well for me, and a bitwise clone of another rig is starting to look like an attractive option...!

Edit 1: under Linux, the pre-compiled 5.4.0 binary showed the same behaviour, including when recompiling the binary having supplied the ethash.cl from that version. Doesn't obviously suggest that it relates to changes in 5.5.4.

Edit 2: removing the 16.50 driver and installing 16.30 causes the same 5.4.0 binary to start working as expected. It begins to look like the 16.50 amdgpu-pro release is incomplete, in a way that shows up only on systems that haven't seen older versions.

  • removing 16.30 and installing 16.40 did not cause anything to break, for the same 5.4.0 binary
  • removing 16.40 and installing 16.50 caused the same issue to recur for the same 5.4.0 binary
    • and likewise for 5.5.4 compiled from a clean git checkout
    • despite that I have it working with the same driver on an identical system
      • copying the working sgminer executable from that system, the very same issue
      • that system has an ethashEllesmeregw256l8.bin dating from Nov 26th, size 253264 bytes
        • copying the older .bin file to the offending system is what causes it to "work" with 16.50

Now we're getting somewhere; the problem seems to be with .bin files compiled by the 16.50 driver (which brings a dependency on libllvm-3.8, compiler version bump on AMD's part, and would apply to Linux and Windows releases). The notion of "it works with 16.50" may be "until you compile something".

Edit 3: to complete the picture, I reverted to the 16.40 driver and allowed 5.5.4 to compile a .bin from its own sources. This worked fine, producing a .bin 32 bytes larger than the one from 5.4.0 and 38kB smaller than the .bin that's compiled by the 16.50 driver from the same code. Pretty clear now where the issue lies.

sgminer-gm ethash crash upon dag change

Hello everyone,

I have noticed that when the dag changes low memory gpus (tahiti) often fail and are unable to mine until the sgminer process is stopped and restarted. Any way to make sure the old dag is completely flushed from gpu ram before trying to load the new one? I believe this is the source of the crash.

sgminer 5.5.4-gm crashes on startup on Xubuntu with RX 470 gpus and amdgpu-pro drivers

Here is the log from slightly modified ocl.c prog to get some extended debug printout.
[18:58:48] Started sgminer 5.5.4-gm
[18:58:48] * using Jansson 2.7
[18:58:48] Loaded configuration file ./sgminer.conf
[18:58:48] Probing for an alive pool
[18:58:58] Startup GPU initialization... Using settings from pool XMRDwarfPool.
[18:58:58] Startup Pool No = 0
[18:58:58] Success Creating Context. (clCreateContextFromType)Failed in clCreateCommandQueue [-6]

[18:58:58] Error -6: Creating Command Queue. (clCreateCommandQueue)
[18:58:58] Failed to init GPU thread 0, disabling device 0
[18:58:58] Restarting the GPU from the menu will not fix this.
[18:58:58] Re-check your configuration and try restarting.
Press enter to continue:

This is on Xubuntu 16.04.1 with AMDGPU-PRO version 16.50. I am able to reproduce exact same error in Xubuntu 14.04.5 with AMDGPU-PRO 16.30 on a different rig.

Build config:
CFLAGS="-O2 -std=gnu99 -I/opt/AMDAPPSDK-3.0/include" LDFLAGS="-rdynamic -L/opt/amdgpu-pro/lib/x86_64-linux-gnu" ./configure #--disable-adl --disable-adl-checks

I dont have this problem with rigs where driver is fglrx (R9 280X,380X,390 gpus)

No statistics in syslog

Hello,

I am running sgminer like this:
sgminer -T --syslog -c sgminer.conf

I am trying to get statistics visible in the syslog using journalctl. It doesn't currently work even if you pipe the sgminer output to the syslog manually because the Carriage Return character \r makes journalctl not print it and insert the content into the log buffer with a line that "[binary blob] not printing". This can be viewed with journalctl -a.

By enabling Debug mode, an adequate line is already present in the code, but debug mode is too noisy for normal use.
I see a few possible solutions.

  1. Promote the occasional hashrate debug print from debug to informational

from:

    applog(LOG_DEBUG, "[thread %d: %"PRIu64" hashes, %.5g khash/sec]",
      thr_id, hashes_done, hashes_done / 1000. / secs);

to:

    applog(LOG_INFO, "[thread %d: %"PRIu64" hashes, %.5g khash/sec]",
      thr_id, hashes_done, hashes_done / 1000. / secs);
  1. Add a switch to control it being printed at run-time and |OR it with debug mode.
  2. Replace carriage return with line feed in line that prints: get_statline()
    printf("%s \r", logline);
    Note: Option 3) Would cause a newlines to be printed everytime statistics is updated in text-mode instead of the same line being replaced. I think a new-line is more compatible with loggers, and the "prettiness" of it being printed on the same line should be sacrificed in favor of output that is more "pipe-friendly". I do not believe this affects ncurses mode.

I do not know which of the fixes the devs prefer, but I can implement, test, and submit pull-request for 1) and/or 3) if desired.

Adapt block handling for multiple pools

sgminer's handling of network blocks does odd things when using multiple pools for Ethereum. Most notably in reporting blocks found; finding a block for any pool will log a block found against most or all of the pools in use, often multiple times.

Side effect is that it can spend a minute or two exclaiming recursively that it found a block and assuming there's no other work to be done. I'm not a programmer or adequately familiar with the code, but superficially it would seem that some of the block handling is done per rig and not per pool.

Besides yielding some unlikely statistics:

"Elapsed": 12495,
"Found Blocks": 646,
"Network Blocks": 3653,

this can leave the rig in limbo normally for a few seconds but sometimes for a minute or two, which must impact on overall work output. Where a rig receives stratum work from multiple pools on different blocks, there is room for more gracious handling.

An example of what happens presently:

[13:56:51] Accepted 6b43076f Diff 547M/422M BLOCK! GPU 4 at pool.alpereum.ch
[13:56:52] Found block for pool.alpereum.ch!
[13:56:52] Found block for pool.alpereum.ch!
[13:56:52] Found block for pool.alpereum.ch!
[13:56:53] Found block for us1.ethermine.org!
[13:56:53] Found block for pool.alpereum.ch!
[13:56:53] Found block for pool.alpereum.ch!
[13:56:53] Found block for us1.ethermine.org!
[13:56:54] Found block for eth-eu2.nanopool.org!

(and more of the same).

CPU Usage too high

System: Ubuntu 16.04 x64
Card: Nvidia GTX 1070
Sgminer:5.5.5 (binary linux release)

The miner fires up fine, I have the following startup parameters. The GPU hash rates are okish and I am getting accepted shares too.
./sgminer_ubuntu64 -T -I21 -o stratum+tcp://eth-eu1.nanopool.org:9999 -u <pooluser> -p x --no-adl -k ethash-new

The issue is that the CPU usage is through the roof, it is consuming almost 100% of CPU all the time. Has anyone experienced this before? Is SGMiner accidently my CPU to mine too?

@OhGodAGirl Any comments?

IDLE time(suggestion)

Hi
Thank you for this great miner
If you could let us to change IDLE time or let me know how to do it ,it would be great.
600s is high for me because when I lost my internet connection for even short period of time(about 60s) when my internet back to work again my computer goes to crash. it's because of GPU overclock and my motherboard type.(just in ETH mining, monero is fine)
sometimes screen GPU hang then computer don't reboot automaticaly.
I need to lower IDLE timer to set an event for reboot.
Other suggestion is a controller, like the one claymore have. for end of your doing list...If you find time
this miner is far better than Claymore and I know you can make it even better
Thank you guys
keep it up !

Possibly remove jansson, use one from distro?

Most Linux distributions have libjansson-dev available in their package management systems. Compile could be speeded up and complexity reduced by linking against a distro-provided libjansson-dev where available. Option to build jansson from git could usefully be retained for compatibility and could be bumped to 2.9 or master.

I might have a go at this, if noone fancies it.

Odd bug seems to require reboot after reinstall

On the first of two machines, I had recently upgraded the graphics driver, so I didn't see it as connected with sgminer-gm, but have just had the same issue on another machine where neither kernel nor driver had changed.

After installing 5.5.4 and running it, initially it rockets to twice the expected hashrate, throwing an unusual amount of hardware errors and finding no valid results. This seems to be a one-time screwing up of the OpenCL platform; once it happens the same thing will happen with 5.4.0 also. After a reboot, 5.5.4 starts working fine. That's now happened the same on two machines, both with amdgpu-pro 16.50 and I suspect that's where the foulup occurs.

Nothing fundamentally wrong with 5.5.4 in operation and not reproduced by reinstalling, so I suspect it may have to do with creating and loading the kernels, and/or with an interaction between a previous installation and the present one. I don't see this being easy to trace and fix, but thought I'd document it in case it affects others.

Crash on ubuntu 16.04 with amd-cpu + cryptonight (rx480 saphire nitro+)

I have no experience with C and dgb.
This is all what i can find

#0  0x00007fffee32dfa4 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#1  0x00007fffee3dc7d6 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#2  0x00007fffee3de8ba in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#3  0x00007fffee3beeb8 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#4  0x00007fffee3c25c5 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#5  0x00007fffee3c325d in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#6  0x00007fffee13bac9 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#7  0x00007fffee154fd9 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#8  0x00007fffee155da7 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#9  0x00007fffee439b5a in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#10 0x00007fffee51f9c2 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#11 0x00007fffee50dc41 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#12 0x00007fffee5117b0 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#13 0x00007fffee4d2f11 in aclCompile () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#14 0x00007fffeddc65bb in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#15 0x00007fffedd7148f in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#16 0x00007fffedd82264 in ?? () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#17 0x00007fffedd61460 in clBuildProgram () from /opt/amdgpu-pro/lib/x86_64-linux-gnu/libamdocl64.so
#18 0x000000000045dcc7 in build_opencl_kernel (data=0x7fffea6bc3e0, filename=0x7fffea6bcb30 "cryptonight.cl") at ocl/build_kernel.c:94
#19 0x000000000044aba7 in initCl (gpu=0, name=0x7fffea6bcca0 "Ellesmere", nameSize=256, algorithm=0x800e20 <gpus+224>) at ocl.c:779
#20 0x0000000000446a11 in opencl_thread_prepare (thr=0x7fffe4004c30) at driver-opencl.c:1288
#21 0x0000000000426ebc in restart_mining_threads (new_n_threads=1) at sgminer.c:9118
#22 0x000000000041e3c0 in apply_initial_gpu_settings (pool=0x842520) at sgminer.c:6950
#23 0x0000000000410fda in __switch_pools (selected=0x0, saveprio=true) at sgminer.c:4524
#24 0x0000000000424690 in test_pool_thread (arg=0x842520) at sgminer.c:8621
#25 0x00007ffff6def6ba in start_thread (arg=0x7fffea6c1700) at pthread_create.c:333
#26 0x00007ffff6b2582d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Part of my clinfo output

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (2264.10)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     Ellesmere
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.2 AMD-APP (2264.10)
  Driver Version                                  2264.10
  Device OpenCL C Version                         OpenCL C 1.2
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Board Name (AMD)                         AMD Radeon (TM) RX 480 Graphics
  Device Topology (AMD)                           PCI-E, 01:00.0
  Max compute units                               36
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             1266MHz
  Graphics IP (AMD)                               8.0
  Device Partition                                (core)
    Max number of sub-devices                     36
    Supported partition types                     none specified
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
  Preferred work group size multiple              64
  Wavefront width (AMD)                           64

Can not compile with ADL support (can not understand problem origin)

I'm not able to compile with ADL support on ubuntu 16.04 and gcc 5.
It is really confusing but I can not understand origin of this issuie because I see function definition in adl.h and it included to driver-opencl.c
So it looks like it must work but it does not :(

sgminer-driver-opencl.o: In function `opencl_detect':
driver-opencl.c:(.text+0xd8d): undefined reference to `init_adl'
collect2: error: ld returned 1 exit status
Makefile:854: recipe for target 'sgminer' failed
make[2]: *** [sgminer] Error 1
make[2]: Leaving directory '/home/miner/miners/sgminer-gm'
Makefile:1721: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/miner/miners/sgminer-gm'
Makefile:663: recipe for target 'all' failed
make: *** [all] Error 2

5.5.4 crash under Ubuntu

I tried the pre-built 5.5.4, but it didn't work due to library version mismatch (5.4.0 binary runs OK).
A fresh git build (using gcc 4.8.4, without ADL) crashes shortly after startup:

[12:41:34] Started sgminer 5.5.4-gm
[12:41:34] * using Jansson 2.7

[12:41:34] Pool 0 lookup gap set to "(null)"
[12:41:34] Pool 0 XIntensity set to "1024"
[12:41:34] Pool 0 Thread Concurrency set to "(null)"
[12:41:34] Pool 0 GPU Clock set to "(null)"
[12:41:34] Pool 0 GPU Memory clock set to "(null)"
[12:41:34] Pool 0 GPU Threads set to "1"
[12:41:34] WARNING: GPU_MAX_ALLOC_PERCENT is not specified!
[12:41:34] WARNING: GPU_USE_SYNC_OBJECTS is not specified!Segmentation fault (core dumped)

sgminer -n works OK, correctly displaying all GPUs in the system.

Windows Visual Studio Link errors

I am unable to resolve VS2017 C++ linker issue with ADL and Algorithms. Please advise.

1>adl.obj : error LNK2001: unresolved external symbol "bool opt_reorder" (?opt_reorder@@3_NA)
1>adl.obj : error LNK2001: unresolved external symbol "int opt_hysteresis" (?opt_hysteresis@@3Ha)
1>adl.obj : error LNK2001: unresolved external symbol "int opt_overheattemp" (?opt_overheattemp@@3Ha)
1>adl.obj : error LNK2001: unresolved external symbol "int opt_targettemp" (?opt_targettemp@@3Ha)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl equihash_calc_mid_hash(unsigned __int64 * const,unsigned char *)" (?equihash_calc_mid_hash@@YAXQEA_KPEAE@Z)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl yescrypt_regenhash(struct work *)" (?yescrypt_regenhash@@YAXPEAUwork@@@z)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl cryptonight_regenhash(struct work *)" (?cryptonight_regenhash@@YAXPEAUwork@@@z)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl precalc_hash_blakecoin(struct _dev_blk_ctx *,unsigned int *,unsigned int *)" (?precalc_hash_blakecoin@@YAXPEAU_dev_blk_ctx@@Peai1@Z)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl equihash_regenhash(struct work *)" (?equihash_regenhash@@YAXPEAUwork@@@z)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl blake256_regenhash(struct work *)" (?blake256_regenhash@@YAXPEAUwork@@@z)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl blakecoin_regenhash(struct work *)" (?blakecoin_regenhash@@YAXPEAUwork@@@z)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl ethash_regenhash(struct work *)" (?ethash_regenhash@@YAXPEAUwork@@@z)
1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl precalc_hash_blake256(struct _dev_blk_ctx *,unsigned int *,unsigned int *)" (?precalc_hash_blake256@@YAXPEAU_dev_blk_ctx@@Peai1@Z)
1>driver-opencl.obj : error LNK2001: unresolved external symbol "unsigned int __cdecl equihash_verify_sol(struct work *,struct sols_s *,int)" (?equihash_verify_sol@@YAIPEAUwork@@PEAUsols_s@@h@Z)
1>driver-opencl.obj : error LNK2001: unresolved external symbol "bool __cdecl init_sysfs_hwcontrols(int)" (?init_sysfs_hwcontrols@@YA_NH@Z)
1>sgminer.obj : error LNK2001: unresolved external symbol "void __cdecl eth_gen_cache(struct pool *)" (?eth_gen_cache@@YAXPEAUpool@@@z)
1>sgminer.obj : error LNK2001: unresolved external symbol "int __cdecl add_var_int(unsigned char *,unsigned __int64)" (?add_var_int@@YAHPEAE_K@Z)
1>sgminer.obj : error LNK2001: unresolved external symbol "bool __cdecl set_coinbasetxn(struct pool *,unsigned int,unsigned __int64,unsigned __int64,char const *)" (?set_coinbasetxn@@YA_NPEAUpool@@I_K1PEBD@Z)
1>sgminer.obj : error LNK2001: unresolved external symbol "unsigned int __cdecl EthCalcEpochNumber(unsigned char *)" (?EthCalcEpochNumber@@YAIPEAE@Z)
1>sgminer.obj : error LNK2001: unresolved external symbol "void __cdecl sysfs_cleanup(int)" (?sysfs_cleanup@@Yaxh@Z)
1>util.obj : error LNK2001: unresolved external symbol "double eth2pow256" (?eth2pow256@@3na)

sgminer will not start on clean install win 64bit full updated

Since two weeks i try to use sgminer

i have one rig where i stopped updates about half year ago, there sgminer works.

all other rigs, like yesterday - tried a completly new install win 10 64 bit all updates, no chance to start sgminer, - start and close immedatly- but all other miners work (all claymore, gpu, cpu, nheqminer)!?

and the problem for sgminer i cannot find a kind of log file to see what happens.

then i tried ccminer: strange: start, close , say one win .dll missing - but this dll comes with cc, also ms has a command line which auto repairs these dlls--all ok!

get crazy! surly made min. 5 fresh installs with complete different hardware, mobo,ram,ssd, cpu, gpu!!

always same, claymore ......work -sgminer start and close immediatly!

i am the only one have this problem? and also in www i could not find anything helpful

somebody have any ideas? would be great!

Support for nicehash pools?

I am testing sgminer-gm and so far it is great. However I use it to switch between multiple pools, including nicehash. Are there any plans to be able to mine to nicehash pools?

GUI Request

User maxmad_x has requested SGMiner-GM to have a GUI.

Lack of clock support, unable to compile on Mac 10.12.3

Hi everyone,
I'd like to tell you about an error during compiling on Mac 10.12.3. Basically, I downloaded the git repo, updated submodules, did autoreconf and config without any problems.
I used this command:
CFLAGS="-O2 -march=native -std=gnu99" ./configure

And this is its output:

\ ------------------------------------------------------------------------
sgminer 5.5.5-gm-a
\ ------------------------------------------------------------------------

Configuration Options Summary:

Use git version......: yes
libcurl(GBT+getwork).: Enabled: -lcurl
curses.TUI...........: FOUND: -lncurses
OpenCL...............: FOUND. GPU mining support enabled
ADL..................: SDK found, GPU monitoring support enabled

Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -O2 -march=native -std=gnu99
LDFLAGS..............:
LDADD................: -ldl -lcurl submodules/jansson/src/.libs/libjansson.a -lpthread -framework OpenCL -lm

Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local

The problem occurs when I issue make command... Even though there are some warnings about ADL or sgmins.c, I get the following error which causes the compilation to fail:

util.c:1005:11: warning: implicit declaration of function 'clock_nanosleep' is
      invalid in C99 [-Wimplicit-function-declaration]
    ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, ts_end, NULL);
          ^
util.c:1005:44: error: use of undeclared identifier 'TIMER_ABSTIME'
    ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, ts_end, NULL);
                                           ^

After some research online, it seems that TIMER_ABSTIME and clock_nanosleep are not supported on Mac OS but just on Linux. Some functions, like clock_gettime, have been introduced since Mac 10.12 (as stated in time.h).
Is there a way to solve this and compile this version of sgminer on Mac OS? Someone advised to use Mach Time as a workaround but I really don't know how to deal with it.
Hope someone could figure this out.
Thanks for the help and for your work!

Sgminer 5.5.4 crashes on cryptonight

There is a strange behaviour using sgminer-gm 5.5.4 with cryptonigt-kernel:

If the miner is pointed to stratum+tcp://europe.cryptonight-hub.miningpoolhub.com:17024, it receives no work. It usually ends with a crash. Tested on Win 10.

If pointed to stratum+tcp://europe.cryptonight-hub.miningpoolhub.com:20580, it works normally.

Could you investigate it from the miner side?

Running sgminer as a cron job

Doing sudo crontab -e I add the line below. Checking the log the cron job is executed but no screen session gets created. Running the sgminer command standalone works

47 21 * * * screen -dmS sgminer /usr/local/bin/sgminer --config ~/sgminer-gm/xmr.conf

OpenCL Mesa

Add feature to support OpenCL Mesa (Clover)

how to properly build on macOS

whats wrong on my Mac?

CCLD sgminer Undefined symbols for architecture x86_64: "_lyra2rehash", referenced from: _lyra2re_test in sgminer-lyra2re.o _lyra2re_regenhash in sgminer-lyra2re.o _scanhash_lyra2re in sgminer-lyra2re.o "_lyra2rev2hash", referenced from: _lyra2rev2_test in sgminer-lyra2rev2.o _lyra2rev2_regenhash in sgminer-lyra2rev2.o _scanhash_lyra2rev2 in sgminer-lyra2rev2.o "_pluckrehash", referenced from: _pluck_test in sgminer-pluck.o _pluck_regenhash in sgminer-pluck.o _scanhash_pluck in sgminer-pluck.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [sgminer] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

CFLAGS="-O2 -Wall -march=native -std=gnu99" ./configure

gave me:


sgminer 5.5.5-gm-a

Configuration Options Summary:

Use git version......: yes
libcurl(GBT+getwork).: Enabled: -lcurl
curses.TUI...........: FOUND: -lncurses
OpenCL...............: FOUND. GPU mining support enabled
ADL..................: SDK NOT found, GPU monitoring support DISABLED

Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -O2 -Wall -march=native -std=gnu99
LDFLAGS..............:
LDADD................: -lcurl submodules/jansson/src/.libs/libjansson.a -lpthread -framework OpenCL -lm

Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local

anybody has successfully build on newest macOS?

Monero Local Node

im unable to connect to my local monero node. here are my conf file settings:

{ "pools": [ { "name": "LocalNode", "url": "http://192.168.1.120:18081", "user": "mywalletaddress", "pass": "x", "priority": "0", "profile": "xmr" } ], "profiles": [ { "name": "xmr", "algorithm": "cryptonight", "intensity": "10", "worksize": "4", "gpu-threads": "2" } ], "temp-target": "75", "temp-overheat": "85", "temp-cutoff": "90", "gpu-fan": "60-90", "auto-fan": true, "default-profile": "xmr", "no-submit-stale": true, "no-extranonce": true }

i tried like in wolf miner to use the "deamon+tcp" but no go.

any pointers?

sgminer 5.5.5 problem with igpu

sgminer can not detect an amd card when igpu is enabled.

`PS D:\Users\XXX\sgminer-gm-5-5-5-windows> .\sgminer.exe -n

[20:06:09] CL Platform vendor: Intel(R) Corporation

[20:06:09] CL Platform name: Intel(R) OpenCL

[20:06:09] CL Platform version: OpenCL 1.2

[20:06:09] Platform devices: 1

[20:06:09] 0 Intel(R) HD Graphics

[20:06:09] Number of ADL devices: 1

[20:06:09] ATI ADL Overdrive5 API found.

[20:06:09] ATI ADL Overdrive6 API found.

[20:06:09] Found 9 logical ADL adapters

[20:06:09] ADL index 0, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL index 1, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL index 2, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL index 3, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL index 4, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL index 5, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL index 6, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL index 7, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL index 8, id 1999118508 - FAILED to get BIOS info

[20:06:09] Failed to ADL_Adapter_ID_Get. Error -1

[20:06:09] ADL found less devices than opencl!

[20:06:09] There is possibly more than one display attached to a GPU

[20:06:09] Use the gpu map feature to reliably map OpenCL to ADL

[20:06:09] WARNING: Number of OpenCL and ADL devices did not match!

[20:06:09] Hardware monitoring may NOT match up with devices!

[20:06:09] 1 GPU devices max detected

PS D:\Users\XXX\sgminer-gm-5-5-5-windows>`

Stratum connection interrupted

Hello,
When I use a fixed diff (lowest or highest than my average automatic diff), I have a lot of connection interrupted, why ?
(I use it for xmr )

Error -11: Building Program (clBuildProgram)

I downloaded SGMiner-GM 5.5.5

I put the following lines on start.bat file:

:loop
setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_MAX_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_MAX_SINGLE_ALLOC_PERCENT 100
sgminer -k cryptonight -o stratum+tcp://pool.usxmrpool.com:7777 -u "41ohdPhtismLsAgYE9XLR9bw7i9i8f3zTZ6umEa24GnSfA5zmdJtigchwkNQpKJaJc91BzU7WUM5fabFb4FLgqrU9CRJBPz" -p x --rawintensity 896 -w 8 -g 1
pause
echo restart miner...
goto loop`

I get:

[23:53:41] Started sgminer 5.5.5-gm
[23:53:41] * using Jansson 2.7
[23:53:41] WARNING: GPU_USE_SYNC_OBJECTS is not specified!
[23:53:41] Probing for an alive pool
[23:53:41] Startup GPU initialization... Using settings from pool pool.usxmrpool.com.
[23:53:41] Startup Pool No = 0
[23:53:41] Building binary cryptonightGeForce GT 610gw8l4.bin
[23:53:42] Error -11: Building Program (clBuildProgram)

Error in hsa_operand section, at offset 3296: Address offset exceeds variable size LLVM ERROR: Brig container validation has failed in BRIGAsmPrinter.cpp

On w7 64Bit. using AMD driver 16.11.3 and 2x RX480 with 1 Niv K5200

get the follwing after running this

sgminer.exe --gpu-platform 1 --api-listen -k neoscrypt -o stratum+ssl://hub.miningpoolhub.com:17012 -u Etherion.hzws1 -p x --gpu-threads 1 --worksize 64 --intensity 13 --thread-concurrency 64

output>

[15:14:55] Started sgminer 5.5.5-gm
[15:14:55] * using Jansson 2.7

Error in hsa_operand section, at offset 3296:
Address offset exceeds variable size
LLVM ERROR:
Brig container validation has failed in BRIGAsmPrinter.cpp

If I leave out --gpu-platform 1 then it mines with he Nv K5200
Any suggestions?

5.5.5 with Parity: Discarded cloned or rolled work

I have been trying to connect to my Parity node (1.4.10 using HTTP & 1.6.0 using STRATUM) sgminer connects fine, gets work, but then its all

19:23:08] [THR0] gen_stratum_work() - algorithm = ethash [19:23:08] [THR1] Got work from get queue [19:23:08] Generated stratum work [19:23:08] [THR0] Pushing work from local to hash queue [19:23:09] [THR0] Staged work: total (2) > max (1), discarding [19:23:09] [THR0] Discarded work [19:23:09] Selecting local for work [19:23:09] [THR0] gen_stratum_work() - algorithm = ethash [19:23:09] Generated stratum work [19:23:09] [THR0] Pushing work from local to hash queue [19:23:10] GPU 1 found something? [19:23:10] [THR1] OCL NONCE 01e544f6 (31802614) found in slot 0 (found = 255) [19:23:10] Regenhash: First qword of input: 0xD0D591EF01E544F6. [19:23:10] Regenhash result: 000000153981cca7ba113bbaf0707e1e8eff30924dfe971f4334bdf763bb3f91. [19:23:10] Last ulong: 0x000000153981CCA7. [19:23:10] [THR1] Discarded cloned or rolled work [19:23:10] [thread 0: 149553152 hashes, 29898 khash/sec] [19:23:10] total hashes: 5460066304, total runtime / s: 215.327 [19:23:10] (5s):36.45M (avg):25.36Mh/s | A:0 R:0 HW:0 WU:21.177/m [19:23:10] [thread 1: 109182976 hashes, 21762 khash/sec] [19:23:11] GPU 0 found something? [19:23:11] [THR0] OCL NONCE 04d37c73 (80968819) found in slot 0 (found = 255) [19:23:11] Regenhash: First qword of input: 0xD0D5923004D37C73. [19:23:11] Regenhash result: 0000002cf2324d428b106aebb17536ec2350a4f3cf389fcf58855498d3047e10. [19:23:11] Last ulong: 0x0000002CF2324D42. [19:23:11] [THR0] Discarded cloned or rolled work

my settings are:

`
{
"pools":
[
{
"name": "local",
"url": "stratum+tcp://192.168.1.120:3337",
"user": "x",
"pass": "x",
"profile": "eth"
}
],
"profiles":
[
{
"name": "eth",
"gpu-powertune": "0",
"algorithm": "ethash",
"xintensity": "1024",
"worksize": "192",
"gpu-threads": "1"
}
],

 "default-profile": "eth",
 "no-extranonce": "true"

}
`

Windows Release XMR

Hi! Is there any chance we can get a new windows release that includes the pull request which fixed the windows related issue? Please.. :-)

Can't connect to solo XMR (sgminer-gm-5.4.0-alpha)

I've got a monero node set up on my host and I'm trying to get this to connect, but I'm having issues. When I've got it set up, the monerod (v0.10.0.0) shows

2016-Nov-16 18:09:02.108777 [RPC1]ERROR /DISTRIBUTION-BUILD/contrib/epee/include/net/http_protocol_handler.inl:356 simple_http_connection_handler<t_connection_context>::handle_invoke_query_line(): Failed to match first line: {"method": "login", "params": {"login": "43KP6ajVvNM3cJTWVZjSL4K7QWDjV5MiyN8NREboesziXJSu5FqVhVxZxdkKiCrsUdPk2BSpHXg5P1DysiT7ogH5FBn6mM8", "pass": "x", "agent": "sgminer/5.4.0-gm"}, "id": 1}

2016-Nov-16 18:09:02.108882 [RPC1]ERROR /DISTRIBUTION-BUILD/contrib/epee/include/net/http_protocol_handler.inl:300 simple_http_connection_handler::handle_char_out: Error state!!!

From the sgminer-gm log:

# ./sgminer-gm-xmr-ubuntu64 -c sgminer.conf -D
18:11:37] Testing monero_solo
[18:11:37] Select timeout/failed connect
[18:11:37] Succeeded delayed connect
[18:11:37] Socket closed waiting in recv_line
[18:11:37] Closing socket for stratum monero_solo
[18:11:37] Failed to parse a \n terminated string in recv_line: buffer =
[18:11:38] No servers were found that could be used to get work from.
[18:11:38] Please check the details from the list below of the servers you have input
[18:11:38] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
[18:11:38] Pool: 0  URL: http://daemon+tcp://localhost:18081  User: 43KP6ajVvNM3cJTWVZjSL4K7QWDjV5MiyN8NREboesziXJSu
5FqVhVxZxdkKiCrsUdPk2BSpHXg5P1DysiT7ogH5FBn6mM8  Password: x

Contents of sgminer.conf:

{
  "pools": [
    {
      "name": "monero_solo",
      "url": "daemon+tcp://localhost:18081",
      "user": "43KP6ajVvNM3cJTWVZjSL4K7QWDjV5MiyN8NREboesziXJSu5FqVhVxZxdkKiCrsUdPk2BSpHXg5P1DysiT7ogH5FBn6mM8",
      "pass": "x",
      "profile": "monero"
    }
  ],
  "profiles": [
    {
      "name": "monero",
      "algorithm": "cryptonight",
      "intensity": "19",
      "thread-concurrency": "10696,8192",
      "worksize": "512",
      "gpu-engine": "1100",
      "gpu-threads": "2",
      "gpu-fan": "75"
    }
  ],
  "failover-only": true,
  "default-profile": "monero",
  "gpu-memdiff": "0,0",
  "shares": "0",
  "kernel-path": "/home/miner/kernel",
  "api-allow": "W:127.0.0.1",
  "api-listen": true,
  "api-mcast-port": "4028",
  "api-port": "4028",
  "expiry": "1",
  "failover-switch-delay": "60",
  "gpu-dyninterval": "7",
  "gpu-platform": "-1",
  "hamsi-expand-big": "4",
  "log": "5",
  "no-pool-disable": true,
  "no-client-reconnect": true,
  "queue": "0",
  "scan-time": "1",
  "tcp-keepalive": "30",
  "temp-hysteresis": "3"
}

Anyone have any thoughts here?

Thanks!

6 GPUS NOT RECOGNIZED | ONLY 4

Hi!
After compiling successfully sgminer-5.5.5 with amd-driver 16.40 (tried also with 16.50 & 16.40 openCl things) on an ubuntu 16.04.1 the SO is reporting the SIX GPUS "Ellesmere" but SGMINER doesn't see them.

can you please help me?

root@tlaloc:~# lspci | grep -i vga | wc -l
6
root@tlaloc:~# lspci | grep -i vga
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev cf)
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev cf)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev cf)
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev cf)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev cf)
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev cf)
root@tlaloc:~# /opt/sgminer-5.5.5/bin/sgminer --ndevs
[19:11:20] CL Platform vendor: Advanced Micro Devices, Inc.
[19:11:20] CL Platform name: AMD Accelerated Parallel Processing
[19:11:20] CL Platform version: OpenCL 2.0 AMD-APP (2117.10)
[19:11:20] Platform devices: 4
[19:11:20]      0       Ellesmere
[19:11:20]      1       Ellesmere
[19:11:20]      2       Ellesmere
[19:11:20]      3       Ellesmere
[19:11:20] 4 GPU devices max detected
root@tlaloc:~#

Update instructions for amdgpu-pro

Running ./configure as per instructions fails to find OpenCL on an Ubuntu 16.04.1 system with the current amdgpu-pro Linux driver. The following solves it:

CFLAGS="-O2 -march=native -std=gnu99 -I/opt/AMDAPPSDK-3.0/include/" LDFLAGS="-rdynamic -L/opt/amdgpu-pro/lib/x86_64-linux-gnu" ./configure

Presumably it would be trivial to add a check for amdgpu-pro into the configure script to avoid complicating the install instructions (and for the 'just works' factor).

Multiple undefined reference errors while compiling sgminer-sg on Arch

Hello! I have this error compiling sgminer-sg on Arch Linux.

…
CCLD     sgminer
algorithm/sgminer-qubitcoin.o: In function `qubitcoin_test':
qubitcoin.c:(.text+0x72): undefined reference to `qhash'
algorithm/sgminer-qubitcoin.o: In function `qubitcoin_regenhash':
qubitcoin.c:(.text+0xef): undefined reference to `qhash'
algorithm/sgminer-qubitcoin.o: In function `scanhash_qubitcoin':
qubitcoin.c:(.text+0x15b): undefined reference to `qhash'
algorithm/sgminer-quarkcoin.o: In function `quarkcoin_test':
quarkcoin.c:(.text+0x32): undefined reference to `quarkhash'
algorithm/sgminer-quarkcoin.o: In function `quarkcoin_regenhash':
quarkcoin.c:(.text+0xaf): undefined reference to `quarkhash'
algorithm/sgminer-quarkcoin.o: In function `scanhash_quarkcoin':
quarkcoin.c:(.text+0x11b): undefined reference to `quarkhash'
algorithm/sgminer-animecoin.o: In function `animecoin_test':
animecoin.c:(.text+0x32): undefined reference to `animehash'
algorithm/sgminer-animecoin.o: In function `animecoin_regenhash':
animecoin.c:(.text+0xaf): undefined reference to `animehash'
algorithm/sgminer-animecoin.o: In function `scanhash_animecoin':
animecoin.c:(.text+0x11b): undefined reference to `animehash'
algorithm/sgminer-sifcoin.o: In function `sifcoin_test':
sifcoin.c:(.text+0x32): undefined reference to `sifhash'
algorithm/sgminer-sifcoin.o: In function `sifcoin_regenhash':
sifcoin.c:(.text+0xaf): undefined reference to `sifhash'
algorithm/sgminer-sifcoin.o: In function `scanhash_sifcoin':
sifcoin.c:(.text+0x11b): undefined reference to `sifhash'
algorithm/sgminer-twecoin.o: In function `twecoin_test':
twecoin.c:(.text+0x32): undefined reference to `twehash'
algorithm/sgminer-twecoin.o: In function `twecoin_regenhash':
twecoin.c:(.text+0xaf): undefined reference to `twehash'
algorithm/sgminer-twecoin.o: In function `scanhash_twecoin':
twecoin.c:(.text+0x11b): undefined reference to `twehash'
algorithm/sgminer-marucoin.o: In function `marucoin_test':
marucoin.c:(.text+0xc2): undefined reference to `maruhash'
algorithm/sgminer-marucoin.o: In function `marucoin_regenhash':
marucoin.c:(.text+0x13f): undefined reference to `maruhash'
algorithm/sgminer-marucoin.o: In function `scanhash_marucoin':
marucoin.c:(.text+0x1ab): undefined reference to `maruhash'
algorithm/sgminer-talkcoin.o: In function `talkcoin_test':
talkcoin.c:(.text+0x72): undefined reference to `talkhash'
algorithm/sgminer-talkcoin.o: In function `talkcoin_regenhash':
talkcoin.c:(.text+0xef): undefined reference to `talkhash'
algorithm/sgminer-talkcoin.o: In function `scanhash_talkcoin':
talkcoin.c:(.text+0x15b): undefined reference to `talkhash'
algorithm/sgminer-bitblock.o: In function `bitblock_test':
bitblock.c:(.text+0xd2): undefined reference to `bitblockhash'
algorithm/sgminer-bitblock.o: In function `bitblock_regenhash':
bitblock.c:(.text+0x14f): undefined reference to `bitblockhash'
algorithm/sgminer-bitblock.o: In function `scanhash_bitblock':
bitblock.c:(.text+0x1bb): undefined reference to `bitblockhash'
algorithm/sgminer-x14.o: In function `x14_test':
x14.c:(.text+0xd2): undefined reference to `x14hash'
algorithm/sgminer-x14.o: In function `x14_regenhash':
x14.c:(.text+0x14f): undefined reference to `x14hash'
algorithm/sgminer-x14.o: In function `scanhash_x14':
x14.c:(.text+0x1bb): undefined reference to `x14hash'
algorithm/sgminer-fresh.o: In function `fresh_test':
fresh.c:(.text+0x82): undefined reference to `freshHash'
algorithm/sgminer-fresh.o: In function `fresh_regenhash':
fresh.c:(.text+0xff): undefined reference to `freshHash'
algorithm/sgminer-fresh.o: In function `scanhash_fresh':
fresh.c:(.text+0x16b): undefined reference to `freshHash'
algorithm/sgminer-lyra2re.o: In function `lyra2re_regenhash':
lyra2re.c:(.text+0x19f): undefined reference to `lyra2rehash'
algorithm/sgminer-lyra2rev2.o: In function `lyra2rev2_regenhash':
lyra2rev2.c:(.text+0x20f): undefined reference to `lyra2rev2hash'
algorithm/sgminer-pluck.o: In function `pluck_test':
pluck.c:(.text+0x1e72): undefined reference to `pluckrehash'
algorithm/sgminer-pluck.o: In function `pluck_regenhash':
pluck.c:(.text+0x1eef): undefined reference to `pluckrehash'
algorithm/sgminer-pluck.o: In function `scanhash_pluck':
pluck.c:(.text+0x1f5b): undefined reference to `pluckrehash'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:854: sgminer] Error 1
make[2]: Leaving directory '/home/flomop/sgminer-gm'
make[1]: *** [Makefile:1720: all-recursive] Error 1
make[1]: Leaving directory '/home/flomop/sgminer-gm'
make: *** [Makefile:662: all] Error 2

Any ideas?

No servers were found that could be used to get work from.

I'm getting the following message when trying to use the xmr mining alg.

[18:23:41] Pool: 0 URL: stratum+tcp://pool.minexmr.com:7777 User: Password: nothi
ng
[18:23:41] Press any key to exit, or sgminer will try again in 15s. [18:23:57] No servers were found that could be used to get work from.
[18:23:57] Please check the details from the list below of the servers you have input [18:23:57] Most likely you have input the wrong URL, forgotten to add a port, or have not
set up workers
[18:23:57] Pool: 0 URL: stratum+tcp://pool.minexmr.com:7777 User: <taken out> Password: nothi ng [18:23:57] Press any key to exit, or sgminer will try again in 15s.

And from the log output:

[18:24:29] No servers were found that could be used to get work from. [18:24:29] Please check the details from the list below of the servers you have input
[18:24:29] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers [18:24:29] Pool: 0 URL: stratum+tcp://pool.minexmr.com:7777 User: Password: nothing
[18:24:29] Press any key to exit, or sgminer will try again in 15s. [18:24:44] Testing pool.minexmr.com
[18:24:45] Stratum Error: { "code": -1,
"message": "invalid method" }
[18:24:45] Closing pool.minexmr.com socket [18:24:45] Stratum Error: {
"code": -1, "message": "invalid method"
} [18:24:45] Closing socket for stratum pool.minexmr.com

This happens on the monerohash.com mining pool as well.

Documentation Rewrite

User maxmad_x of bitcointalk.org has requested a full rewrite of the documentation.

This should include:

  • Updated dependencies and build instructions,
  • Coding conventions,
  • A human readable version of the code, explaining how the code works - for budding young programmers wanting to contribute,
  • Settings,
  • A how-to for getting started,
  • Optimal settings for the 3xx and 4xx series
  • A walk through on how to compile on your own, perhaps?

Ethash Hardware Errors

I attempted to run sgminer-gm with OhGodAGirl's sample Ethereum file (http://pastebin.com/XqJFHYU2) and I get constant hardware errors, along the lines of one per second or so. Tried playing with the xI values but nothing seems to help. GPU is an RX 480. Is this a known problem or did I do something wrong?

(Ubuntu 16.04, 2 x RX480)

Error -4: Setting args for the DAG kernel and/or executing it.

Can't launch mining of ETH at all. The miner begins to generate a .bin, connecting to pool, and then the error appears. Windows 7 x64. 16.9.2 driver ver. 2x gpu rx470 4 gb.
[10:32:57] Error -4: Setting args for the DAG kernel and/or executing it.
[10:32:57] Error: clSetKernelArg of all params failed.
[10:32:57] GPU 1 failure, disabling!
[10:32:57] Error -4: Setting args for the DAG kernel and/or executing it.
[10:32:57] Error: clSetKernelArg of all params failed.
[10:32:57] GPU 0 failure, disabling!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.