Software Archive
Read-only legacy content
17060 Discussions

newbie hello world sink side Windows

jimdempseyatthecove
Honored Contributor III
285 Views

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

0 Kudos
7 Replies
Loc_N_Intel
Employee
285 Views

Hi,

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:

.\hello_world_source.exe

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

 

0 Kudos
jimdempseyatthecove
Honored Contributor III
285 Views

stdio.h not found

--------------
[plain]

C:\Program Files\Intel\MPSS\sdk\tutorials\coi\hello_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 14.0.0.103 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 Files\Intel\MPSS\sdk\tutorials\coi\hello_world>

INCLUDE=
C:\Program Files (x86)\Intel\Composer XE 2013 SP1\compiler\include;
C:\Program Files (x86)\Intel\Composer XE 2013 SP1\compiler\include\intel64;
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE;
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE;
C:\Program Files (x86)\Windows Kits\8.0\include\shared;
C:\Program Files (x86)\Windows Kits\8.0\include\um;
C:\Program Files (x86)\Windows Kits\8.0\include\winrt;
C:\Program Files (x86)\Intel\Composer XE 2013 SP1\ipp\include;
C:\Program Files (x86)\Intel\Composer XE 2013 SP1\mkl\include;
C:\Program Files (x86)\Intel\Composer XE 2013 SP1\tbb\bin\..\include;
[/plain]

Jim Dempsey

0 Kudos
jimdempseyatthecove
Honored Contributor III
285 Views

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

0 Kudos
jimdempseyatthecove
Honored Contributor III
285 Views

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.

Jim

0 Kudos
Loc_N_Intel
Employee
285 Views

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.

0 Kudos
jimdempseyatthecove
Honored Contributor III
285 Views

Loc-nguyen,

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

0 Kudos
Frances_R_Intel
Employee
285 Views

The missing executable is fixed in MPSS 3.3.25055.

0 Kudos
Reply