Created
December 22, 2017 12:38
-
-
Save daneov/5a9f4448be8853c03ca46df03a8e44d8 to your computer and use it in GitHub Desktop.
AMD, Ubuntu and XMR-Stak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- Install the drivers --- | |
cd amdgpu-pro-17.50-511655/ | |
sudo ./amdgpu-pro-install --opencl=legacy,rocm --headless | |
sudo reboot | |
# -- Testing to see if this works properly --- | |
cd /opt/amdgpu-pro/ | |
./bin/clinfo | |
# -- Get a second opinion --- | |
sudo apt install clinfo | |
clinfo | |
# -- Resume -- | |
cd ~ | |
sudo ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh | |
sudo reboot | |
# -- Get the miner on board -- | |
git clone https://github.com/fireice-uk/xmr-stak.git | |
mkdir xmr-stak/build && cd "$_" | |
cmake .. -DCUDA_ENABLE=OFF # I don't have CUDA, AMD only. Sadly, otherwise I wouldn't have had to search for that long | |
make install | |
# -- Fix error for libOpenCL --- | |
sudo find / -name "libOpenCL.so" # See if the file is on here somewhere | |
cd $AMDAPPSDKROOT/lib/x86_64 | |
sudo ln -sf sdk/libOpenCL.so.1 libOpenCL.so # Kudos to: https://github.com/fireice-uk/xmr-stak-amd/issues/182#issuecomment-346875687 | |
# -- Go back to the miner and resume --- | |
cd - | |
make install | |
cd bin/ | |
./xmr-stak --currency monero -o xmrpool.eu:5555 -u 44hKFfsK1aJezHfsWpVvFyRXfVvzwry5zDWzroue1EX3CiC4aihWQNb8jPRxrmaXy99T91ZvW8eE94nDCUC34nF51Mpc1dj+Miner -p x | |
# -- Enable paging support | |
sudo sysctl -w vm.nr_hugepages=128 | |
sudo vim /etc/security/limits.conf | |
# Add the following at the end to the file: | |
# soft memlock 262144 | |
# hard memlock 262144 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment