Compilation advice on 5950x AMD Ryzen |
- Date: 2021/07/24 06:25
- Name: Zsolt
Dear All,
I thought I share the compilation details of a recent AMD CPU with you, so you don't have to spend much time to figure it out.
The rig is a Ryzen 5950X running on Ubuntu 21.04 with 32Gb RAM. Scalapack is AMD optimized (https://developer.amd.com/amd-aocl/)
gcc 10.0.3 supposed to work with -O2 -march=znver3 according to CPU manuals, but it does not compile.
The best results (77s with runtest) I got with gcc 9 and with the options below. (You might be able to omit a few of these libraries below, but this worked...)
LBSROOT = /home/joy/amd/aocl/3.0-6 CC = mpicc -Dkcomp -Dnoomp -O3 -march=znver2 -fopenmp -I/$(LBSROOT)/include FC = mpif90 -fallow-argument-mismatch -Dnoomp -O3 -march=znver2 -fopenmp -I/$(LBSROOT)/include LIB = -L/usr/lib/gcc/x86_64-linux-gnu -lgfortran -lpthread -L/$(LBSROOT)/lib -lfftw3 -L/$(LBSROOT)/lib -lscalapack -lflame -lblis -L/usr/lib/x86_64-linux-gnu -lmpi -lmpi_mpifh -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lm
Thank you for the Openmx development, I much appreciate it! Regards, Zsolt
| |