Code Sample

Iniciando com Intel VTune

Iniciando com Intel VTune

O objetivo deste artigo é apresentar o Intel® VTune™ Amplifier XE 2013 e mostrar um exemplo básico de seu funcionamento, tendo como base um código Java, o qual terá uma versão serial e uma versão com processamento paralelo, mostrando um caso prático de tunning de performance.

Não será utilizada aqui nenhuma técnica de programação avançada em Java para implementação de paralelismo e não analisaremos profundamente os relatórios gerados pelo VTune.

Requisitos

  • Professors
  • Students
  • C/C++
  • Java*
  • Beginner
  • Intermediate
  • Intel® VTune™ Amplifier
  • artigo
  • Development Tools
  • Parallel Computing
  • Timer Utility

    Why this Timer Utility Class CUtilTimer?

    Timing a code snippet is an important part of performance analysis and tuning. There is not, however, a unique API or timer utility that works across Microsoft* Windows*, Linux*, and OS X*, which makes it difficult to maintain an application which runs on all three platforms. This timer class is designed to get around this problem by providing a common interface and hiding the platform specific implementations of extracting timing information from the programmer.

    Finance: Monte Carlo

    Monte Carlo algorithms solve deterministic problems by using a probabilistic analogue. The algorithm requires repeated simulations of chance that lend themselves well to parallel processing and vectorization. The simulations in this example are run serially, with Intel® Cilk™ Plus Array Notation (AN) for vectorization, with Intel Cilk Plus cilk_for for parallelization, and with both vectorization and cilk_for.

    Utilities

    This section contains the following utility classes:

    Name Description
    Timer Utility Utility class written in C++ that can be used to measure performance.
    Supported platforms: Windows*, Linux* and OS X*.
    Subscribe to Code Sample