icc

Optimizing Image resizing example of Intel(R) Integrated Performance Primitives (IPP) with Intel(R) Threading Building Blocks and Intel(R) C++ Compiler

< Overview >

 In this article, we are enabling and using Intel(R) Integrated Performance Primitives(IPP), Intel(R) Threading Building Blocks(TBB) and Intel(R) C++ Compiler(ICC) on Linux ( Ubuntu 14.04 LTS 64bit ). We will build and run one of the examples that comes with IPP and apply TBB and ICC on the example to observe the performance improvement of using Intel(R) System Studio features.

  • Developers
  • Partners
  • Professors
  • Students
  • Linux*
  • C/C++
  • Advanced
  • Beginner
  • Intermediate
  • Intel® C++ Compiler
  • Intel® VTune™ Amplifier
  • Intel® Integrated Performance Primitives
  • Intel® System Studio
  • ISS
  • IPP
  • tbb
  • icc
  • Cloud Computing
  • Optimization
  • Threading
  • Vectorization
  • OpenMP, Linux и немного фана

    Попался вот такой кусок кода для вычисления тривиального числа Pi

    n = 1000000000
    62    h   = 1.0 / (double) n;
    63    sum = 0.0;
    64
    65    for (i = 1; i <= n; i++)
    66    {
    67           x = h * ((double)i - 0.5);
    68           sum +=(4.0 / (1.0 + x*x));
    69    }
    70
    71    mypi = h * sum;

    изначально все строилось для MPI , правда захотелось перенести на OpenMP

    казалось бы все просто:

     53 #pragma omp parallel for reduction(+: sum)
     54 for (int i = 1; i <= n; i++)

    Subscribe to icc