Overview

A system with the Intel® Many Integrated Core Architecture (Intel® MIC Architecture) can run your application on both the CPU and the coprocessor. The application starts at the CPU with user-defined sections of the source code offloaded to the coprocessor.

In this tutorial, you will compile the sample source code into an application that runs on both the CPU and coprocessor. The source code contains sections that are defined to run on both the CPU and the coprocessor. After compiling the source code, you will then look at the source code to see how you can define sections to run on both the host CPU and the coprocessor. Finally, you will compile the same source code into an application that runs only on the host CPU.

Note

To complete this tutorial, you must have a system with the Intel MIC Architecture.

About This Tutorial

This tutorial shows you how to compile the source code into an application that runs on both the host CPU and coprocessor. The source code can count the number of running coprocessors and has sections that are defined to run on both the host CPU and coprocessor.

Estimated Duration

15-20 minutes.

Learning Objectives

After you complete this tutorial, you should be able to:

  • Write code to detect if the coprocessor is running and the number of running coprocessors.

  • Define sections in your code that can run on both the host CPU and coprocessor.

  • Compile the source code into an application that can run on both the host CPU and coprocessor.

  • Compile the same source code into an application that can run on the CPU only.


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