To begin this tutorial, get the source code from the Samples directory and set the environment variables to use the compiler.
To get the source code, copy the file <install-dir>/Samples/<locale>/Fortran/mic_samples/LEO_tutorial/tbo_sort.F90 to a directory where you have write and execute permissions.
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 the intel64 argument
To set the environment variables:
Open a terminal session.
Run one of the scripts with the intel64 argument. The following example uses compilervars.sh:
source <install-dir>/bin/compilervars.sh intel64
where <install-dir> is the directory structure containing the /bin directory.
After copying the source file and setting the environment variables, you can compile the source code into an application that runs on both the CPU and coprocessor. In the next step, you will build the source code into an application.