Author

Topic: Beginner AMD GPU apps on Linux / Ubuntu (Read 1483 times)

full member
Activity: 279
Merit: 104
October 13, 2016, 04:17:53 PM
#8
thats the problem with linux ... drivers and their configurations ... but once you get them right (which btw i still havent got everything in order) they they are free ... stable ... and again its free

i always use ubuntu and try to figure everything on them out

What I find works ok is this.
If on Ubuntu 14.04 then if you have the latest Polaris gpus, then you need to be at least on kernel 4.4.0-38,  then install amdgpu-pro for Ubuntu 14.04
If you have older gpus, then use fglrx drivers.  Your kernel needs to be 3.19.something or lower in order to install the fglrx drivers correctly.   I use
fglrx-15.302 downloaded from from the AMD site.
amdgpu-pro works with newer cards like 380 and 390, but I get slightly better hashrates when using the fglrx-drivers.
sr. member
Activity: 291
Merit: 250
October 13, 2016, 12:34:59 PM
#7
thats the problem with linux ... drivers and their configurations ... but once you get them right (which btw i still havent got everything in order) they they are free ... stable ... and again its free

i always use ubuntu and try to figure everything on them out
legendary
Activity: 1834
Merit: 1080
---- winter*juvia -----
October 12, 2016, 01:58:22 PM
#6
is linux better than win 10 for mining?

haven't tried mining on windows, linux can be a bit tricky to setup (or used to be), but once you get it setup right, you dont have to worry about it .... windows is windows Smiley

All of my rigs are Windows except for 1 rig which is on Linux (ethOS) - its really slick piece system and once configured properly - it runs very stable. But its a paid software though.....

The lack of AMD drivers is a downside because power and overclocking settings is difficult to do in Linux.

I hope to build a stable Linux based miner based on Claymore's dual miner, but in my several attempts in Ubuntu 16 and 14... I cant even go pass installing the AMD drivers without errors here and there.

If only there is a base image that is designed for mining, preloaded with all the AMD libraries etc.... that can run Claymore, sgminer, cpuminer etc.
sr. member
Activity: 291
Merit: 250
October 12, 2016, 06:36:03 AM
#5
is linux better than win 10 for mining?

haven't tried mining on windows, linux can be a bit tricky to setup (or used to be), but once you get it setup right, you dont have to worry about it .... windows is windows Smiley
full member
Activity: 228
Merit: 100
October 12, 2016, 12:07:54 AM
#4
is linux better than win 10 for mining?
sr. member
Activity: 291
Merit: 250
October 11, 2016, 07:29:16 AM
#3
great share this - thanks for posting.

I am a newbie on Linux and trying to get all the required AMD libraries on Ubuntu 14.04 or even better 16.04.

Do you have a step by step guide to install the AMD drivers?

Thanks!

check this here and hopefully it will be of help:

https://bitcointalksearch.org/topic/solved-need-help-with-ubuntu-1404-amd-a8-8650b-r7-radeon-5450-1610536

this should get OpenCL to work for you

i also went from installing ubuntu server to desktop edition (and 14.04.4 not 14.04.5)

i will try to post you all my notes when i get home later on.
legendary
Activity: 1834
Merit: 1080
---- winter*juvia -----
October 11, 2016, 05:11:50 AM
#2
great share this - thanks for posting.

I am a newbie on Linux and trying to get all the required AMD libraries on Ubuntu 14.04 or even better 16.04.

Do you have a step by step guide to install the AMD drivers?

