Skip to content
/ xrig Public
forked from netmebtc/xrig

High performance cryptonight miner for AMD cards. Designed for large-scale use of RX Vega.

License

Notifications You must be signed in to change notification settings

SFoskett/xrig

 
 

Repository files navigation

Platform Build Status
Linux Build Status
Win64 Build Status

Xrig

Xrig is a high performance cryptonight miner for AMD cards. Designed for large-scale use of RX Vega.

GPU mining based on Wolf9466 and psychocrypt code. Forked with love from XMRig AMD.

Features

  • CryptoNightV7 ready
  • High performance
  • Designed for large-scale use of RX Vega, but will run any AMD card
  • High level of automation necessary for managing many cards
  • Rich API
  • Hardware monitoring (fans, temperature, clock speeds, performance levels)
  • OverdriveN capabilities (set your under/overclock profile in config.json - replaces Wattman and OverdriveNTool)
  • Fixes the different shenanigans of mining on the Vega's (e.g. the "underclock toggle" and gpu reset)
  • Windows and Linux support
  • Pre-compiled binary has 1% dev donation (donation runs at start rather than after x minutes)

Work-in-progress

  • Option(s) for automatic fine-tuning of each individual card during mining. This should maximize the utilization of each card and increase the hashrate over time

Usage

Command line options

  -a, --algo=ALGO           cryptonight (default) or cryptonight-lite
  -o, --url=URL             URL of mining server
  -u, --user=USERNAME       username for mining server
  -p, --pass=PASSWORD       password for mining server
      --variant=N           PoW variant (defaults to -1 = automatic)
  -k, --keepalive           send keepalive to prevent timeout (needs pool support)
      --intensity=N         thread intensity
      --platform-index=N    OpenCL platform index
      --colors              enable colored output
  -b, --background          run the miner in the background
  -c, --config=FILE         load a JSON-format configuration file
  -l, --log=FILE            log all output to a file
      --nicehash            enable nicehash support
      --port=N              port for the miner API
      --token=T             access token for API
      --id=ID               miner id (defaults to machine name)
  -h, --help                display this help and exit
  -v, --version             output version information and exit

Config file

Sample config for an array of Vega's:

{
    "algo": "cryptonight",
    "intensity": 1932,
    "platform_index": 0,
    "pools": [
        {
            "url": "pool.monero.hashvault.pro:5555",
            "user": "",
            "pass": "x"
        }
    ],
    "api": {
        "port": 4444
    },
    "profile": {
        "system": [
            {"clock": 852,  "vddc": 0.9},
            {"clock": 991,  "vddc": 0.9},
            {"clock": 1084, "vddc": 0.9},
            {"clock": 1138, "vddc": 0.9},
            {"clock": 1150, "vddc": 0.9},
            {"clock": 1202, "vddc": 0.9},
            {"clock": 1350, "vddc": 0.8},
            {"clock": 1350, "vddc": 0.8}
        ],
        "memory": [
            {"clock": 167, "vddc": 0.8},
            {"clock": 500, "vddc": 0.8},
            {"clock": 700, "vddc": 0.9},
            {"clock": 950, "vddc": 0.9}
        ],
        "target_temperature": 75,
        "power_limit": 0
    }
}

Note: to change all P-states you need to have a soft powerplaytable for all cards in your registry.

You can also configure the threads manually as usual:

{
    "algo": "cryptonight",
    "platform_index": 0,
    "pools": [
        {
            "url": "pool.monero.hashvault.pro:5555",
            "user": "",
            "pass": "x"
        }
    ],
    "api": {
        "port": 4444
    },
    "threads": [
        {"index": 0, "intensity": 1932},
        {"index": 0, "intensity": 1932}
    ],
    "profile": {
        // ...
    }
}

Rich API in JSON format

Example output:

{
    "id": "DESKTOP-TEST",
    "version": "Xrig/0.8.0 (Windows NT 10.0; Win64; x64) libuv/1.14.1 OpenCL/2.0 libmicrohttpd/0.9.58 msvc/2017",
    "algo": "cryptonight",
    "uptime": 14729.0,
    "hashrate_10s": 11454.67,
    "hashrate_60s": 11456.87,
    "hashrate_15m": 11451.38,
    "hashrate_max": 11482.48,
    "gpus": [
        {
            "bus_id": 9,
            "adapter_index": 23,
            "device_name": "687F:C3",
            "temperature": 74,
            "core_clock": 1350,
            "memory_clock": 950,
            "fan_speed": 1934,
            "profile": {
                "system": [
                    {"clock": 852,  "vddc": 0.9},
                    {"clock": 991,  "vddc": 0.9},
                    {"clock": 1084, "vddc": 0.9},
                    {"clock": 1138, "vddc": 0.9},
                    {"clock": 1150, "vddc": 0.9},
                    {"clock": 1202, "vddc": 0.9},
                    {"clock": 1350, "vddc": 0.8},
                    {"clock": 1350, "vddc": 0.8}
                ],
                "memory": [
                    {"clock": 167, "vddc": 0.8},
                    {"clock": 500, "vddc": 0.8},
                    {"clock": 700, "vddc": 0.9},
                    {"clock": 950, "vddc": 0.9}
                ],
                "target_temperature": 75,
                "power_limit": 0
            },
            "threads": [
                {
                    "intensity": 1928,
                    "hashrate_10s": 951.86,
                    "hashrate_60s": 951.31,
                    "hashrate_15m": 949.24
                },
                {
                    "intensity": 1928,
                    "hashrate_10s": 951.39,
                    "hashrate_60s": 952.29,
                    "hashrate_15m": 951.5
                }
            ],
            "hashrate_10s": 1903.25,
            "hashrate_60s": 1903.6,
            "hashrate_15m": 1900.74
        },
        {
            // ...
        },
        {
            // ...
        },
        {
            // ...
        },
        {
            // ...
        },
        {
            // ...
        }
    ],
    "results": {
        "diff_current": 526795,
        "shares_good": 308,
        "shares_total": 321,
        "avg_time": 48,
        "hashes_total": 152108212,
        "best": [
            // ...
        ],
        "error_log": []
    },
    "connection": {
        "pool": "cryptonight.eu.nicehash.com:3355",
        "user": "******************************xR7M",
        "uptime": 7056,
        "ping": 84,
        "failures": 2,
        "error_log": []
    }
}

About

High performance cryptonight miner for AMD cards. Designed for large-scale use of RX Vega.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 89.0%
  • C++ 10.8%
  • Other 0.2%