(git:e70887f)
Loading...
Searching...
No Matches
fft_timer.h File Reference

Go to the source code of this file.

Macros

#define FFT_MAX_STRING_LENGTH   30

Typedefs

typedef void(* fft_print_func_t) (const char *, int, int)

Functions

void fft_init_timer ()
 Initializes the internal timer.
void fft_print_timing_report (const double threshold, const cp_mpi_comm_t comm)
 Prints the timing report.
void fft_print_timing_report_unit (const double threshold, fft_print_func_t print_func, const int output_unit, const cp_mpi_comm_t comm)
 Prints the timing report.
void fft_finalize_timer ()
 Finalizes the internal timer.
int fft_start_timer (const char *routine_name)
 Start a timing section.
void fft_stop_timer (const int handle)
 Stop a timing.

Macro Definition Documentation

◆ FFT_MAX_STRING_LENGTH

#define FFT_MAX_STRING_LENGTH   30

Definition at line 12 of file fft_timer.h.

Typedef Documentation

◆ fft_print_func_t

typedef void(* fft_print_func_t) (const char *, int, int)

Definition at line 20 of file fft_timer.h.

Function Documentation

◆ fft_init_timer()

void fft_init_timer ( )

Initializes the internal timer.

Author
Frederick Stein
Note
To be called by all threads or outside of a parallel region.
Author
Frederick Stein

Definition at line 199 of file fft_timer.c.

Here is the caller graph for this function:

◆ fft_print_timing_report()

void fft_print_timing_report ( const double threshold,
const cp_mpi_comm_t comm )

Prints the timing report.

Author
Frederick Stein

Prints the timing report.

Parameters
thresholdMinimum relative timing value to report.
commMPI communicator used to aggregate timing data.
Author
Frederick Stein

Definition at line 357 of file fft_timer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fft_print_timing_report_unit()

void fft_print_timing_report_unit ( const double threshold,
fft_print_func_t print_func,
const int output_unit,
const cp_mpi_comm_t comm )

Prints the timing report.

Note
To be called by all threads or outside of a parallel region.
To be called by all MPI ranks
Parameters
thresholdMinimum relative timing value to report.
print_funcCallback used to print the timing report.
output_unitDestination output unit.
commMPI communicator.
Author
Frederick Stein

Definition at line 253 of file fft_timer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fft_finalize_timer()

void fft_finalize_timer ( )

Finalizes the internal timer.

Author
Frederick Stein
Note
Thread-safe. Only the master-thread does something.
Author
Frederick Stein

Definition at line 367 of file fft_timer.c.

Here is the caller graph for this function:

◆ fft_start_timer()

int fft_start_timer ( const char * routine_name)

Start a timing section.

Author
Frederick Stein
Note
Thread-safe. Only the master-thread does something.
Parameters
routine_nameName of the timed routine.
Author
Frederick Stein

Definition at line 386 of file fft_timer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fft_stop_timer()

void fft_stop_timer ( const int handle)

Stop a timing.

Author
Frederick Stein
Note
Thread-safe. Only the master-thread does something.
Parameters
handleTimer handle.
Author
Frederick Stein

Definition at line 402 of file fft_timer.c.

Here is the call graph for this function:
Here is the caller graph for this function: