Rate This Document
Findability
Accuracy
Completeness
Readability

Extended Installation (BLAS)

BLAS acceleration is used to accelerate linear algebra operations involved in oneDNN. Replace the example paths provided in the following procedure with the actual ones.

  1. Obtain the ArmPL installation package.
    1. Download the ArmPL installation package.

      https://developer.arm.com/-/media/Files/downloads/hpc/arm-performance-libraries/23-10/rhel-8/arm-performance-libraries_23.10_RHEL-8_gcc-10.4.tar

    2. Use an SFTP tool to upload the source package to the /path/to/ArmPL directory on the server.

    If the server is connected to the Internet, you can run the wget command on the server to download the source package.

    1. Go to the /path/to/ArmPL directory.
      cd /path/to/ArmPL
    2. Download the source package.
      wget https://developer.arm.com/-/media/Files/downloads/hpc/arm-performance-libraries/23-10/rhel-8/arm-performance-libraries_23.10_RHEL-8_gcc-10.4.tar --no-check-certificate
  2. Go to the /path/to/ArmPL directory.
    cd /path/to/ArmPL
  3. Create an installation directory.
    mkdir install
  4. Decompress the ArmPL installation package.
    tar -xvf arm-performance-libraries_23.10_RHEL-8_gcc-10.4.tar
  5. Go to the arm-performance-libraries_23.10_RHEL-8 directory.
    cd arm-performance-libraries_23.10_RHEL-8
  6. Perform the installation.
    ./arm-performance-libraries_23.10_RHEL-8.sh -i /path/to/ArmPL/install -a

    Parameter description:

    • -i: Installation path of the ArmPL library.
    • -a: Automatically accepts the End User License Agreement (EULA).
  7. Set the environment variable.
    export MODULEPATH=$MODULEPATH:/path/to/ArmPL/install/modulefiles
  8. Load the module.
    module load armpl/23.10.0_gcc-10.4
  9. Install oneDNN following the instructions in Basic Installation. Replace 7 with the following command to complete the oneDNN compilation and installation.
    cmake -DCMAKE_INSTALL_PREFIX=/path/to/oneDNN-3.3.3/build/install/ -DONEDNN_BLAS_VENDOR=ARMPL ..
  10. After the installation is complete, run the following command to check whether libdnnl.so is linked to the SO file of the ArmPL library:
    ldd /path/to/oneDNN-3.3.3/build/install/lib64/libdnnl.so

    If the following information is displayed, libdnnl.so has been linked to the SO file of the ArmPL library.