NCEPLIBS-w3emc  2.11.0
summary.c File Reference

Make a system call to return various useful parameters. More...

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/times.h>
#include <sys/utsname.h>

Go to the source code of this file.

Functions

int bucket (int lng)
 
void cputim (double *usr, double *sys)
 
void elapse (double *timer)
 
void end_timer (struct time_data *time)
 
void print_timing (char *string, struct time_data *time)
 
void resource ()
 
void start_ ()
 
void start_timer (struct time_data *time)
 
void summary_ (int *returnVal)
 

Variables

double cpu_comm
 
double f_bytes
 
double final_wall
 
static FILE * fp = NULL
 
struct time_data MPI_Abort_data
 
struct time_data MPI_Address_data
 
struct time_data MPI_Allgather_data
 
struct time_data MPI_Allgatherv_data
 
struct time_data MPI_Allreduce_data
 
struct time_data MPI_Alltoall_data
 
struct time_data MPI_Alltoallv_data
 
struct time_data MPI_Attr_delete_data
 
struct time_data MPI_Attr_get_data
 
struct time_data MPI_Attr_put_data
 
struct time_data MPI_Barrier_data
 
struct time_data MPI_Bcast_data
 
struct time_data MPI_Bsend_data
 
struct time_data MPI_Bsend_init_data
 
struct time_data MPI_Buffer_attach_data
 
struct time_data MPI_Buffer_detach_data
 
struct time_data MPI_Cancel_data
 
struct time_data MPI_Cart_coords_data
 
struct time_data MPI_Cart_create_data
 
struct time_data MPI_Cart_get_data
 
struct time_data MPI_Cart_map_data
 
struct time_data MPI_Cart_rank_data
 
struct time_data MPI_Cart_shift_data
 
struct time_data MPI_Cart_sub_data
 
struct time_data MPI_Cartdim_get_data
 
struct time_data MPI_Comm_compare_data
 
struct time_data MPI_Comm_create_data
 
struct time_data MPI_Comm_dup_data
 
struct time_data MPI_Comm_free_data
 
struct time_data MPI_Comm_group_data
 
struct time_data MPI_Comm_rank_data
 
struct time_data MPI_Comm_remote_group_data
 
struct time_data MPI_Comm_remote_size_data
 
struct time_data MPI_Comm_size_data
 
struct time_data MPI_Comm_split_data
 
struct time_data MPI_Comm_test_inter_data
 
struct time_data MPI_Dims_create_data
 
struct time_data MPI_Errhandler_create_data
 
struct time_data MPI_Errhandler_free_data
 
struct time_data MPI_Errhandler_get_data
 
struct time_data MPI_Errhandler_set_data
 
struct time_data MPI_Error_class_data
 
struct time_data MPI_Error_string_data
 
struct time_data MPI_Gather_data
 
struct time_data MPI_Gatherv_data
 
struct time_data MPI_Get_count_data
 
struct time_data MPI_Get_elements_data
 
struct time_data MPI_Get_processor_name_data
 
struct time_data MPI_Graph_create_data
 
struct time_data MPI_Graph_get_data
 
struct time_data MPI_Graph_map_data
 
struct time_data MPI_Graph_neighbors_count_data
 
struct time_data MPI_Graph_neighbors_data
 
struct time_data MPI_Graphdims_get_data
 
struct time_data MPI_Group_compare_data
 
struct time_data MPI_Group_difference_data
 
struct time_data MPI_Group_excl_data
 
struct time_data MPI_Group_free_data
 
struct time_data MPI_Group_incl_data
 
struct time_data MPI_Group_intersection_data
 
struct time_data MPI_Group_range_excl_data
 
struct time_data MPI_Group_range_incl_data
 
struct time_data MPI_Group_rank_data
 
struct time_data MPI_Group_size_data
 
struct time_data MPI_Group_translate_ranks_data
 
struct time_data MPI_Group_union_data
 
struct time_data MPI_Ibsend_data
 
struct time_data MPI_Initialized_data
 
struct time_data MPI_Intercomm_create_data
 
struct time_data MPI_Intercomm_merge_data
 
struct time_data MPI_Iprobe_data
 
struct time_data MPI_Irecv_data
 
struct time_data MPI_Irsend_data
 
struct time_data MPI_Isend_data
 
struct time_data MPI_Issend_data
 
struct time_data MPI_Keyval_create_data
 
struct time_data MPI_Keyval_free_data
 
