MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stdlib.h>
#include <mpi.h>
#include <string.h>
#include <stdio.h>
#include "walltime.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
static void | walltime_clock_insert (const char *name) |
static void | walltime_summary_clocks (struct Clock *C, int N, int root, MPI_Comm comm) |
static void | walltime_update_parents (void) |
static double | seconds (void) |
void | walltime_init (struct ClockTable *ct) |
void | walltime_summary (int root, MPI_Comm comm) |
static int | clockcmp (const void *c1, const void *c2) |
int | walltime_clock (const char *name) |
char | walltime_get_symbol (const char *name) |
double | walltime_get (const char *name, enum clocktype type) |
double | walltime_get_time (const char *name) |
void | walltime_reset () |
double | walltime_add_internal (const char *name, const double dt) |
double | walltime_measure_internal (const char *name) |
double | walltime_measure_full (const char *name, const char *file, const int line) |
double | walltime_add_full (const char *name, const double dt, const char *file, const int line) |
void | walltime_report (FILE *fp, int root, MPI_Comm comm) |
Variables | |
static struct ClockTable * | CT = NULL |
static double | WallTimeClock |
static double | LastReportTime |
|
static |
Definition at line 77 of file walltime.c.
References Clock::name.
Referenced by walltime_clock(), and walltime_clock_insert().
|
static |
Definition at line 216 of file walltime.c.
Referenced by walltime_init(), walltime_measure_internal(), walltime_reset(), and walltime_summary().
double walltime_add_full | ( | const char * | name, |
const double | dt, | ||
const char * | file, | ||
const int | line | ||
) |
Definition at line 203 of file walltime.c.
References name, and walltime_add_internal().
double walltime_add_internal | ( | const char * | name, |
const double | dt | ||
) |
Definition at line 180 of file walltime.c.
References ClockTable::C, CT, name, Clock::time, and walltime_clock().
Referenced by walltime_add_full().
int walltime_clock | ( | const char * | name | ) |
Definition at line 112 of file walltime.c.
References ClockTable::C, clockcmp(), CT, ClockTable::N, name, Clock::name, and walltime_clock_insert().
Referenced by walltime_add_internal(), walltime_clock_insert(), walltime_get(), walltime_get_symbol(), walltime_get_time(), and walltime_measure_internal().
|
static |
Definition at line 83 of file walltime.c.
References ClockTable::AC, ClockTable::C, clockcmp(), CT, ClockTable::N, name, Clock::name, ClockTable::Nmax, qsort_openmp, and walltime_clock().
Referenced by walltime_clock(), and walltime_init().
double walltime_get | ( | const char * | name, |
enum clocktype | type | ||
) |
Definition at line 130 of file walltime.c.
References ClockTable::AC, ClockTable::C, CLOCK_ACCU_MAX, CLOCK_ACCU_MEAN, CLOCK_ACCU_MIN, CLOCK_STEP_MAX, CLOCK_STEP_MEAN, CLOCK_STEP_MIN, CT, Clock::max, Clock::mean, Clock::min, name, and walltime_clock().
char walltime_get_symbol | ( | const char * | name | ) |
Definition at line 125 of file walltime.c.
References ClockTable::C, CT, name, Clock::symbol, and walltime_clock().
double walltime_get_time | ( | const char * | name | ) |
Definition at line 149 of file walltime.c.
References ClockTable::C, CT, name, Clock::time, and walltime_clock().
void walltime_init | ( | struct ClockTable * | ct | ) |
Definition at line 19 of file walltime.c.
References CT, ClockTable::ElapsedTime, LastReportTime, ClockTable::N, ClockTable::Nmax, seconds(), walltime_clock_insert(), and walltime_reset().
Referenced by begrun(), main(), setup_density(), setup_particles(), setup_tree(), and test_fof().
double walltime_measure_full | ( | const char * | name, |
const char * | file, | ||
const int | line | ||
) |
Definition at line 195 of file walltime.c.
References name, and walltime_measure_internal().
double walltime_measure_internal | ( | const char * | name | ) |
Definition at line 185 of file walltime.c.
References ClockTable::C, CT, name, seconds(), Clock::time, walltime_clock(), and WallTimeClock.
Referenced by walltime_measure_full().
void walltime_report | ( | FILE * | fp, |
int | root, | ||
MPI_Comm | comm | ||
) |
Definition at line 220 of file walltime.c.
References ClockTable::AC, ClockTable::C, CT, ClockTable::ElapsedTime, Clock::max, Clock::mean, Clock::min, ClockTable::N, name, Clock::name, ClockTable::Nchildren, and ClockTable::StepTime.
Referenced by compute_global_quantities_of_system(), and main().
void walltime_reset | ( | void | ) |
Definition at line 176 of file walltime.c.
References seconds(), and WallTimeClock.
Referenced by walltime_init().
void walltime_summary | ( | int | root, |
MPI_Comm | comm | ||
) |
Definition at line 55 of file walltime.c.
References ClockTable::AC, ClockTable::C, CT, ClockTable::ElapsedTime, LastReportTime, ClockTable::N, seconds(), ClockTable::StepTime, Clock::time, walltime_summary_clocks(), and walltime_update_parents().
Referenced by compute_global_quantities_of_system(), and main().
|
static |
Definition at line 29 of file walltime.c.
References ClockTable::C, CT, Clock::max, Clock::mean, Clock::min, ClockTable::N, NTask, ta_free, ta_malloc, and Clock::time.
Referenced by walltime_summary().
|
static |
Definition at line 154 of file walltime.c.
References ClockTable::C, CT, ClockTable::N, Clock::name, ClockTable::Nchildren, prefix, and Clock::time.
Referenced by walltime_summary().
|
static |
Definition at line 9 of file walltime.c.
Referenced by walltime_add_internal(), walltime_clock(), walltime_clock_insert(), walltime_get(), walltime_get_symbol(), walltime_get_time(), walltime_init(), walltime_measure_internal(), walltime_report(), walltime_summary(), walltime_summary_clocks(), and walltime_update_parents().
|
static |
Definition at line 12 of file walltime.c.
Referenced by walltime_init(), and walltime_summary().
|
static |
Definition at line 11 of file walltime.c.
Referenced by walltime_measure_internal(), and walltime_reset().