Reading time: | 15 min |
Last updated: | 28 Feb 2025 |
Test status: |
Reading time: |
15 min |
Last updated: |
28 Feb 2025 |
Test status: |
Author: | Florent Lebeau, Arm |
Official docs: | View |
Tags: |
Author: |
|
Official docs: |
View |
Tags: |
This guide is intended to get you up and running with this tool quickly with the most common settings. For a thorough review of all options, refer to the official documentation.
Arm Compiler for Linux (ACfL)
is a suite of tools containing Arm C/C++ Compiler (armclang
), Arm Fortran Compiler (armflang
), and Arm Performance Libraries (ArmPL). It is tailored to the development of High Performance Computing (HPC) applications.
Arm Compiler for Linux runs on 64-bit Arm machines, it is not a cross-compiler.
You do not require any additional license to use Arm Compiler for Linux.
Arm Compiler for Linux supports all 64-bit Arm based server-class hardware .
Ensure you are using a supported Linux distribution .
Confirm you are using an Arm machine by running:
The output should be:
If you see a different result, you are not using an Arm computer running 64-bit Linux.
If any of the following tools are not already installed by your Linux distribution, you must install them before installing Arm Compiler for Linux. These packages can be installed with the appropriate package manager for your OS:
The minimum supported version for Python is version 3.6.
You must have at least 2 GB of free hard disk space to both download and unpack the Arm Compiler for Linux package. You must also have an additional 6 GB of free space to install the package.
For example:
You are now ready to install ACfL manually or with Spack .
Use an Arm recommended script to select, download, and install your preferred ACfL package.
Download releases from the command line using wget
. Install wget
if not present.
ACfL installation packages are available to download from Arm Developer . Individual Arm Performance Libraries (ArmPL) packages are also available.
Fetch the ACfL installers:
To install Arm Compiler for Linux on your 64-bit Linux Arm machine extract the package and run the installation script.
Each command sequence includes accepting the license agreement to automate the installation and installing Environment Modules.
⚠️ On RPM based systems (such as Red Hat), if an alternative version of GCC (not the GCC bundled with ACfL) is installed after ACfL, you will not be able to uninstall ACfL fully. For example, a GDB (GNU Project Debugger) installation will install the native system GCC. If this install takes place after ACfL, you will no longer be able to fully uninstall ACfL.
Arm Compiler for Linux is available to install with the Ubuntu system package manager apt
command.
Add the ACfL apt
package repository to your Ubuntu 20.04 or 22.04 system:
The ACfL Ubuntu package repository is now ready to use.
Download and install Arm Compiler for Linux with:
Arm Compiler for Linux is available to install with either the dnf
or yum
system package manager.
Install ACfL and prerequisites from the Amazon Linux 2023 rpm
package repository with dnf
:
Or using the equivalent yum
commands:
The ACfL tools are now ready to use.
Arm Compiler for Linux is available to install with either the dnf
or yum
system package manager.
Install ACfL and prerequisites from the RHEL 9 rpm
package repository with dnf
:
Or using the equivalent yum
commands:
The ACfL tools are now ready to use.
Arm Compiler for Linux uses environment modules to dynamically modify your user environment. Refer to the Environment Modules documentation for more information.
Set up the environment, for example, in your .bashrc
and add module files.
To list available modules:
To configure Arm Compiler for Linux:
To configure GCC:
ACfL is now ready to use .
Arm Compiler for Linux is available with the Spack package manager.
See the Arm Compiler for Linux and Arm PL now available in Spack blog for full details.
Clone the Spack repository and add bin
directory to the path:
Set up shell support:
Spack is now ready to use.
Download and install Arm Compiler for Linux with:
If you wish to install just the Arm Performance Libraries, use:
Use the commands below to set up the environment:
ACfL is now ready to use .
To get started with the Arm C/C++ Compiler and compile a simple application follow the steps below.
Check that the correct compiler version is being used:
Create a text file named hello.c
with the contents below.
Build the application with:
Run the application with:
The program will output the string specified.
To get started with the Arm Fortran Compiler and compile a simple application follow the steps below.
Check that the correct compiler version is being used:
Create a text file named hello.f90
with the contents below.
Build the application with:
Run the application with:
The program will output the string specified.
To get started with the Arm Performance Libraries and learn how to select the optimal library for your system, follow the Get started with Arm Performance Libraries guide.
How would you rate this tool quick-install guide?
What is the primary reason for your feedback ?
Thank you! We're grateful for your feedback.