-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuts.h
More file actions
53 lines (43 loc) · 1.36 KB
/
Copy pathuts.h
File metadata and controls
53 lines (43 loc) · 1.36 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
/*
* ---- The Unbalanced Tree Search (UTS) Benchmark ----
*
* Copyright (c) 2010 See AUTHORS file for copyright holders
*
* This file is part of the unbalanced tree search benchmark. This
* project is licensed under the MIT Open Source license. See the LICENSE
* file for copyright and licensing information.
*
* UTS is a collaborative project between researchers at the University of
* Maryland, the University of North Carolina at Chapel Hill, and the Ohio
* State University. See AUTHORS file for more information.
*
*/
#ifndef _UTS_H
#define _UTS_H
#ifdef __cplusplus
extern "C" {
#endif
#include "rng/rng.h"
/***********************************************************
* Tree node *
***********************************************************/
struct Node {
int type;
int height;
int numChildren;
struct state_t state;
};
void uts_initRoot(Node * root);
int uts_numChildren(Node *parent);
int uts_numChildren_bin(Node * parent);
int uts_numChildren_geo(Node * parent);
int uts_childType(Node *parent);
void initNode(Node * child);
int getComputeGran();
void uts_parseParams(int argc, char **argv);
void uts_printParams();
void uts_showStats(int nThreads, double walltime, unsigned long nNodes, unsigned long nLeaves, unsigned long maxDepth);
#ifdef __cplusplus
}
#endif
#endif /* _UTS_H */