TAU_DYNAMIC_PHASE_ST(3)

Name
TAU_DYNAMIC_PHASE_STOP - Enters a DYNAMIC_PHASE.

Synopsis

C/C++:

TAU_DYNAMIC_PHASE_STOP(string name);

Fortran:

TAU_DYNAMIC_PHASE_STOP(char name(size));

Description

TAU_DYNAMIC_PHASE_STOP leaves a DYNAMIC phase. Phases can be nested, but not overlapped.

Example

C/C++ :

    TAU_PROFILE("int foo(int) [{foo.cpp} {13,1}-{20,1}]", " ", TAU_USER);
    printf("inside foo: calling bar: x = %d\n", x);
    printf("before calling bar in foo\n");
    TAU_DYNAMIC_PHASE_START("foo_bar");
    bar(x-1); /* 17 */
    printf("after calling bar in foo\n");
    TAU_DYNAMIC_PHASE_STOP("foo_bar");
    return x;

Fortran :

        call TAU_PROFILE_TIMER(profiler, 'FOO [{foo.f90} {8,18}]')
        call TAU_PROFILE_START(profiler)
        print *, "inside foo: calling bar, x = ", x
         call TAU_DYNAMIC_PHASE_START("foo_bar");
          call bar(x-1)
        print *, "after calling bar"
         call TAU_DYNAMIC_PHASE_STOP("foo_bar");
    call TAU_PROFILE_STOP(profiler)

See Also

TAU_PHASE_CREATE_STATIC(3), TAU_PHASE_CREATE_DYNAMIC(3), TAU_PHASE_STOP(3)