Contents
Build Instructions for C# Samples
The NQueens sample implements multiple solutions to solve an n-queens problem. The NQueens sample for Intel® VTune™ Amplfier contains the following solutions that can be used independently:
Open the Visual Studio* IDE and choose File > Open > Project/Solution from the menu.
In the Open Project dialog box, choose the parallel_nqueens_csharp.sln or serial_nqueens_csharp.sln file.
Right-click the project in the Solution Explorer and choose Properties to display the Property Pages dialog box.
Choose Release or Active (Release) in the Configuration drop-down list.
Press F7 or choose Build > Build Solution from the menu to build the project.
To use the sample with the VTune Amplifier, make sure to provide an integer value between 4 and 13 as the Application parameters. If you do not provide a value, the sample application uses the default value of 13.
Open the Visual Studio* IDE and choose File > Open > Project/Solution from the menu.
In the Open Project dialog box, choose the nqueens_fortran.sln.
The solution includes two projects with a single-threaded and multithreaded version of the sample application. If you plan to use the tutorial with the sample, set up the nqueens_parallel as a startup project.
Right-click the project in the Solution Explorer and choose Properties to display the Property Pages dialog box.
Choose Release or Active (Release) in the Configuration drop-down list.
Press F7 or choose Build > Build Solution from the menu to build the project.
Detailed build instructions are available in the tutorial listed below.
To use the sample with the VTune Amplifier, make sure to provide an integer value between 4 and 15 as the Application parameters. To follow the tutorial workflow, use the value of 15.
The NQueens sample for the VTune Amplifier is accompanied by the following tutorials:
Finding Hotspots: Identify the most time-consuming program units, analyze thread parallelism on available logical CPU cores, and identify synchronization objects preventing parallelism. This tutorial is based on the NQueens sample located at the \nqueens_fortran folder.
Intel, the Intel logo, VTune and Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries.
*Other names and brands may be claimed as the property of others.
Microsoft, Windows, and the Windows logo are trademarks, or registered trademarks of Microsoft Corporation in the United States and/or other countries.
OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission from Khronos.
© 2017, Intel Corporation