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