PandA-2024.02
md.h
Go to the documentation of this file.
1 /*
2 Implemenataion based on:
3 A. Danalis, G. Marin, C. McCurdy, J. S. Meredith, P. C. Roth, K. Spafford, V. Tipparaju, and J. S. Vetter.
4 The scalable heterogeneous computing (shoc) benchmark suite.
5 In Proceedings of the 3rd Workshop on General-Purpose Computation on Graphics Processing Units, 2010.
6 */
7 
8 #include <stdlib.h>
9 #include <stdio.h>
10 #include "support.h"
11 
12 #define TYPE double
13 
14 // Problem Constants
15 #define nAtoms 256
16 #define maxNeighbors 16
17 // LJ coefficients
18 #define lj1 1.5
19 #define lj2 2.0
20 
21 void md_kernel(TYPE force_x[nAtoms],
22  TYPE force_y[nAtoms],
23  TYPE force_z[nAtoms],
24  TYPE position_x[nAtoms],
25  TYPE position_y[nAtoms],
26  TYPE position_z[nAtoms],
27  int32_t NL[nAtoms*maxNeighbors]);
29 // Test harness interface code.
30 
31 struct bench_args_t {
39 };
void md_kernel(TYPE force_x[nAtoms], TYPE force_y[nAtoms], TYPE force_z[nAtoms], TYPE position_x[nAtoms], TYPE position_y[nAtoms], TYPE position_z[nAtoms], int32_t NL[nAtoms *maxNeighbors])
Definition: md.c:10
int32_t NL[nAtoms *maxNeighbors]
Definition: md.h:38
TYPE position_z[nAtoms]
Definition: md.h:37
#define NL
Definition: 2mm.h:45
#define maxNeighbors
Definition: md.h:16
TYPE position_x[nAtoms]
Definition: md.h:35
TYPE position_y[nAtoms]
Definition: md.h:36
TYPE force_z[nAtoms]
Definition: md.h:34
TYPE force_y[nAtoms]
Definition: md.h:33
TYPE force_x[nAtoms]
Definition: md.h:32
#define nAtoms
Definition: md.h:15
#define TYPE
Definition: md.h:12

Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by doxygen 1.8.13