Thanks!
sr. member
Activity: 291
Merit: 250
September 13, 2016, 06:32:53 PM
#1
I just managed to build my very first mining (very small) rig (https://bitcointalksearch.org/topic/solved-need-help-with-ubuntu-1404-amd-a8-8650b-r7-radeon-5450-1610536)

and now I'm trying to figure out the pools and apps that one can use, and it seems that many of the pools are setup in the same way (looking at Monero pools which have the same "Getting Started" page with the same mining apps).

So, after a week of trying to get my cards to work with OpenCL on Ubuntu 14 - that's my current setp:

Quote
- HP EliteDesk 705 G2 MT
- CPU:  AMD Pro A8-8650B R7 with 10 compute cores (4C + 6G)
- 4GB RAM
- XFX Radeon 5450 / 2GB DDR3

i started looking at the different apps, and since what I started with was the minergate windows app, and started mining some Monero and Bytecoins over there, so that's what I was trying to get working on my new machine (since the windows machine is my work laptop and its not meant for that at all).

So, I started to look at what apps i could run on my linux machine, and the first thing that I got was cpp-ethereum. And after some time, i managed to get it to work (even though it's only using the 5450 card and not using the internal 6 core gpu because - of what i gathered - is the size of the DAG file and the memory i have allocated to the internal GPU ...  well i plan to add another 4gb of RAM to have a total of 8gb but i'm not sure that this will make ethminer happy!!!)

anywho, i started looking at other apps to use, so the first app that i came across after the ethminer was the bfgminer, which installs directly from the ubuntu repo and does not require any compiling (sometimes its nice to use those if they just work out of the box on linux). so i started that and created an account on "litecoinpool.org" and fired away the app, but all i got was invalid shares!!!

seems that there is a lot more to it than just running

Code:
bfgminer -S opencl:auto  -g 1 --url=stratum+tcp://litecoinpool.org:3333 --userpass=xxxxxx.1:1

so i went on and started downloading all the apps that could find and that seemed to work on linux (of course my target was to find linux apps that utilize the AMD GPU) ... and i got to:

Quote
sgminer 5.5.0 - nicehash
cgminer 3.7.2 - scrypt jane
ccminer cryptonight
Claymore CryptoNote GPU Miner  v9.1 Beta

after some many server errors (which I'm still getting btw) i managed to get sgminer to run (and I guess its working because i'm seeing some BTC's on adding up in my NiceHash account - 0.0000000000000x BTC - but still its working)

As i'm right now trying to learn more of this mining business, i would like to get the feedback from Linux (obviously would be nicer to be Ubuntu users) who are using AMD GPU (and i know that my setup right now is ridicule and is not a mining rig with the 5450 card - but if i can get this turtle to make some BTC's then when i get some super card later on, then i will know what to get to make what out of it)

right now i'm running sgminer with a conf file that i found on the net which i guess (guess) rotates through the nicehash pooll to find best coins to mine (or something like that - not yet very sure what it does) - here it is:

Quote
{
"pools" : [
     {
          "name" : "NiceHash_Scrypt_multi",
          "url" : "stratum+tcp://scrypt.usa.nicehash.com:4333",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "zuikkis"
     },
     {
          "name" : "NiceHash_Scrypt-N_multi",
          "url" : "stratum+tcp://scryptnf.usa.nicehash.com:4335",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "11",
          "algorithm" : "zuikkis"
     },
     {
          "name" : "NiceHash_X11_multi",
          "url" : "stratum+tcp://x11.usa.nicehash.com:4336",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "darkcoin-mod"
     },
     {
          "name" : "NiceHash_X13_multi",
          "url" : "stratum+tcp://x13.usa.nicehash.com:4337",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "marucoin-mod"
     },
     {
          "name" : "NiceHash_Keccak_multi",
          "url" : "stratum+tcp://keccak.usa.nicehash.com:4338",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "maxcoin"
     },
     {
          "name" : "NiceHash_X15_multi",
          "url" : "stratum+tcp://x15.usa.nicehash.com:4339",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "bitblock"
     },
     {
          "name" : "NiceHash_NIST5_multi",
          "url" : "stratum+tcp://nist5.usa.nicehash.com:4340",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "talkcoin-mod"
     },
     {
          "name" : "NiceHash_NeoScrypt_multi",
          "url" : "stratum+tcp://neoscrypt.usa.nicehash.com:4341",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "neoscrypt"
     },
     {
          "name" : "NiceHash_Lyra2RE_multi",
          "url" : "stratum+tcp://lyra2re.usa.nicehash.com:4342",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "Lyra2RE"
     },
     {
          "name" : "NiceHash_WhirlpoolX_multi",
          "url" : "stratum+tcp://whirlpoolx.usa.nicehash.com:4343",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "whirlpoolx"
     },
     {
          "name" : "NiceHash_Qubit_multi",
          "url" : "stratum+tcp://qubit.usa.nicehash.com:4344",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "qubitcoin"
     },
     {
          "name" : "NiceHash_Quark_multi",
          "url" : "stratum+tcp://quark.usa.nicehash.com:4345",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "quarkcoin"
     },
     {
          "name" : "NiceHash_Lyra2REv2_multi",
          "url" : "stratum+tcp://lyra2rev2.usa.nicehash.com:4347",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "Lyra2REv2"
     },
     {
          "name" : "NiceHash_X11_backup",
          "url" : "stratum+tcp://x11.usa.nicehash.com:3336",
          "user" : "myBTCWalletAddress",
          "pass" : "x",
          "nfactor" : "10",
          "algorithm" : "darkcoin-mod"
     }
]
}



and after a few errors, i got it to run using
Code:
./sgminer -c sgminer.conf --auto-gpu -L sglog --no-adl --worksize 128

the error - as far as i understand - was more related to the worksize of the two GPUs on the machine:

Quote
[22:35:15] Startup GPU initialization... Using settings from pool NiceHash_X11_multi.
[22:35:15] Startup Pool No = 2
[22:35:15] Init GPU thread 0 GPU 0 virtual GPU 0
[22:35:15] CL Platform vendor: Advanced Micro Devices, Inc.
[22:35:15] CL Platform name: AMD Accelerated Parallel Processing
[22:35:15] CL Platform version: OpenCL 2.0 AMD-APP (1800.11)
[22:35:15] Platform devices: 2
[22:35:15]    0   Spectre
[22:35:15]    1   Cedar
[22:35:15] List of devices:
[22:35:15]    0   Spectre
[22:35:15]    1   Cedar
[22:35:15] Selected 0: Spectre
[22:35:15] Maximum work size for this GPU (0) is 256.
[22:35:15] Your GPU (#0) has 6 compute units, and all AMD cards in the 7 series or newer (GCN cards)       have 64 shaders per compute unit - this means it has 384 shaders.
[22:35:15] Building binary darkcoin-modSpectregw128l8ku0.bin
[22:35:19] Closing socket for stratum NiceHash_Scrypt-N_multi
[22:35:19] Closing socket for stratum NiceHash_Scrypt-N_multi
.
.
.
.

[22:35:29] Initialising kernel darkcoin-mod.cl with nfactor 10, n 1024
[22:35:29] Maximum buffer memory device 0 supports says 134217728
[22:35:29] Your settings come to 536870912
[22:35:29] initCl() finished. Found Spectre
[22:35:29] Init GPU thread 1 GPU 1 virtual GPU 1
[22:35:29] CL Platform vendor: Advanced Micro Devices, Inc.
[22:35:29] CL Platform name: AMD Accelerated Parallel Processing
[22:35:29] CL Platform version: OpenCL 2.0 AMD-APP (1800.11)
[22:35:29] Platform devices: 2
[22:35:29]    0   Spectre
[22:35:29]    1   Cedar
[22:35:29] List of devices:
[22:35:29]    0   Spectre
[22:35:29]    1   Cedar
[22:35:29] Selected 1: Cedar
[22:35:29] Maximum work size for this GPU (1) is 128.
[22:35:29] Your GPU (#1) has 2 compute units, and all AMD cards in the 7 series or newer (GCN cards)       have 64 shaders per compute unit - this means it has 128 shaders.
[22:35:29] Building binary darkcoin-modCedargw128l8ku0.bin
[22:35:29] Stratum extranonce subscribe for NiceHash_Lyra2REv2_multi
[22:35:29] Stratum extranonce subscribe for NiceHash_X13_multi
[22:35:29] Stratum extranonce subscribe for NiceHash_Quark_multi
[22:35:29] Stratum extranonce subscribe for NiceHash_Lyra2RE_multi
[22:35:29] Closing socket for stratum NiceHash_X13_multi


so i guessed to just stop ADL support and put down the worksize to 128 and give it a try ... and .... it worked (is it the best setup ... doubt very much)

now, my objective(s) is/are

1. to get the correct config file for the sgminer to utilize my GPUs to the best they can do
2. to figure out how to mine Monero & Bytecoin (and other coins) using any of the above GPU capable linux apps
3. find the best pools to use
4. what the hell is solo mining Smiley)  -- this is what got me attracted to this whole mining thing ... 1 BTC block = 12BTC = 7.2K USD  ... wooow Smiley))

and i had a pc running 24/7 for the past seven years doing nothing but download movies and tv series !!! i mean, if that pc can make me a dollar a day, it would be doing more than it has been for the last seven years Smiley)

so, i ask you to share with me your insights and pointers if you have the time and patience to help a new comer out Smiley)


Jump to: