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=2https://i.imgur.com/7gQXwft.pngAOCC Docs -
https://developer.amd.com/wp-content/resources/AOCC-2.1-Install-Guide.pdfInstall depends
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
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
clang -v
Tested cpuminer-opt on yespower algos.
you need to remove all algorithms from the miner, except yespowergit clone your cpuminer-opt
if error in coinfigure - use olds version cpuminer-opt
chmod +x autogen.sh
./autogen.sh || echo done
configure with AOCC
./configure --with-curl CC=clang CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer"
make
benchmark
./cpuminer --benchmark -a yespower -t 1
You can check this compiler on your favorite algorithm.