SYNOPSIS
C/C++:
- TAU_REGISTER_THREAD(void);
Fortran:
- TAU_REGISTER_THREAD(void);
DESCRIPTION
EXAMPLE
C/C++ :
void * threaded_func(void *data) { TAU_REGISTER_THREAD(); { /**** NOTE WE START ANOTHER BLOCK IN THREAD */ TAU_PROFILE_TIMER(tautimer, "threaded_func()", "int ()", TAU_DEFAULT); TAU_PROFILE_START(tautimer); work(); /* work done by this thread */ TAU_PROFILE_STOP(tautimer); } return NULL; }
Fortran :
call TAU_REGISTER_THREAD()
CAVEAT
PDT based tau_instrumentor does not insert TAU_REGISTER_THREAD calls, they must be inserted manually