Preparing the Sample Application

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>/C++/mic_samples/LEO_tutorial/tbo_sort.c to a directory where you have write and execute permissions.

Setting the Environment Variables

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:

  1. Open a terminal session.

  2. 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.

Previous: Introduction to Guided Auto-parallelization Next: Running Guided Auto-parallelization


Submit feedback on this help topic
Click here for more Getting Started Tutorials