• Home
  • Accessing Our Facilities
    • Apply for Access
    • HPC Resource List
    • Our Staff
    • Our Research Projects
    • Our Research Software

    • Contributions & Costings
    • HPC Driving Test
  • Documentation
    • Documentation Home
    • Getting Started
    • Advanced Topics
    • Training & Workshops
    • FAQ
    • Policies & Procedures
    • Using the Wiki

    • Data & Report Terminology
    • About this website
  • My Account
    • My HPC Projects
HPC Support
Trace: • advanced_equipment • data • playground • welcome • software • ansys • x11 • intel • gcc

GCC

  • Category: Vendor provision
  • Access method: Loaded from Linux module software
  • Documentation link: https://gcc.gnu.org/onlinedocs/

Running

Versions

$ module avail GCC

Loading

$ module load GCC

Testing

$ module load GCC
$ gcc -v

Recommendations

For the AMD Epyc processors which make up Comet, use the -march=znver5 compiler flag for GCC to enable detection and optimisation for the AMD Zen5 architecture of the compute node processors. As all nodes of Comet share the same Zen5 architecture, any binaries produced with these flags will run optimally across all node types:

Normal optimisation

# Note - this is the recommended optimisation level
gcc -march=znver5 -O2

Aggressive optimisation

gcc -march=znver5 -O3

Full optimisation

gcc -march=znver5 -Ofast

Additional options are discussed in this article from SUSE:

  • https://documentation.suse.com/en-us/sbp/devel-tools/html/SBP-GCC-14/index.html

The znver5 option is only available in GCC 14 and higher. Please do not use older compilers with the Epyc processors as you will not get the most optimal binaries produced.

Requests

Requests for new/alternate versions of this package should be submitted via the NUIT ITService website using the HPC Software - Installation category.

Software requests will be collated, prioritized and submitted to our HPC support vendor.


Back to Software List

Previous Next

HPC Support

Table of Contents

Table of Contents

  • GCC
    • Running
    • Recommendations
    • Requests

Main Content Sections

  • Documentation Home
  • Getting Started
  • Advanced Topics
  • Training & Workshops
  • FAQ
  • Policies & Procedures
  • Using the Wiki
  • Contact us & Get Help

Documentation Tools

  • Wiki Login
  • RSE-HPC Team Area
Developed and operated by
Research Software Engineering
Copyright © Newcastle University
Contact us @rseteam