00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef INCLUDED_CONFIG_H_
00028 #define INCLUDED_CONFIG_H_
00029
00030 #include <conf.h>
00031
00032 #define NOARCH 0
00033 #define QCDOC 1
00034 #define QCDSP 2
00035 #define cpsMPI 3
00036 #define BGL 4
00037 #define BGP 5
00038
00039
00040 #define VERSION_MAJOR 5
00041 #define VERSION_MINOR 0
00042 #define VERSION_SUB 8
00043 #define VERSION_STR "CPS_V5.0.8"
00044
00045 #define TARGET NOARCH
00046 #undef PARALLEL
00047
00048
00049 #ifndef TARGET
00050 #define TARGET NOARCH
00051 #endif
00052
00053 #if TARGET == QCDOC
00054 #include<qalloc.h>
00055 #include<qcdocos.h>
00056 #endif
00057
00058 #if TARGET == BGL
00059 #define CPS_FLOAT_ALIGN __attribute__((aligned(16)))
00060 #else
00061 #define CPS_FLOAT_ALIGN
00062 #endif
00063
00064 #if TARGET == QCDOC
00065
00066 #define CWDPREFIX(A) "/"A
00067 #else
00068 #define CWDPREFIX(A) A
00069 #endif
00070
00071
00072
00074 #define CAST_AWAY_CONST(x) ( const_cast<char*>(x) )
00075
00077 #define GLOBALSUM_TYPE double
00078
00079 #define CPS_END_NAMESPACE }
00080 #define CPS_START_NAMESPACE namespace cps {
00081 #define USING_NAMESPACE_CPS using namespace cps;
00082 #define CPS_NAMESPACE cps
00083
00084
00085 #if TARGET == cpsMPI
00086
00087 #define COMMS_DATASIZE (sizeof(float))
00088
00089 #include<util/qcdio_qprintf.h>
00090 #elif TARGET == BGL
00091
00092 #define COMMS_DATASIZE (sizeof(double))
00093
00094 #include<util/qcdio_qprintf.h>
00095 #else
00096 #define COMMS_DATASIZE (sizeof(double))
00097 #endif
00098
00099 #undef UNIFORM_SEED_TESTING
00100 #undef UNIFORM_SEED_NO_COMMS
00101
00102
00103
00104 #endif
00105
00106
00107
00108
00109