Skip to content

Commit 853abfe

Browse files
garyjcarrollLukeIreland1
authored andcommitted
Add ACfL system package steps for Amazon Linux 2023
1 parent 0bb626a commit 853abfe

File tree

1 file changed

+41
-12
lines changed

1 file changed

+41
-12
lines changed

content/install-guides/acfl.md

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,33 +142,62 @@ install takes place **after** ACfL, you will no longer be able to fully
142142
uninstall ACfL.
143143
{{% /notice %}}
144144

145-
## Download and install using System Packages - Ubuntu Linux
145+
## Download and install using System Packages
146+
147+
### Ubuntu Linux 20.04 and 22.04
146148

147149
Arm Compiler for Linux is available to install with the Ubuntu system package manager `apt` command.
148150

149-
### Setup the ACfL package repository:
151+
#### Set up the ACfL package repository
150152

151153
Add the ACfL `apt` package repository to your Ubuntu 20.04 or 22.04 system:
152154

153155
```bash { target="ubuntu:latest" }
154156
sudo apt update
155-
sudo apt install -y curl
156-
source /etc/os-release
157+
sudo apt install -y curl environment-modules python3 libc6-dev
158+
. /etc/os-release
157159
curl "https://developer.arm.com/packages/ACfL%3A${NAME}-${VERSION_ID/%.*/}/${VERSION_CODENAME}/Release.key" | sudo tee /etc/apt/trusted.gpg.d/developer-arm-com.asc
158160
echo "deb https://developer.arm.com/packages/ACfL%3A${NAME}-${VERSION_ID/%.*/}/${VERSION_CODENAME}/ ./" | sudo tee /etc/apt/sources.list.d/developer-arm-com.list
159161
sudo apt update
160162
```
161163

162164
The ACfL Ubuntu package repository is now ready to use.
163165

164-
### Install ACfL
166+
#### Install ACfL
165167

166168
Download and install Arm Compiler for Linux with:
167169

168170
```bash { target="ubuntu:latest" }
169171
sudo apt install acfl
170172
```
171173

174+
### Amazon Linux 2023
175+
176+
Arm Compiler for Linux is available to install with either the `dnf` or `yum` system package manager.
177+
178+
#### Install ACfL from the Amazon Linux 2023 package repository
179+
180+
Install ACfL and prerequisites from the Amazon Linux 2023 `rpm` package repository with `dnf`:
181+
182+
```bash
183+
sudo dnf update
184+
sudo dnf install 'dnf-command(config-manager)' procps psmisc make environment-modules
185+
sudo dnf config-manager --add-repo https://developer.arm.com/packages/ACfL%3AAmazonLinux-2023/latest/ACfL%3AAmazonLinux-2023.repo
186+
sudo dnf install acfl
187+
```
188+
189+
Or using the equivalent `yum` commands:
190+
191+
```bash
192+
sudo yum update
193+
sudo yum install 'dnf-command(config-manager)' procps psmisc make environment-modules
194+
sudo yum config-manager --add-repo https://developer.arm.com/packages/ACfL%3AAmazonLinux-2023/latest/ACfL%3AAmazonLinux-2023.repo
195+
sudo yum install acfl
196+
```
197+
198+
The ACfL tools are now ready to use.
199+
200+
172201
### Set up environment
173202

174203
Arm Compiler for Linux uses environment modules to dynamically modify your user environment. Refer to the [Environment Modules documentation](https://lmod.readthedocs.io/en/latest/#id) for more information.
@@ -178,17 +207,17 @@ Set up the environment, for example, in your `.bashrc` and add module files.
178207
#### Ubuntu Linux:
179208

180209
```bash { target="ubuntu:latest" }
181-
echo "source /usr/share/modules/init/bash" >> ~/.bashrc
210+
echo ". /usr/share/modules/init/bash" >> ~/.bashrc
182211
echo "module use /opt/arm/modulefiles" >> ~/.bashrc
183-
source ~/.bashrc
212+
. ~/.bashrc
184213
```
185214

186-
#### Red Hat Linux:
215+
#### Red Hat or Amazon Linux:
187216

188217
```bash { target="fedora:latest" }
189-
echo "source /usr/share/Modules/init/bash" >> ~/.bashrc
218+
echo ". /usr/share/Modules/init/bash" >> ~/.bashrc
190219
echo "module use /opt/arm/modulefiles" >> ~/.bashrc
191-
source ~/.bashrc
220+
. ~/.bashrc
192221
```
193222

194223
To list available modules:
@@ -217,7 +246,7 @@ Arm Compiler for Linux is available with the [Spack](https://spack.io/) package
217246

218247
See the [Arm Compiler for Linux and Arm PL now available in Spack](https://community.arm.com/arm-community-blogs/b/high-performance-computing-blog/posts/arm-compiler-for-linux-and-arm-pl-now-available-in-spack) blog for full details.
219248

220-
### Setup Spack
249+
### Set up Spack
221250

222251
Clone the Spack repository and add `bin` directory to the path:
223252

@@ -248,7 +277,7 @@ If you wish to install just the Arm Performance Libraries, use:
248277
spack install armpl-gcc
249278
```
250279

251-
### Setup environment
280+
### Set up environment
252281
Use the commands below to set up the environment:
253282

254283
```console

0 commit comments

Comments
 (0)