From 69f2911e04ffb1b19eef1fafb8c040af271f656e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 15 Jul 2010 18:09:46 -0800 Subject: creating branch for adding support for CUDA 3.x and Fermi [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829] --- benchmarks/CUDA/DG/include/Mesh.h | 98 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 benchmarks/CUDA/DG/include/Mesh.h (limited to 'benchmarks/CUDA/DG/include/Mesh.h') diff --git a/benchmarks/CUDA/DG/include/Mesh.h b/benchmarks/CUDA/DG/include/Mesh.h new file mode 100644 index 0000000..f14338a --- /dev/null +++ b/benchmarks/CUDA/DG/include/Mesh.h @@ -0,0 +1,98 @@ + +/* default order */ +#ifndef p_N +#define p_N 6 +#endif + +#define NODETOL 1e-4 +#ifdef NDG2d +#define p_Nfp (p_N+1) +#define p_Np ((p_N+1)*(p_N+2)/2) +#define p_Nfields 3 +#define p_Nfaces 3 +#endif + +#ifdef NDG3d +#define p_Nfp ((p_N+1)*(p_N+2)/2) +#define p_Np ((p_N+1)*(p_N+2)*(p_N+3)/6) +#define p_Nfields 6 +#define p_Nfaces 4 +#endif + +#define BSIZE (16*((p_Np+15)/16)) +//#define BSIZE p_Np + +#define max(a,b) ( (a>b)?a:b ) +#define min(a,b) ( (a