Bridge++  Ver.2.1.3
define_params.h
Go to the documentation of this file.
1 
10 #ifndef ACCEL_DEFINE_PARAMS_INCLUDED
11 #define ACCEL_DEFINE_PARAMS_INCLUDED
12 
13 #if defined USE_GROUP_SU3
14 //#include "lib_alt_Accel/inline/define_params_SU3.h"
15 
16 //temporary setting
17 #define NC 3
18 #define NVC 6
19 #define NDF 18
20 #define NDF2 9
21 #define ND 4
22 #define ND2 2
23 #define NCD 12
24 #define NVCD 24
25 #define NVCD2 12
26 #define NDIM 4
27 
28 #endif
29 
30 // Warp length
31 //#define NWP 1
32 #define NWP 32
33 
34 // OpenACC runtime paramters
35 #define NUM_WORKERS 1
36 #define VECTOR_LENGTH 32
37 
38 // selection of implementation
39 
40 #define USE_DOMAINWALL_5DIN_EE_MATINV_KERNEL
41 // set if implement Dee_inv by matrix inversion
42 
43 #define USE_DOMAINWALL_5DIN_4D_KERNEL
44 // set if implement Domainwall kernel by 4D site loop
45 
46 // function for padding
47 #define CEIL_NWP(nst) ((((nst) + NWP-1)/NWP) * NWP)
48 // this definition must be the same as ceil_nwp() function below
49 
50 namespace {
51 
52  inline int ceil_nwp(const int nst)
53  {
54  int size = nst/NWP;
55  if( (nst % NWP) > 0) ++size;
56  return size * NWP;
57  }
58 
59 }
60 
61 #endif
62 //============================================================END=====
NWP
#define NWP
Definition: define_params.h:32