Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

config.h

Go to the documentation of this file.
00001 
00008 /* Global options for compiling the Columbia code:  
00009  * config.h.  Generated from config.h.in by configure.
00010  * 
00011  *--------------------------------------------------------------------
00012  *  CVS keywords
00013  *
00014  *  $Author: chulwoo $
00015  *  $Date: 2008/04/21 14:09:15 $
00016  *  $Header: /space/cvs/cps/cps++/config.h.in,v 1.28 2008/04/21 14:09:15 chulwoo Exp $
00017  *  $Id: config.h.in,v 1.28 2008/04/21 14:09:15 chulwoo Exp $
00018  *  $Name: v5_0_8 $
00019  *  $Locker:  $
00020  *  $RCSfile: config.h.in,v $
00021  *  $Revision: 1.28 $
00022  *  $Source: /space/cvs/cps/cps++/config.h.in,v $
00023  *  $State: Exp $
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 // The configure procedure should make this unnecessary, but just in case...
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 // temporary hack until qos is more mature
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 /* Override printf to only print from only one processor */
00089 #include<util/qcdio_qprintf.h>
00090 #elif TARGET == BGL
00091 
00092 #define COMMS_DATASIZE (sizeof(double))
00093 /* Override printf to only print from only one processor */
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 /* INCLUDED_CONFIG_H_ */
00105 
00106 
00107 
00108 
00109 

Generated on Sat Oct 10 14:11:09 2009 for Columbia Physics System by  doxygen 1.3.9.1