35 printf(
"Error in st_buffer_allocate: stats_directory name lacked sufficient space and was truncaited\n");
93 printf(
"Error in st_buffer_init: filename lacked sufficient space and was truncaited\n");
97 MPI_File_open(
MPI_COMM_ROSS, filename, MPI_MODE_CREATE | MPI_MODE_EXCL | MPI_MODE_WRONLY, MPI_INFO_NULL, &
buffer_fh[type]);
119 printf(
"WARNING: Stats buffer overflow on rank %lu\n",
g_tw_mynode);
137 size2 = size - size1;
139 memcpy(
g_st_buffer[type]->buffer, data + size1, size2);
153 int write_to_file = 0;
154 int my_write_size = 0;
161 MPI_Allgather(&my_write_size, 1, MPI_INT, &write_sizes[0], 1, MPI_INT,
MPI_COMM_ROSS);
178 offset += write_sizes[i];
static tw_clock tw_clock_read(void)
#define st_buffer_write_ptr(buf)
int g_st_buffer_free_percent
char stats_directory[4096]
char g_st_stats_out[4096]
char g_st_stats_path[4096]
#define st_buffer_free_space(buf)
int g_st_use_analysis_lps
#define st_buffer_read_ptr(buf)
void * tw_calloc(const char *file, int line, const char *for_who, size_t e_sz, size_t n)
tw_synch g_tw_synchronization_protocol
static tw_stime tw_now(tw_lp const *lp)
static int buffer_overflow_warned
static st_stats_buffer ** g_st_buffer
void st_buffer_push(int type, char *data, int size)
static MPI_File * buffer_fh
void st_buffer_init(int type)
static MPI_Offset * prev_offsets
static const char * file_suffix[NUM_COL_TYPES]
void st_buffer_allocate()
void st_buffer_write(int end_of_sim, int type)
void st_buffer_finalize(int type)