norman's blog

Notes of an amnesiac.
Never stop thinking.
Find an aesthetic description.

Tuesday, June 26, 2012

OpenMP Profiler: OmpP



Notes of installation of OmpP on ubuntu 12.04:
1. Install OmpP:
    follow official installation instructions, but  OMPCC= gcc in Makefile.defs
2. before Instrumentation:
    In Makefile:  CXX= kinst-ompp g++
                         GCC= kinst-ompp gcc
                         FCC= kinst-ompp gfortran
                         LDC= kinst-ompp g++
                         Include += -I$(HOME)/opt/ompp/include
                         LIB +=  $(HOME)/opt/ompp/lib/libompp.a
    In .bashrc:    export PATH=$PATH:$HOME/opt/ompp/bin

3. Compile target application:
    Note OmpP will generate some additional files, e.g., *.mod.c etc.
    "make purge" before re-make

For Tau and OmpP, refer to http://www.ruyk.com/tech/?p=49

Note: a bug when compiling:

Ompp does not support the following format, which leads to a compilation error :

#pragma omp parallel for .....
{
   for.....
}

should change to

#pragma omp parallel
{
#pragma omp for
   for......
}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home