GNU Compiler Collection Version 13 Receives AMD Zen 4 CPU Tuning Before Release

Jan 18, 2023 at 12:00am EST
GNU Compiler Collection Version 13 Receives AMD Zen 4 CPU Tuning Before Release 1

Jan Hubicka, a SUSE compiler engineer, added more AMD Zen 4 code, specifically "znver4" CPU target tuning, to continue to prepare the upcoming GNU Compiler Collection (GCC 13) for release.

GCC 13 sees additional and improved AMD Zen 4 CPU target tuning in the recent compiler update patch

This continues with numerous patches added in 2022 for the new version release. It is anticipated that it will be better for AMD Zen 4's architecture compared to the support shown for Zen 3, which was mediocre at best. We will also see new processor ISA extensions used for the latest architecture, reports Michael Larabel, analyst, and Editor of the Linux hardware website Phoronix.

Related Story AMD Says It Had To Rebuild The Ryzen 5 5800X3D To Bring It Back For AM4’s 10th Anniversary

Yesterday, Hubicka added the newest updates for GCC 13, which we have supplied the patch notes below that were posted to GNU Compiler Collection's Git page:

This patch adds more tunes for zen4:

Larabel notes that GCC 13 and AMD's proprietary AOCC 4.0 compiler will be needed to test to see which is better "as a downstream of LLVM/Clang." AMD recently added the beginning enablement of the Zen 4 architecture into LLVM/Clang early last month, but it has not been touched since. The hope is that we will see more in the coming weeks.

The Phoronix editor also mentions that "-march=znver4 can be used if wanting to cater the compiler's instructions and optimizations to the AMD Ryzen 7000 series and AMD EPYC 9004 series processors". At the same time, we are waiting for more updates to happen.

Lately, AMD appears to have focused heavily on the AMDGPU work for DRM-Next, as was reported yesterday. Several targets were initially not supported, and it is pleasant to see that work is now added to upcoming patches within the various open-source projects to prepare for Q1 releases.

News Source: Phoronix

About the author: Jason R. Wilson is a member of the Hardware news team at Wccftech. Equipped with a background in graphic design and writing, Jason works daily to improve his craft and continues to create new and innovative ideas every day.

Follow Wccftech on Google to get more of our news coverage in your feeds.