-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathptrn_beff.cpp
More file actions
57 lines (46 loc) · 1.25 KB
/
ptrn_beff.cpp
File metadata and controls
57 lines (46 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright (c) 2009 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
*
* Author(s): Torsten Hoefler <htor@cs.indiana.edu>
*
*/
#include "netgauge.h"
#if defined NG_PTRN_BEFF && defined NG_MPI
#include "hrtimer/hrtimer.h"
#include "mersenne/MersenneTwister.h"
#include "ptrn_beff_cmdline.h"
#include <stdint.h>
#include <vector>
#include <numeric>
extern "C" {
#include "ng_sync.h"
extern struct ng_options g_options;
/* internal function prototypes */
static void beff_do_benchmarks(struct ng_module *module);
/**
* comm. pattern description and function pointer table
*/
static struct ng_comm_pattern pattern_beff = {
pattern_beff.name = "beff",
pattern_beff.desc = "assesses the influence of network jitter on collective MPI operations",
pattern_beff.flags = 0,
pattern_beff.do_benchmarks = beff_do_benchmarks
};
/**
* register this comm. pattern for usage in main
* program
*/
int register_pattern_beff() {
ng_register_pattern(&pattern_beff);
return 0;
}
static void beff_do_benchmarks(struct ng_module *module) {
}
} /* extern C */
#else
extern "C" {
int register_pattern_beff(void) {return 0;};
} /* extern C */
#endif