Complete the following steps to install the AOCL Debian package:
Download the AOCL 5.2 Debian package to the target machine.
Check the installation path before installing.
$ dpkg -c aocl-linux-gcc-5.2.0_1_amd64.deb
Install the package.
$ sudo dpkg -i aocl-linux-gcc-5.2.0_1_amd64.deb Or $ sudo apt install ./aocl-linux-gcc-5.2.0_1_amd64.deb
Note
You must have the sudo privileges to perform this action.
Display the installed package information along with the package version and a short description.
$ dpkg -s aocl-linux-gcc-5.2.0
List the contents of the package.
$dpkg -L aocl-linux-gcc-5.2.0
AOCL libraries support the following two integer types:
LP64 libraries and header files are installed in
/INSTALL_PATH/lib_LP64and/INSTALL_PATH/include_LP64respectively.ILP64 libraries and header files are installed in
/INSTALL_PATH/lib_ILP64and/INSTALL_PATH/include_ILP64respectively.
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_PATH/liband/INSTALL_PATH/includerespectively, where:INSTALL_PATH:
/opt/AMD/aocl/aocl-linux-<compiler>-5.2.0/<compiler>Compiler: aocc or gcc
For example, INSTALL_PATH for gcc compiler is:
/opt/AMD/aocl/aocl-linux-gcc-5.2.0/gccTo change the default library path to ILP64 / LP64, use the following script:
$ cd /opt/AMD/aocl/aocl-linux-<compiler>-5.2.0/gcc $ sudo bash set_aocl_interface_symlink.sh <ilp64 / lp64>