#include "hist_params.h"
Defines | |
#define | STR_BUF_SIZE 1024 |
Functions | |
int | read_hist_params (struct test_params_s *test_params_p, int sequence_type) |
void | print_hist_params (struct test_params_s *test_params_p, int sequence_type) |
int | generate_rand_hist (int myid, unsigned int *seed_p, int sequence_type, struct work_info_s *work_info_p, struct mpe_events_s *mpe_events_p, struct test_params_s *test_params_p) |
Variables | |
static const char * | decode_sequence [MAX_SEQUENCE] |
#define STR_BUF_SIZE 1024 |
int generate_rand_hist | ( | int | myid, | |
unsigned int * | seed_p, | |||
int | sequence_type, | |||
struct work_info_s * | work_info_p, | |||
struct mpe_events_s * | mpe_events_p, | |||
struct test_params_s * | test_params_p | |||
) |
Based on the histogram information provided by either the query or database distributions, generate a sequence size.
myid | MPI myid. | |
seed_p | Seed to generate pseudo-random output. | |
sequence_type | Either a QUERY or DATABASE type. | |
work_info_p | Pointer to work information structure. | |
mpe_events_p | Pointer to timing structure. | |
test_params_p | Pointer to test_params. |
void print_hist_params | ( | struct test_params_s * | test_params_p, | |
int | sequence_type | |||
) |
Prints out the histogram information from the test_params structure that has already been parsed from a file for either query or database distributions.
test_params_p | Pointer to test_params. | |
sequence_type | Either a QUERY or DATABASE type. |
int read_hist_params | ( | struct test_params_s * | test_params_p, | |
int | sequence_type | |||
) |
Reads in histogram information from a file for either query or database distributions.
test_params_p | Pointer to test_params. | |
sequence_type | Either a QUERY or DATABASE type. |
const char* decode_sequence[MAX_SEQUENCE] [static] |
Initial value:
{ "QUERY", "DATABASE" }