00001
00002
00003
00004 #ifndef __UIUC_CHARM_CONV_CONFIG_H
00005 #define __UIUC_CHARM_CONV_CONFIG_H
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "conv-autoconfig.h"
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "conv-common.h"
00027
00028
00029
00030
00031
00032
00033
00034
00035 #include "conv-mach-common.h"
00036
00037
00038
00039
00040
00041
00042
00043
00044 #include "conv-mach.h"
00045
00046
00047
00048
00049
00050
00051
00052
00053 #include "conv-mach-opt.h"
00054
00055
00056
00057
00058
00059
00060
00061
00062 #if CMK_USE_LRTS
00063 #include "lrts-common.h"
00064 #endif
00065
00066
00067
00068
00069
00070 #define CMK_LBDB_OFF (!CMK_LBDB_ON)
00071
00072 #if CMK_AMD64 && !defined(CMK_64BIT)
00073 #define CMK_64BIT 1
00074 #endif
00075
00076 #if CMK_64BIT && !CMK_SIZET_64BIT
00077 #error "Compiler not generating 64 bit binary, please check compiler flags."
00078 #endif
00079
00080 #if CMK_SIZET_64BIT && !CMK_64BIT
00081 #define CMK_64BIT 1
00082 #endif
00083
00084 #ifndef CMK_USE_MEMPOOL_ISOMALLOC
00085 #define CMK_USE_MEMPOOL_ISOMALLOC 0
00086 #endif
00087
00088 #ifndef CMK_REPLAYSYSTEM
00089 #define CMK_REPLAYSYSTEM 1
00090 #endif
00091
00092
00093 #ifdef _WIN32
00094 #undef CMK_REPLAYSYSTEM
00095 #define CMK_REPLAYSYSTEM 0
00096 #endif
00097
00098 #if ! CMK_CCS_AVAILABLE
00099 #undef CMK_CHARMDEBUG
00100 #define CMK_CHARMDEBUG 0
00101 #endif
00102
00103 #ifndef CMK_TRACE_ENABLED
00104 #define CMK_TRACE_ENABLED 1
00105 #endif
00106
00107 #ifndef CMK_WITH_CONTROLPOINT
00108 #define CMK_WITH_CONTROLPOINT 1
00109 #endif
00110
00111
00112 #if ! CMK_TRACE_ENABLED && CMK_SMP_TRACE_COMMTHREAD
00113 #undef CMK_SMP_TRACE_COMMTHREAD
00114 #define CMK_SMP_TRACE_COMMTHREAD 0
00115 #endif
00116
00117 #if !defined(CMK_SMP)
00118 #define CMK_SMP 0
00119 #endif
00120
00121 #if CMK_SMP_TRACE_COMMTHREAD && ! CMK_SMP
00122 #undef CMK_SMP_TRACE_COMMTHREAD
00123 #define CMK_SMP_TRACE_COMMTHREAD 0
00124 #endif
00125
00126 #if !defined(CMK_CUDA)
00127 #define CMK_CUDA 0
00128 #endif
00129
00130 #if !defined(CMK_BIGSIM_CHARM)
00131 #define CMK_BIGSIM_CHARM 0
00132 #endif
00133
00134 #ifndef CMI_QD
00135 #define CMI_QD (CMK_BIGSIM_CHARM || CMK_REPLAYSYSTEM)
00136 #endif
00137
00138 #ifndef CMI_SWAPGLOBALS
00139 #define CMI_SWAPGLOBALS (CMK_HAS_ELF_H && !CMK_SMP)
00140 #endif
00141
00146 #if CMK_SMP && CMK_BROADCAST_USE_CMIREFERENCE
00147 #undef CMK_BROADCAST_USE_CMIREFERENCE
00148 #define CMK_BROADCAST_USE_CMIREFERENCE 0
00149 #endif
00150
00151 #if !defined(CMK_CRAYXE)
00152 #define CMK_CRAYXE 0
00153 #endif
00154
00155 #if !defined(CMK_CRAYXC)
00156 #define CMK_CRAYXC 0
00157 #endif
00158
00159 #if (CMK_CRAYXE || CMK_CRAYXC) && CMK_CONVERSE_UGNI && ! CMK_SMP
00160 #include "conv-mach-pxshm.h"
00161 #endif
00162
00163
00164 #if CMK_PPC64
00165 # define CMI_CACHE_LINE_SIZE 128
00166 #else
00167 # define CMI_CACHE_LINE_SIZE 64
00168 #endif
00169
00170
00171
00172 #if CMK_HAS_STDINT_H && !defined(CMK_TYPEDEF_INT2)
00173 #include <stdint.h>
00174 typedef int8_t CMK_TYPEDEF_INT1;
00175 typedef int16_t CMK_TYPEDEF_INT2;
00176 typedef int32_t CMK_TYPEDEF_INT4;
00177 typedef int64_t CMK_TYPEDEF_INT8;
00178 typedef uint8_t CMK_TYPEDEF_UINT1;
00179 typedef uint16_t CMK_TYPEDEF_UINT2;
00180 typedef uint32_t CMK_TYPEDEF_UINT4;
00181 typedef uint64_t CMK_TYPEDEF_UINT8;
00182 typedef intptr_t CmiIntPtr;
00183 #else
00184 #if CMK_SIZET_64BIT
00185 typedef CMK_TYPEDEF_UINT8 CmiIntPtr;
00186 #else
00187 typedef CMK_TYPEDEF_UINT4 CmiIntPtr;
00188 #endif
00189 #endif
00190
00191 #endif
00192
00193
00194 #define CMK_NODE_QUEUE_AVAILABLE CMK_SMP