To begin this tutorial, get the source files for the sample application from the Samples directory and set the environment variables to use the compiler. Extract the source files from the following archive file to a directory on your system where you have write and execute permissions:
<install-dir>/Samples/<locale>/C++/guided_auto_parallel.tar.gz
The following source files are included:
main.cpp
main.h
scalar_dep.cpp
scalar_dep.h
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:
After setting getting the source files and setting the environment variables, you are ready to get a report by compiling the source code with a specific option. In the next step, you will compile the source code to get a guided auto parallelism report.