To specify and configure the target for the hardware event-based sampling analysis on an Intel Xeon Phi coprocessor, use the Project Properties dialog box.
Prerequisites: Build the target on the host with full optimizations, which is recommended for performance analysis.
To choose a target for an Intel Xeon Phi coprocessor analysis:
- Click the menu button and select New >Project... to set up a new VTune Amplifier project for collection configuration.
The Create a Project dialog box opens.
- Specify a project name and location and click the Create Project button.
The Project Properties dialog box opens with the Target tab active by default.
- From the Target type drop-down menu select one of the following target types supported for the Intel Xeon Phi coprocessor analysis:
Profile System target type for the system-wide analysis;
Launch Application to associate a collection with a particular application.
VTune Amplifier starts target applications from the host. It is not able to start an application directly on the Intel Xeon Phi coprocessor.
- If you select the Launch Application target type, you have the following options to specify your target:
If your application uses the compiler offload feature, it is already a host application and you can start it from the VTune Amplifier directly by specifying it in the Application field.
If your target is a native Intel Xeon Phi coprocessor application, you need to:
Copy the target application to an Intel Xeon Phi coprocessor card, for example:
scp matrix.mic mic0:/tmp
You may add this command to a build script to automate a copy action after the binary recompilation. Or you can mount the host directory so that the binary is visible on the Intel Xeon Phi coprocessor. See the NFS Mounting a Host Export topic in the Intel Manycore Platform Software Stack (Intel MPSS) help for details.
Make sure you have copied any data files needed by your application to the card in a known location.
In the Application to Launch field, specify
sshas the application to launch. In the Application parameters field, specify an identifier of the Intel Xeon Phi coprocessor card and the path to the copied application.
When specifying the application parameters or creating a launching script for your native application, make sure to:
If you need to use
sudoto run the application on the coprocessor, use the following settings:
ssh mic0 /tmp/matrix.mic