client/cs_benchmark.cpp File Reference

(r16139/r16069)

#include "cpp.h"
#include "config.h"
#include <string>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <csignal>
#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include "error_numbers.h"
#include "file_names.h"
#include "filesys.h"
#include "util.h"
#include "cpu_benchmark.h"
#include "client_msgs.h"
#include "log_flags.h"
#include "client_state.h"

Include dependency graph for cs_benchmark.cpp:


Classes

struct  BENCHMARK_DESC

Defines

#define DEFAULT_FPOPS   1e9
#define DEFAULT_IOPS   1e9
#define DEFAULT_MEMBW   1e9
#define DEFAULT_CACHE   1e6
#define FP_START   2
#define FP_END   12
#define INT_START   17
#define INT_END   27
#define OVERALL_END   30
#define MIN_CPU_TIME   2
#define BM_FP_INIT   0
#define BM_FP   1
#define BM_INT_INIT   2
#define BM_INT   3
#define BM_SLEEP   4
#define BM_DONE   5
#define BENCHMARK_PERIOD   (SECONDS_PER_DAY*5)

Functions

void benchmark_wait_to_start (int which)
bool benchmark_time_to_stop (int which)
int cpu_benchmarks (BENCHMARK_DESC *bdp)
void abort_benchmark (BENCHMARK_DESC &desc)
void check_benchmark (BENCHMARK_DESC &desc)

Variables

const char * file_names [2] = {"do_fp", "do_int"}
const char * BOINC_RCSID_97ee090db0 = "$Id: cs_benchmark.cpp 16069 2008-09-26 18:20:24Z davea $"

Define Documentation

#define BENCHMARK_PERIOD   (SECONDS_PER_DAY*5)

#define BM_DONE   5

#define BM_FP   1

#define BM_FP_INIT   0

#define BM_INT   3

#define BM_INT_INIT   2

#define BM_SLEEP   4

#define DEFAULT_CACHE   1e6

#define DEFAULT_FPOPS   1e9

#define DEFAULT_IOPS   1e9

#define DEFAULT_MEMBW   1e9

#define FP_END   12

#define FP_START   2

#define INT_END   27

#define INT_START   17

#define MIN_CPU_TIME   2

#define OVERALL_END   30


Function Documentation

void abort_benchmark ( BENCHMARK_DESC desc  ) 

Here is the caller graph for this function:

bool benchmark_time_to_stop ( int  which  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void benchmark_wait_to_start ( int  which  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void check_benchmark ( BENCHMARK_DESC desc  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

int cpu_benchmarks ( BENCHMARK_DESC bdp  ) 

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char* BOINC_RCSID_97ee090db0 = "$Id: cs_benchmark.cpp 16069 2008-09-26 18:20:24Z davea $"

const char* file_names[2] = {"do_fp", "do_int"}


Generated on Mon Oct 6 10:37:56 2008 for BOINC by  doxygen 1.5.6