forked from UoB-HPC/miniBUDE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shared.h
60 lines (50 loc) · 885 Bytes
/
shared.h
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
58
59
60
#ifndef __SHARED
#define __SHARED
#define NUM_TD_PER_THREAD 4
typedef struct
{
float x, y, z;
int index;
} Atom;
typedef struct
{
int hbtype;
float radius;
float hphb;
float elsc;
} FFParams;
typedef struct
{
Atom* d_protein;
Atom* d_ligand;
FFParams* d_forcefield;
float* d_poses[6];
float* d_results;
int deviceIndex;
int wgsize;
int posesPerWI;
} Cuda;
typedef struct
{
int natlig;
int natpro;
int ntypes;
int nposes;
Atom * protein;
Atom * ligand;
FFParams * forcefield;
float * poses[6];
char * deckDir;
int iterations;
} Params;
extern Cuda _cuda;
extern Params params;
#ifdef __cplusplus
extern "C"
#endif
double getTimestamp();
#ifdef __cplusplus
extern "C"
#endif
void printTimings(double start, double end, double poses_per_wi);
#endif