The following walk-through assumes that you have Visual Studio 2015 and Intel Advisor 2017 installed.
==== Preparations: ====
1. Download and unzip Prefix Scan.zip to a preferred location and open it with Visual Studio 2015.
4. Change the following project properties:
a. In C/C++ > General > Additional Include Directories, add the Advisor’s directory using macro notation: $(ADVISOR_..._DIR)include (or $(ADVISOR_..._DIR)\include if the environment variable does not end with a backslash).
b. In C/C++ > General > Debug Information Format, confirm it is set to Program Database (/Zi ).
c. In Linker > Debugging > Generate Debug Info, set it to Optimize for debugging (/DEBUG). d. In C/C++ > Optimization > Optimization, confirm it is set to Maximize Speed (/O2) or higher.
e. On the same page, set Inline Function Expansion to Only __inline (/Ob1).
f. In C/C++ > Code Generation > Runtime Library, confirm it has been set to Multi-threaded DLL (/MD); another option is to set this field to Multi-threaded Debug DLL (/MDd).
g. Enable OpenMP under C/C++ > Language > OpenMP Support by setting it to Generate Parallel Code (/Qopenmp).
h. Click OK to save the properties.
5. Comment out the “terminate” section in w3.main.cpp to end the application without waiting for user input.
16. Select OK to complete the project creation process.