Name

TAU_PROFILE_GET_THREAD — Gives the measurement system's thread id

Synopsis

C/C++:

TAU_PROFILE_GET_THREAD(thread);
int thread;

Fortran:

TAU_PROFILE_GET_THREAD(THREAD);
integer THREAD;

Description

TAU_PROFILE_GET_THREAD gives the thread id for the processes in which it is called.

Example

C/C++ :

int main (int argc, char **argv) {
  int i;
  TAU_PROFILE_GET_THREAD(i);
  return 0;
}
    

Fortran :

     PROGRAM SUM_OF_CUBES
      INTEGER :: T
        call TAU_PROFILE_GET_THREAD(T)
      ! This program prints all 3-digit numbers that
      ! equal the sum of the cubes of their digits.
      END PROGRAM SUM_OF_CUBES
    

Python:

import pytau
pytau.getThread(i)