Mining Ergo on AMD Cards

Source: https://ergoplatform.org/en/blog/2018_08_08_amd/

This tutorial will provide you with the information needed to get your AMD cards mining ERGO on either Windows or Linux.

Developer MH Samadani published his AMD Miner just three days after the official launch and is continuously updating it since. To keep track of his updates you can join the Ergo Mining Telegram Channel and search for #amdminer . You can download and look into the miner here.

The code is based on OpenCL and completely open source. If you are using Nvidia cards, you can find the CUDA miner here.

Please, be aware that it is unsafe to use any closed source miners. The mining specifics of ERGO require you to disclose your secret key to the miner so make sure who to trust before exposing any vulnerable data!

These are the reported Hashrates for AMD cards:

  • rx570-8g: 22-24Mh/s
  • rx580-8g: 23-25Mh/s
  • rx Vega56: 24-26Mh/s

Before going any further I want to give credits to MH Samadani and his head developer Amin Moradi for providing the miner and the base for this tutorial.

Now let’s get started!

Configuration

Copy these files into the same folder as your executable file and add your seed string and your node’s address to config.json . In addition to that set keepPrehash: true in the same file.

  • Miningkernel.cl
  • Prehashkernel.cl
  • Ocldecs.h
  • Ocldefs.h
  • Libcurl.dll( in windows)
  • Config.json

Requirements for Linux

1. Install the AMDGPU-PRO driver by downloading the AMDGPU-PRO package for your specific Linux distribution from amd.com. Unpack this file and in a terminal window run:

$ amdgpu-pro-install --opencl=legacy,pal --headless

2. Install OpenCL headers

$ apt install libcurl4-openssl-dev

3. Install OpenSSL 1.02

$ apt install libssl-dev

Requirements for Windows

1. You need at least one AMD GPU with its driver installed amd.com

2. Download and Install AMD APK from mhssadini’s github here

3. If not already available, build libcurl from sources with Visual Studio toolchain instruction

4. Download and install OpenSSL 1.0.2 here

Building in Linux

1. Edit the ErgoOpenCL.cpp in the master directory and comment #define TEST or uncomment define TEST to either build the miner or tester.

2. Change the directory to ergoAMDminer/Ubuntu and run make.

./makefile

3. If everything was done correctly, you should now find ErgoOpenCL in ergoAMDminer/Ubuntu/ . Go ahead and run it to start mining.

./ErgoOpenCL

Pre-Built Version for Windows

Download the github, head over to the win64 folder and execute either ErgoOpenCL_miner.exe or ErgoOpenCL_tester.exe . If everything was set up correctly (see requirements and configuration) it should start mining.

Building in Windows

Open ErgoOpenCL.sln Visual Studio. Add the OpenCL, LibCurl and OpenSSL libraries.

Include directories:

And include additional directories:

Additional library directories:

Additional dependencies:

Now, in the ErgoOpenCL.cpp file, comment #define TEST to build the miner or uncomment define TEST to build the tester.

If you have any additional questions, suggestions, want to send flowers to @mhs_sam to or simply feel like joining the community, head over to our telegram channels - Ergo Mining or Ergo Platform - and say hello.

Happy mining!

1 Like

AMD miner bugfix:

Please update your miner:

1 Like