Choosing a Target on the Intel® Xeon Phi™ Coprocessor

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:

  1. 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.

  2. 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.

  3. 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.

    Note

    VTune Amplifier starts target applications from the host. It is not able to start an application directly on the Intel Xeon Phi coprocessor.

  4. 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:

      1. 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.

        Note

        Make sure you have copied any data files needed by your application to the card in a known location.

      2. In the Application to Launch field, specify ssh as 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 sudo to run the application on the coprocessor, use the following settings:

        • Application: sudo

        • Application parameters: ssh mic0 /tmp/matrix.mic

See Also


Supplemental documentation specific to a particular Intel Studio may be available at <install-dir>/<studio>/documentation/.

For more complete information about compiler optimizations, see our Optimization Notice.