Post
Topic
Board Mining (Altcoins)
Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
by
cpu-pool
on 11/03/2020, 12:21:26 UTC
We wrote an article on how to install AOCC (AMD Optimizing C / C ++ Compiler) and tested CPUminer it on a ryzen 2600 CPU.

Read full article: http://cpu-mining.info/post.php?post=2

https://i.imgur.com/7gQXwft.png

AOCC Docs - https://developer.amd.com/wp-content/resources/AOCC-2.1-Install-Guide.pdf

Install depends

Code:
sudo apt-get install -y git
sudo apt-get install -y automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++
sudo apt-get install -y lib32z1-dev

download aocc-compiler-2.1.0_1_amd64.deb from https://developer.amd.com/amd-aocc/

install AOCC in Ubuntu

Code:
sudo dpkg -i aocc-compiler-2.1.0_1_amd64.deb
source /opt/AMD/aocc-compiler-2.1.0/setenv_AOCC.sh

check the installed AOCC compiler

Code:
clang -v

Tested cpuminer-opt on yespower algos.
you need to remove all algorithms from the miner, except yespower

Code:
git clone your cpuminer-opt
if error in coinfigure - use olds version cpuminer-opt

Code:
chmod +x autogen.sh
./autogen.sh || echo done

configure with AOCC

Code:
./configure --with-curl CC=clang CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer"

Code:
make

benchmark

Code:
./cpuminer --benchmark -a yespower -t 1

You can check this compiler on your favorite algorithm.