Complete the following steps to install the AOCL library suite. In inline path
and directory names, <release> means the package version 5.3.0.
Throughout this chapter, INSTALL_ROOT means the directory on disk that
contains lib, include, amd-libs.cfg, and the generated module file
for the tree you are using (for example .../gcc/MT). In examples, the token
<INSTALL_ROOT> is a placeholder for that directory path. The AOCL_ROOT
environment variable is set to the same directory only after you
source amd-libs.cfg or load the Environment Modules file—use
<INSTALL_ROOT> (or an explicit path) until then.
Download the AOCL tar packages from the Download (https://www.amd.com/en/developer/aocl.html#downloads) section to the target machine.
Untar the package. The installer script
install.shis in the top-level directoryaocl-linux-<compiler>-<release>:$ tar -xvf aocl-linux-<compiler>-5.3.0.tar.gz
Run
./install.shto install the AOCL package (all libraries). The default INSTALL_ROOT is/home/<username>/aocl/<release>/<compiler>/<threading>, where<compiler>isaoccorgcc, and<threading>isMT(multi-threaded) orST(single-threaded). The defaultamd-libs.cfg/ module instructions refer to the MT tree unless you choose otherwise.The master tarball includes both ST and MT library archives; the installer writes two trees,
.../aocc/STand.../aocc/MT(or.../gcc/STand.../gcc/MT). Libraries that do not ship a separate multi-threaded build are still placed underMTby reusing the ST binaries so both trees stay complete. The Multi-threaded column in AOCL Feature Support Matrix - 2 in the Introduction summarizes native multi-threading support per library.Use
./install.sh -hto print the usage of the script. A few supported options are:Table 3.1 install.sh Script Options# Option
Description
-h
Print the help.
-t
Custom target directory to install libraries.
-l
Library to be installed.
-i
Select LP64/ILP64 libraries to be set as default.
To install the AOCL package in a custom location, run
./install.shwith-t <CUSTOM_PATH>. The installer creates both ST and MT trees under that base:<CUSTOM_PATH>/<release>/<compiler>/STand<CUSTOM_PATH>/<release>/<compiler>/MTBy default both ST and MT trees are installed. The default INSTALL_ROOT in
amd-libs.cfgand the Environment Modules snippet is the MT tree. The ST tree is the siblingSTdirectory. After yousource amd-libs.cfgor load that module,AOCL_ROOTis set to that default (MT) INSTALL_ROOT.Examples:
./install.sh— default base/home/<username>/aocl; MT tree:/home/<username>/aocl/<release>/aocc/MT../install.sh -t /home/<username>— base is/home/<username>; MT tree:/home/<username>/<release>/aocc/MT../install.sh -t .— run insideaocl-linux-<compiler>-<release>; MT tree:<current-dir>/<release>/aocc/MT.
Note
If
<CUSTOM_PATH>contains spaces, quote it in the shell, for example./install.sh -t "/home/user/my aocl".You can install a subset of libraries with
-l. Pass one or more names after-l(space-separated). Valid names are: blis, compression, crypto, da, dlp, fftw, fftz, libflame, libm, libmem, rng, scalapack, securerng, sparse, and utils.Example (single library):
./install.sh -l blis.Example (several libraries):
./install.sh -l blis libflame sparse.
By default, the master installer includes AOCL-FFTW. To install AOCL-FFTZ instead of FFTW, use
-l fftz(do not request fftw and fftz in the same install).AOCL libraries support the following two integer types:
<INSTALL_ROOT>refers to the INSTALL_ROOT for the library tree you are configuring (by default the MT tree; see step 4). Aftersource amd-libs.cfg, that path is also$AOCL_ROOT. Paths are:LP64 libraries and header files are installed respectively in the following paths:
<INSTALL_ROOT>/lib_LP64<INSTALL_ROOT>/include_LP64
ILP64 libraries and header files are installed respectively in the following paths:
<INSTALL_ROOT>/lib_ILP64<INSTALL_ROOT>/include_ILP64
Note
AOCL-Compression supports only LP64
AOCL-FFTW supports LP64 and ILP64 in single binary using a different set of APIs.
By default, LP64 libraries and header files are available in
<INSTALL_ROOT>/liband<INSTALL_ROOT>/includerespectively (symlinks to the chosen LP64 or ILP64 directories). If you do not pass-i lp64or-i ilp64, the installer prompts you to choose.Suffix
./install.shwith-i <lp64/ilp64>to:Set the LP64 libraries as the default libraries; use the installer with the option:
-i lp64. For example,./install.sh -t /home/amd -l blis -i lp64.This installs only AOCL-BLAS library in the path
/home/amdand sets LP64 AOCL-BLAS libraries as the default.Set ILP64 libraries as the default; use the installer with the option:
-i ilp64. For example,./install.sh -i ilp64.This installs all AOCL libraries in the default path and sets ILP64 libraries as the default.