• 1 x CPU - Intel Coffee Lake CPU
• 12 x GPU - MSI/AMD RX570 8G
• 1 x Memory - UDIMM 8 G DDR4
• 2 x PSU - 1200W Gold
• 1 x SSD - 128 GB 2.5 inch
• 1 x Motherboard - MSI blockchain MB H310
Each is running Ubuntu 24.04.3 LTS
I was trying to get lolminer working, and even tried TeamRedMiner - but both come up with errors that they can find no OpenGL GPUs.
I started with AMD drivers, but removed those and went with MESA, and then into RUSTICL. Currently if I run "clinfo -l" it will list all the cards properly under Platform #0 rusticl
but no mater what I do, the miner just won't see the cards, even though I can get the OS to see them.
looking for any suggestions to get these running again.
Here's what I have done so far from the notes I've been writing myself:
Quote
If needed, remove all AMD drivers you may have attempted
sudo amdgpu-install
--uninstall sudo apt purge amdgpu-install
sudo rm /etc/apt/sources.list.d/amd*
sudo rm /etc/apt/sources.list.d/rocm*
sudo apt update
Manually install the OpenCL drivers (MESA)
sudo apt install mesa-opencl-icd clinfo
Verify hardware detection
lspci | grep -i vga | wc -l
Increase memory map for 12 cards
sudo nano /etc/default/grub
Edit the line starting with GRUB_CMDLINE_LINUX_DEFAULT
change it to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=realloc"
Ctrl O
Y
Ctrl X
sudo update-grub
sudo reboot
Verify after reboot how many cards you have available
lspci | grep -i vga | wc -l
Enable huge pages crucial for 12 video cards
sudo sysctl -w vm.nr_hugepages=2560
Increase your swap files
sudo swapoff -a
sudo fallocate -l 64G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo gpasswd -a dsb render
sudo gpasswd -a dsb video
sudo usermod -a -G video dsb
sudo usermod -a -G render dsb
sudo reboot
***TIP for 12 cards
With 12 GPUs, the "minute-long delay" you mentioned is the system's way of saying it's struggling to map all that hardware at once. To prevent the miner from crashing during this "lag" period, you should increase your locked memory limits:
1. Open the limits file:
sudo nano /etc/security/limits.conf
2. Add these lines at the very bottom:
* soft memlock unlimited
* hard memlock unlimited
3. Save and Reboot
Enable the "Rusticl" Driver
sudo nano /etc/environment
RUSTICL_ENABLE=radeonsi ((add to bottom of file))
Save and exit
Ignore\disable the clover driver
sudo mv /etc/OpenCL/vendors/mesa.icd /etc/OpenCL/vendors/mesa.icd.bak
Reboot
****at this point you will log back in and run clinfo -l and it will quickly show all your cards, using rusticl. But lolMiner still won't see them. So there's a last trick
The "Library Link" Trick
We need to create a symbolic link that points the standard OpenCL loader to our working Rusticl driver, but gives it the name lolMiner expects to see.
sudo ln -sf /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libamdocl64.so
Always launch your mining session as admin to reduce bottlenecks
sudo ./mine_etc.sh
sudo amdgpu-install
--uninstall sudo apt purge amdgpu-install
sudo rm /etc/apt/sources.list.d/amd*
sudo rm /etc/apt/sources.list.d/rocm*
sudo apt update
Manually install the OpenCL drivers (MESA)
sudo apt install mesa-opencl-icd clinfo
Verify hardware detection
lspci | grep -i vga | wc -l
Increase memory map for 12 cards
sudo nano /etc/default/grub
Edit the line starting with GRUB_CMDLINE_LINUX_DEFAULT
change it to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=realloc"
Ctrl O
Y
Ctrl X
sudo update-grub
sudo reboot
Verify after reboot how many cards you have available
lspci | grep -i vga | wc -l
Enable huge pages crucial for 12 video cards
sudo sysctl -w vm.nr_hugepages=2560
Increase your swap files
sudo swapoff -a
sudo fallocate -l 64G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo gpasswd -a dsb render
sudo gpasswd -a dsb video
sudo usermod -a -G video dsb
sudo usermod -a -G render dsb
sudo reboot
***TIP for 12 cards
With 12 GPUs, the "minute-long delay" you mentioned is the system's way of saying it's struggling to map all that hardware at once. To prevent the miner from crashing during this "lag" period, you should increase your locked memory limits:
1. Open the limits file:
sudo nano /etc/security/limits.conf
2. Add these lines at the very bottom:
* soft memlock unlimited
* hard memlock unlimited
3. Save and Reboot
Enable the "Rusticl" Driver
sudo nano /etc/environment
RUSTICL_ENABLE=radeonsi ((add to bottom of file))
Save and exit
Ignore\disable the clover driver
sudo mv /etc/OpenCL/vendors/mesa.icd /etc/OpenCL/vendors/mesa.icd.bak
Reboot
****at this point you will log back in and run clinfo -l and it will quickly show all your cards, using rusticl. But lolMiner still won't see them. So there's a last trick
The "Library Link" Trick
We need to create a symbolic link that points the standard OpenCL loader to our working Rusticl driver, but gives it the name lolMiner expects to see.
sudo ln -sf /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libamdocl64.so
Always launch your mining session as admin to reduce bottlenecks
sudo ./mine_etc.sh
