Environment configuration

This section describes how to load the correct environment module for Arm Performance Libraries.

Before you begin

Procedure

Use the following steps to configure your environment for Arm Performance Libraries:

  1. Check which environment modules are available:

    module avail

    Note: If you do not see the Arm Compiler for Linux (arm* and GCC gnu* modulefiles, configure your MODULEPATH environment variable to include the installation directory:

    export MODULEPATH=$MODULEPATH:/opt/arm/modulefiles/
  2. Load the appropriate modules, or modules, for your toolchain:

    For Arm Compiler for Linux, load the compiler modulefile:

    module load arm21/21.0

    For GCC load both the GCC and GCC Arm Performance Libraries modulefiles:

    module load gnu10/10.2.0
    module load armpl-AArch64{-SVE}/21.0.0

    For GCC, you must load the specific Arm Performance Libraries module that you require for your target. For an SVE-enabled target, include '-SVE' in the modulefile.

    Tip: Consider adding the module load command to your .profile to run it automatically every time you log in.

  3. Check your environment using the following commands, according to the compiler you are using.

    Note: Ensure that the command contains the appropriate library directories from /opt/arm, which you installed during the installation procedure:

    Compiler Command
    armclang|armclang++|armflang which {armclang|armclang++|armflang}
    gcc|gfortran which {gcc|gfortran}

Previous Next