Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:33:24

0001 #ifndef CONSTANTS_H_
0002 #define CONSTANTS_H_
0003 
0004 const double RESOLUTION_DEFAULT = 2.0; /* secs (normally 2.0) */
0005 const int RANDOM_SEED = 101010;
0006 
0007 /* default: small (cache-contained) problem sizes */
0008 
0009 const int FFT_SIZE = 1024; /* must be a power of two */
0010 const int SOR_SIZE = 100;  /* NxN grid */
0011 const int SPARSE_SIZE_M = 1000;
0012 const int SPARSE_SIZE_nz = 5000;
0013 const int LU_SIZE = 100;
0014 
0015 /* large (out-of-cache) problem sizes */
0016 
0017 const int LG_FFT_SIZE = 1048576; /* must be a power of two */
0018 const int LG_SOR_SIZE = 1000;    /*  NxN grid  */
0019 const int LG_SPARSE_SIZE_M = 100000;
0020 const int LG_SPARSE_SIZE_nz = 1000000;
0021 const int LG_LU_SIZE = 1000;
0022 
0023 /* tiny problem sizes (used to mainly to preload network classes     */
0024 /*                     for applet, so that network download times    */
0025 /*                     are factored out of benchmark.)               */
0026 /*                                                                   */
0027 const int TINY_FFT_SIZE = 16; /* must be a power of two */
0028 const int TINY_SOR_SIZE = 10; /* NxN grid */
0029 const int TINY_SPARSE_SIZE_M = 10;
0030 const int TINY_SPARSE_SIZE_N = 10;
0031 const int TINY_SPARSE_SIZE_nz = 50;
0032 const int TINY_LU_SIZE = 10;
0033 
0034 #endif