To begin this tutorial, you need to get the source files for the sample application and set the environment variables to use the compiler. Locate the vec_samples.tar.gz archive in the samples_2016/<locale>/compiler_f/psxe directory. Unzip the archive to a directory where you have write permissions.
Use the following files:
driver.f90
matvec.f90
Before you can use the compiler, you must first set the environment variables by running the compiler environment script compilervars.sh or compilervars.csh with an argument that specifies the target architecture.
To set the environment variables:
Open a terminal session.
Run one of the scripts with the appropriate architecture argument. The following example uses compilervars.sh:
source <install-dir>/bin/compilervars.sh <arg>
where <install-dir> is the directory structure containing the /bin directory and <arg> is one of the following architecture arguments: