Author

Topic: AMD gpu on Ubuntu 22.04 (Read 281 times)

newbie
Activity: 59
Merit: 0
April 27, 2024, 03:24:32 PM
#13
Have you considered what JayDDee said?

There are so many mining software programs in the first few pages of this board. All you need to do is just a few clicks here and there, and you could get what you want. Linux OS can't be that unpopular?  Grin
Sorry for late reply, i tried few dedicated miners for Linux which ever worked for GPU and some already not working or having compatibility issues. For example gminer unable to detect installed amd driver.


Code:
root@xeon:/home/dem/Gminer# ./miner -a ethash -s stratum+tcp://daggerhashimoto.usa.nicehash.com:3353 -u myuser -p x
+----------------------------------------------------------------+
|                          GMiner v3.44                          |
+----------------------------------------------------------------+
Algorithm:          Ethash
DevFee:             2 %
Server:            
  host:             daggerhashimoto.usa.nicehash.com:3353
  user:             myuser
  password:         x
Power calculator:   on
Color output:       on
Watchdog:           on
API:                off
Log to file:        off
Selected devices:   GPU0   GPU1  
Intensity:          100    100  
Temperature limits: 90/120 90/120
------------------------------------------------------------------
21:16:41 AMD Driver: Unknown
21:16:42 Failed to initialize miner on GPU0: AMD AMD Radeon RX 6800 16GB [0000:04:00.0]: OpenCL initialization failed
21:16:42 Failed to initialize miner on GPU1: AMD AMD Radeon RX 6800 16GB [0000:ffffff83:00.0]: Out of memory
21:16:42 No devices for mining

And the most suitable working miner for sake of testing was lolMiner. No problem to detect drivers.

Code:
root@xeon:/home/dem/IOMiner# ./lolMiner --algo ETCHASH --pool stratum+tcp://etchash.auto.nicehash.com:9200 --user myuser --pass x
+---------------------------------------------------------+
|   _       _ __  __ _                   _    ___   ___   |
|  | | ___ | |  \/  (_)_ __   ___ _ __  / |  ( _ ) ( _ )  |
|  | |/ _ \| | |\/| | | '_ \ / _ \ '__| | |  / _ \ / _ \  |
|  | | (_) | | |  | | | | | |  __/ |    | |_| (_) | (_) | |
|  |_|\___/|_|_|  |_|_|_| |_|\___|_|    |_(_)\___/ \___/  |
|                                                         |
|              This software is for mining                |
|              Autolykos V2                               |
|              Ethash, Etchash                            |
|              Equihash 144/5, 192/7, 210/9               |
|              Fishhash                                   |
|              BeamHash III                               |
|              NexaPow                                    |
|              Flux (ZelHash)                             |
|              Heavyhash-Karlsen                          |
|              Heavyhash-Pyrin                            |
|              Blake3-Alephium                            |
|              Cuck(ar)oo 29                              |
|              Cuckaroo   30 CTX                          |
|              Cuckatoo   31/32                           |
|                                                         |
|                                                         |
|              Made by Lolliedieb, April 2024             |
+---------------------------------------------------------+

Setup Miner...
OpenCL driver detected.
Number of OpenCL supported GPUs: 2
No Cuda driver or GPUs detected.
Device 0:
    Name:    Radeon RX 6800
    Address: 4:0
    Vendor:  Advanced Micro Devices (AMD), ROCm
    Drivers: OpenCL
    Memory:  16368 MByte (0 MByte free)
    Max epoch (approx): 1916
    Active:  true (Selected Algorithm: ETHash OpenCL)
Device 1:
    Name:    Radeon RX 6800
    Address: 4294967171:0
    Vendor:  Advanced Micro Devices (AMD), ROCm
    Drivers: OpenCL
    Memory:  16368 MByte (0 MByte free)
    Max epoch (approx): 1916
    Active:  true (Selected Algorithm: ETHash OpenCL)

Connecting to pool...
DNS over HTTPS resolve succeeded
Connected to etchash.auto.nicehash.com(34.160.163.23):9200  (TLS disabled)
Set Ethash stratum mode: EthereumStratum/1.0.0
Subscribed to stratum server
Authorized worker: myuser
New target received: 00000003fffffffc (Diff 0.25)
New job received: 0000000091252bf7 Epoch: 658 (ETCHash epoch: 329) Difficulty: 1.07G  
Subscribed to extranonce
Start Mining...
New job received: 0000000091252bf8 Epoch: 658 (ETCHash epoch: 329) Difficulty: 1.07G  
-------------------------------------------------------
  Generated light cache for epoch 658 (ETCHash: 329)
       Took 4969 ms, size of new DAG: 3655 MByte
