My supposedly fastest intel config from /etc/portage/env
Code: Select all
COMMON_FLAGS="-O${OPT_LEVEL} -pipe -mtune=native -fomit-frame-pointer -DNDEBUG -flto -fiopenmp -qopenmp -ipo -xhost -axhost"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-O2 -Wl,--as-needed -ipo"
CC="/opt/intel/oneapi/compiler/2024.0/bin/icx"
CXX="/opt/intel/oneapi/compiler/2024.0/bin/icpx"
CPP="clang-cpp"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"So far I built xorg-server and its drivers, pulse audio and all X11 libs and didn't observe any issues for two days.
Only with LTO I had to make few symlinks of intel's libraries to /usr/lib64. The libraries I had to add were all listed when trying to run program. To build I had at first to source setvars.sh script from compiler installation but after adding symlinks to libraries it was not necessary anymore.
Anyways, any suggestions what could be improved for getting absolutely the best performance possible?
------
I also installed (unpacked tar) AMD Optimizing C/C++ and Fortran Compilers (AOCC) from https://www.amd.com/en/developer/aocc.html
I didn't play as much because I am proud user of Intel Raptor Lake but it seems to work fine compiling xterm. In this case I guess performance won't be any better. I do have Carrizo (latest Bulldozer version) CPU in HP-T630 which I plan upgrading to Gentoo from some Debian that runs on it now but I don't think AOCC is optimized for pre-Zen processors and I might just as well use normal GCC/Clang.
It might however make sense to use this compiler for for Zen3 or 4 so anyone has any tweaks for this compiler?
Code: Select all
COMMON_FLAGS="-O${OPT_LEVEL} -march=native -pipe -mtune=native -fomit-frame-pointer -DNDEBUG -flto"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-O2 -Wl,--as-needed"
CC="/opt/amd/compiler/bin/clang"
CPP="/opt/amd/compiler/bin/clang-cpp"
CXX="//opt/amd/compiler/bin/clang++"
AR="/opt/amd/compiler/bin/llvm-ar"
NM="/opt/amd/compiler/bin/llvm-nm"
RANLIB="/opt/amd/compiler/bin/llvm-ranlib"