News: 0001498380

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Initial Benchmarks Of The AMD AOCC 5.0 Compiler On 5th Gen EPYC

([Software] 61 Minutes Ago 2 Comments)


Last week when launching the [1]AMD EPYC 9005 "Turin" processors , on the same day [2]AOCC 5.0 was quietly released as the newest version of AMD's Zen-focused compiler derived from LLVM/Clang. With not only adding AMD Zen 5 "znver5" support but also additional vectorization improvements and other performance optimizations, I was eager to run some benchmarks of AOCC 5.0 against the open-source GCC and LLVM/Clang compilers. Here are those initial benchmarks using dual [3]AMD EPYC 9755 128-core Zen 5 processors.

[4]

AOCC 5.0 adds initial [5]Zen 5 architecture support, improved SLP and loop vectorization, improved LICM and loop optimizations, enhanced control/data flow optimizations, and Zen 5 tuning for the AMD Math Library. The AOCC 5.0 compiler is based upon the open-source LLVM 17.0.6 codebase. AOCC remains closed-source and just distributed as binary releases for various Linux platforms with sadly not being open-source to see all of their LLVM modifications or insight into just how big of a patch delta they are carrying compared to upstream LLVM. It was just last month that [6]initial AMD Zen 5 support was merged into upstream LLVM but still carrying the tuning / cost tables from Zen 4. See my [7]Znver5 articles for more background information on the open-source compiler support for Zen 5.

[8]

With the dual AMD EPYC 9755 processors on the Volcano server running Ubuntu 24.04 LTS, I ran some C/C++ benchmarks on the following compiler configurations:

GCC 13.2 - The default compiler of Ubuntu 24.04 LTS that is last year's GCC feature release. GCC 13.2 doesn't contain the Znver5 bits that were just introduced earlier this year ahead of GCC 14.

GCC 14.2 - The latest upstream stable GCC 14 compiler release that does contain initial Znver5 support.

AOCC 5.0 - The new AMD AOCC 5.0 compiler release that is derived from LLVM 17.0.6 sources.

Clang 17.0.6 - The upstream LLVM Clang 17.0.6 compiler for seeing the difference to AOCC from the same LLVM/Clang version.

Clang 19.1.1 - The latest stable upstream LLVM/Clang release as of testing for showing the latest open-source LLVM improvements beyond where the AMD AOCC compiler is branched from now being two feature releases behind the latest LLVM.org upstream.

The same CFLAGS/CXXFLAGS with -O3 and -march=native targeting were used across testing these compilers. No changes were made to the server besides swapping out the compiler under test and then rebuilding all of the open-source C/C++ programs for each compiler.

If there is enough reader interest I may carry out a larger AOCC 5.0 compiler comparison with more workloads and more hardware. As well as potentially doing an AOCC 4.2 vs. AOCC 5.0 compiler comparison on EPYC Genoa/Bergamo for seeing if AOCC 5.0 is helping older Zen 4 platforms achieve greater performance.



[1] https://www.phoronix.com/review/amd-epyc-9005

[2] https://www.phoronix.com/news/AMD-AOCC-5.0-Compiler

[3] https://www.phoronix.com/review/amd-epyc-9965-9755-benchmarks

[4] https://www.phoronix.com/image-viewer.php?id=amd-aocc-5&image=amd_aocc5_epyc_lrg

[5] https://www.phoronix.com/search/Zen+5

[6] https://www.phoronix.com/news/LLVM-Clang-Znver5-Merged

[7] https://www.phoronix.com/search/Znver5

[8] https://www.phoronix.com/image-viewer.php?id=amd-aocc-5&image=amd_aocc5_compiler_lrg



evil hackers from Serbia.