-------------------------------------------------------
GPU 0: Starting DAG generation (normal mode)
GPU 1: Starting DAG generation (normal mode)
GPU 1: DAG generation completed (1684 ms)
GPU 0: DAG generation completed (1791 ms)
GPU 1: DAG verification passed
GPU 0: DAG verification passed
New job received: 0000000091252bf9 Epoch: 658 (ETCHash epoch: 329) Difficulty: 1.07G  
Average speed (15s): 27.72 Mh/s | 29.10 Mh/s Total: 56.82 Mh/s
New job received: 0000000091252bfa Epoch: 658 (ETCHash epoch: 329) Difficulty: 1.07G  
GPU 1: Found a share of difficulty 2.34G
GPU 1: Share accepted (22 ms)
GPU 0: Found a share of difficulty 1.08G
GPU 0: Share accepted (23 ms)
Average speed (15s): 56.79 Mh/s | 58.16 Mh/s Total: 114.95 Mh/s
New job received: 0000000091252bfb Epoch: 658 (ETCHash epoch: 329) Difficulty: 1.07G  
New job received: 0000000091252bfc Epoch: 658 (ETCHash epoch: 329) Difficulty: 1.07G  
GPU 0: Found a share of difficulty 1.44G
GPU 0: Share accepted (22 ms)
Average speed (15s): 55.78 Mh/s | 58.10 Mh/s Total: 113.88 Mh/s
New job received: 0000000091252bfd Epoch: 658 (ETCHash epoch: 329) Difficulty: 1.07G  
New target received: 00000001fffffffe (Diff 0.5)
New job received: 0000000091252bfe Epoch: 658 (ETCHash epoch: 329) Difficulty: 2.15G  
New job received: 0000000091252bff Epoch: 658 (ETCHash epoch: 329) Difficulty: 2.15G  
GPU 0: Found a share of difficulty 2.34G
GPU 0: Share accepted (22 ms)
-----------------------------------------------
Statistics (21:43:24); Uptime: 0h 1m 2s
lolMiner 1.88, AMD CL 3590.0

newbie
Activity: 22
Merit: 0
March 07, 2024, 07:47:43 AM
#12
After nobara kernel up to 6.7.7-xxxxxxx  kernels
You can use corectrl again.
------------------------------------------------------------------------------------------
All Fedora based distro mining config like this

sudo dnf update

sudo dnf install xorg-x11-drv-amdgpu vulkan-tools mesa-vulkan-drivers vulkan-loader vulkan-loader.i686 glew-devel SDL2-devel SDL2_image-devel glm-devel freetype-devel openssl-devel openssl-libs python3 curl glibc-devel libstdc++-devel libxcb-devel libX11-devel libxshmfence-devel libXrandr-devel wayland-devel make gcc-c++ rocm-opencl rocminfo rocm-clinfo rocm-device-libs

sudo grubby --update-kernel=ALL --args="radeon.cik_support=0 amdgpu.cik_support=1"

reboot

sudo dnf install corectrl
--------------------------------------------------------------------------------------------------------------------------------------
Edit the file /etc/default/grub as root and append amdgpu.ppfeaturemask=0xffffffff to GRUB_CMDLINE_LINUX_DEFAULT:

GRUB_CMDLINE_LINUX_DEFAULT="...amdgpu.ppfeaturemask=0xffffffff"

NOTE: In the above example, ... represent other existing parameters. Do not add ... to your GRUB_CMDLINE_LINUX_DEFAULT. You should only add amdgpu.ppfeaturemask=0xffffffff.
Then regenerate the bootloader configuration file with the command:
---------------------------------------------------------------------------------------------------------------------------------------

sudo grub-mkconfig -o /boot/grub/grub.cfg

If you get an error message, change to

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Reboot your system.


copper member
Activity: 69
Merit: 0
February 29, 2024, 06:18:02 AM
#11
Yes, you can mine with that GPU check the list of coins you can mine with this GPU below.

https://whattomine.com/gpus/51-amd-radeon-rx-6800?cost=0.1&cost_currency=USD&sort=revenue24_desc

If you choose the first one RYO coin then you can follow this guide below
- https://bitcointalksearch.org/topic/guideamdnvidiacpuxmrhow-to-mine-moneroryo-miners-downloads-2126975

You XMR stak to mine RYO you can follow the Linux guide on how to compile this check the link below.

- https://github.com/fireice-uk/xmr-stak/blob/master/doc/compile/compile_Linux.md

How many rigs do you have? If this is only one GPU in one rig you can make a bootable hiveOS because most of the mining software is already there and it's free for 1 rig.


How profitable mining those POW coins nowadays? I could not even recover my energy bill and air-conditioning cost last month.
newbie
Activity: 22
Merit: 0
February 26, 2024, 06:40:50 AM
#10
After installing the 6.7.xx kernels, "Corectrl" does not work on Linux.
It is more efficient to remove "Corectrl" and install the "LACT" beta version instead.