struct time_data MPI_Op_create_data
 
struct time_data MPI_Op_free_data
 
struct time_data MPI_Pack_data
 
struct time_data MPI_Pack_size_data
 
struct time_data MPI_Probe_data
 
struct time_data MPI_Recv_data
 
struct time_data MPI_Recv_init_data
 
struct time_data MPI_Reduce_data
 
struct time_data MPI_Reduce_scatter_data
 
struct time_data MPI_Request_free_data
 
struct time_data MPI_Rsend_data
 
struct time_data MPI_Rsend_init_data
 
struct time_data MPI_Scan_data
 
struct time_data MPI_Scatter_data
 
struct time_data MPI_Scatterv_data
 
struct time_data MPI_Send_data
 
struct time_data MPI_Send_init_data
 
struct time_data MPI_Sendrecv_data
 
struct time_data MPI_Sendrecv_replace_data
 
struct time_data MPI_Ssend_data
 
struct time_data MPI_Ssend_init_data
 
struct time_data MPI_Start_data
 
struct time_data MPI_Startall_data
 
struct time_data MPI_Test_cancelled_data
 
struct time_data MPI_Test_data
 
struct time_data MPI_Testall_data
 
struct time_data MPI_Testany_data
 
struct time_data MPI_Testsome_data
 
struct time_data MPI_Topo_test_data
 
struct time_data MPI_Type_commit_data
 
struct time_data MPI_Type_contiguous_data
 
struct time_data MPI_Type_extent_data
 
struct time_data MPI_Type_free_data
 
struct time_data MPI_Type_hindexed_data
 
struct time_data MPI_Type_hvector_data
 
struct time_data MPI_Type_indexed_data
 
struct time_data MPI_Type_lb_data
 
struct time_data MPI_Type_size_data
 
struct time_data MPI_Type_struct_data
 
struct time_data MPI_Type_ub_data
 
struct time_data MPI_Type_vector_data
 
struct time_data MPI_Unpack_data
 
struct time_data MPI_Wait_data
 
struct time_data MPI_Waitall_data
 
struct time_data MPI_Waitany_data
 
struct time_data MPI_Waitsome_data
 
struct time_data MPI_Wtick_data
 
struct time_data MPI_Wtime_data
 
int msglen
 
int mypid
 
int numtask
 
int procid_0
 
int profile
 
double start_wall
 
double tbytes
 
double tcpu
 
double tot_wall
 
int trace_flag
 
double twall
 
double wall_comm
 

Detailed Description

Make a system call to return various useful parameters.

This code will make a system call to return various useful parameters. When subroutine summary() is called, a list of system resource statistics is printed to stdout.

Users need to place a call to start() at the beginning of the section of code to be "measured" and a call to summary() at the end.

Use as follows:

call start()
do stuff
call summary()
Author
Jim Tuccillo
Date
August 1999

Definition in file summary.c.

Function Documentation

◆ bucket()

int bucket ( int  lng)
Parameters
lng
Author
Jim Tuccillo
Date
August 1999

Definition at line 196 of file summary.c.

◆ cputim()

void cputim ( double *  usr,
double *  sys 
)
Parameters
usr
sys
Author
Jim Tuccillo
Date
August 1999

Definition at line 234 of file summary.c.

◆ elapse()

void elapse ( double *  timer)
Parameters
timer
Author
Jim Tuccillo
Date
August 1999

Definition at line 211 of file summary.c.

◆ end_timer()

void end_timer ( struct time_data *  time)
Parameters
time
Author
Jim Tuccillo
Date
August 1999

Definition at line 279 of file summary.c.

◆ print_timing()

void print_timing ( char *  string,
struct time_data *  time 
)
Parameters
string
time
Author
Jim Tuccillo
Date
August 1999

Definition at line 381 of file summary.c.

◆ resource()

void resource ( )
Author
Jim Tuccillo
Date
August 1999

Definition at line 299 of file summary.c.

◆ start_()

void start_ ( )
Author
Jim Tuccillo
Date
August 1999

Definition at line 458 of file summary.c.

◆ start_timer()

void start_timer ( struct time_data *  time)
Parameters
time
Author
Jim Tuccillo
Date
August 1999

Definition at line 260 of file summary.c.

◆ summary_()

void summary_ ( int *  returnVal)
Parameters
returnVal
Author
Jim Tuccillo
Date
August 1999

Definition at line 437 of file summary.c.