newbie hello world sink side Windows

newbie hello world sink side Windows

The VS 2012 solution file for Hello World builds the host side of the application pair but does not build the co-processor side (hello_world_sink.cpp)

Is there supposed to be a project in the solution for hello_world that builds both the source (host) side as well as sink (coprocessor) side?
(Same with all the other projects and solutions in the sdk coi tutorials.)

Instructions in the .pdf for windows do not include information as to how to build the sink side of the coi applications. It would seem to me that a proper example would contain a solution that builds both sides of the application.

Also, Search Forum does not seem to work.

Jim Dempsey
8 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


I just take a look in ..\tutorials\sdk\coi directory. From this directory, the README_Windows_2.txt file refers to the card side binaries available in the package; therefore, it seems like those binaries are missing. I will report this problem to the compiler team. Thank you.

However, you can also build these binaries since the source codes are included. For example, the following lines inlustrate how to build and run the example hello_world:

1. Open a Windows "Intel 64 Visual Studio 2012 mode", this command prompt windows sets the environment corectly.

2. In that windows, navigate to where hello_world_sink.cpp file located (..\sdk\tutorials\coi\hello_world

3. Compile the file hello_world_sink.cpp natively: "icl /Qmic hello_world_sink.cpp -o hello_world_sink_mic". This will generate the binary "hello_world_sink_mic" for the coprocessor.

4. Move this binary file to where hello_world_source.exe located (generated by Microsoft Visual Studio* (..\sdk\r\tutorials\coi\x64\Release).

5. Run the host binary:


2 engines available
Got engine handle
Sink process created, press enter to destroy it.
Hello from the sink!

Sink process returned 0
Sink exit reason SHUTDOWN OK


stdio.h not found


C:Program FilesIntelMPSSsdktutorialscoihello_world>icl /Qmic hello_world_sink.cpp -o hello_world_sink_mic
Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version Build 20130728
Copyright (C) 1985-2013 Intel Corporation.  All rights reserved.
icc: warning #10362: Environment configuration problem encountered.  Please check for proper MPSS installation and environment setup.
hello_world_sink.cpp(8): catastrophic error: cannot open source file "stdio.h"
  #include <stdio.h>
compilation aborted for hello_world_sink.cpp (code 4)
C:Program FilesIntelMPSSsdktutorialscoihello_world>
C:Program Files (x86)IntelComposer XE 2013 SP1compilerinclude;
C:Program Files (x86)IntelComposer XE 2013 SP1compilerincludeintel64;
C:Program Files (x86)Microsoft Visual Studio 11.0VCINCLUDE;
C:Program Files (x86)Microsoft Visual Studio 11.0VCATLMFCINCLUDE;
C:Program Files (x86)Windows Kits8.0includeshared;
C:Program Files (x86)Windows Kits8.0includeum;
C:Program Files (x86)Windows Kits8.0includewinrt;
C:Program Files (x86)IntelComposer XE 2013 SP1ippinclude;
C:Program Files (x86)IntelComposer XE 2013 SP1mklinclude;
C:Program Files (x86)IntelComposer XE 2013 SP1tbbbin..include;

Jim Dempsey

Got there via:

Start | All Programs | Intel Parallel Studio XE 2013 | Command Prompt | Parallel Studio XE with Intel Compiler v14.0 | Intel 64 Visual Studio 2012 mode

cd |\Program files\Intel\MPSS\sdk\tutorials\coi\hello_world

Then command line as you indicated.

Jim Dempsey

BTW the hello_world_source solution compiles and I can debug step up to the point where the ..._mic.exe isn't found. Therefor, for non-/Qmic compiles the INCLUDE path (to stdio.h) is ok.


Hi Jim,

For your information, I submitted an internal ticket request (ID 4867985) to include the MIC binaries in the above examples, and update the document in Windows MPSS. Thank you.


The MPSS Windows update needs to include the *.h files. I believe the *.lib are present. Though this should be tested when you package the distribution. The compilation for native option /Qmic is unable to locate the appropriate headers .AND. using the host side same named headers does not work.

Jim Dempsey

The missing executable is fixed in MPSS 3.3.25055.

Leave a Comment

Please sign in to add a comment. Not a member? Join today