https://github.com/ilya-zlobintsev/LACT
newbie
Activity: 22
Merit: 0
January 09, 2024, 01:23:53 PM
#9
Are you going to make people who don't know anything about Linux do this?
Wow, it's a great idea.

Most users couldn't even understand what I wrote.
full member
Activity: 279
Merit: 104
January 08, 2024, 03:30:38 PM
#8
Hello, i have amd rx6800 gpu and i just want to test it to mine something. The card was second hand so i want to know if it works in mining too.
I have registered on nicehash and found that no any Linux software available except dedicated nicehash distro.
As far as i know cgminer 4.9.2 which available via apt no more works for GPU.

If you dont want to use ready-made software like Hive-os etc, but would like to just install the graphics driver and run any mining program from the command line, then you can follow this recipe.  It works for my RX6600 cards.

Goto the AMD web site and download the latest driver .deb file  from

https://www.amd.com/en/support

If you enter your GPU model, RX6800, then the latest version to download is  amdgpu-install_5.7.50702-1_all.deb

After this file is downloaded, open a terminal window, cd to the ~/Downloads folder and run the following commands to install driver:

sudo apt-get install ./amdgpu-install_5.7.50702-1_all.deb
sudo amdgpu-install -y --accept-eula --opencl=rocr,legacy --usecase=graphics,opencl

Then edit /etc/default/grub and add these kernel parameters to it:
Change the line where it says GRUB_CMDLINE_LINUX_DEFAULT to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text noapic amdgpu.gpu_recovery=1 amdgpu.ppfeaturemask=0xffffffff"
and save, then run

sudo update-grub

Then register your user id in the video group:

sudo usermod -a -G render $LOGNAME
sudo usermod -a -G video $LOGNAME

After this you may need to reboot for your system for it to register your card.

Then after that you can start looking at mining software like lolminer, SRB-Miner, Teamredminer...
newbie
Activity: 22
Merit: 0
December 31, 2023, 07:36:45 PM
#7
With Nobara 39, the naming of "rocm" packages has changed.
The package that needs to be installed is "rocm-opencl-runtime"
newbie
Activity: 22
Merit: 0
December 19, 2023, 07:33:13 PM
#6
Use Nobara Linux

install steam "so many gpu support one click installed"
install rocm "computing support for mining"
install corectrl "Gpu management in linux"

install any Gpu miner linux edition

copper member
Activity: 2016
Merit: 1783
฿itcoin for all, All for ฿itcoin.
December 17, 2023, 06:43:10 PM
#5
Have you considered what JayDDee said?

There are so many mining software programs in the first few pages of this board. All you need to do is just a few clicks here and there, and you could get what you want. Linux OS can't be that unpopular?  Grin
newbie
Activity: 59
Merit: 0
December 17, 2023, 01:34:15 PM
#4
Yes, you can mine with that GPU check the list of coins you can mine with this GPU below.

I know that i may mine on that GPU, i wanted to ask about which software could be used on ubuntu 22.04 nowadays to test mining.
Also i know about dedicated mining OS-es based on Linux, but i want to try it on above system.
full member
Activity: 1372
Merit: 216
December 15, 2023, 03:32:20 PM
#3
I have registered on nicehash and found that no any Linux software available except dedicated nicehash distro.

WTF??? There are around 15 different threads on the first page of this forum offereing software to mine with.
legendary
Activity: 3206
Merit: 2904
Block halving is coming.
December 15, 2023, 01:27:08 PM
#2
Yes, you can mine with that GPU check the list of coins you can mine with this GPU below.

https://whattomine.com/gpus/51-amd-radeon-rx-6800?cost=0.1&cost_currency=USD&sort=revenue24_desc

If you choose the first one RYO coin then you can follow this guide below
- https://bitcointalksearch.org/topic/guideamdnvidiacpuxmrhow-to-mine-moneroryo-miners-downloads-2126975

You XMR stak to mine RYO you can follow the Linux guide on how to compile this check the link below.

- https://github.com/fireice-uk/xmr-stak/blob/master/doc/compile/compile_Linux.md

How many rigs do you have? If this is only one GPU in one rig you can make a bootable hiveOS because most of the mining software is already there and it's free for 1 rig.
newbie
Activity: 59
Merit: 0
December 15, 2023, 07:15:15 AM
#1
Hello, i have amd rx6800 gpu and i just want to test it to mine something. The card was second hand so i want to know if it works in mining too.
I have registered on nicehash and found that no any Linux software available except dedicated nicehash distro.
As far as i know cgminer 4.9.2 which available via apt no more works for GPU.
Jump to: