Advertisement
Guest User

Untitled

a guest
Nov 30th, 2013
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.63 KB | None | 0 0
  1. namd-2.9 > cat tmp/charmconfig.out
  2. Error checking is disabled
  3. Statistics collection is disabled
  4. Charm tracing is disabled
  5. Charm tracing communication thread is disabled
  6. CharmDebug is disabled
  7. Charm record/replay is disabled
  8. CCS is enabled
  9. Charm control point is disabled
  10. Setting load balancing timer type as 'double'
  11. ### whether C++ compiler works
  12. #include <stdio.h>
  13. void foo(void) {
  14. printf("Hello, world!\n");
  15. }
  16. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  17. ### whether linker works
  18. #include <stdio.h>
  19. int main() {
  20. printf("Hello, world!\n");
  21. return 0;
  22. }
  23. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  24. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -o testlink test.o
  25. ### whether compiler accept -fno-stack-protector
  26. #include <stdio.h>
  27. int main() {
  28. printf("Hello, world!\n");
  29. return 0;
  30. }
  31. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o -fno-stack-protector
  32. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -o testlink test.o -fno-stack-protector
  33. Setting charm++ envelop refnum field to unsigned short
  34. ### whether compiler generates code for 64-bit
  35. #include <stdio.h>
  36.  
  37. int foo()
  38. {
  39. int x[(int)(sizeof(void *) - 7)]={0};
  40. return x[0];
  41. }
  42. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  43. ### whether has strings.h
  44. #include <strings.h>
  45. int main() {
  46. char str[8];
  47. bzero(str, 8);
  48. return 0;
  49. }
  50. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  51. ### whether has values.h
  52. #include <values.h>
  53. int main() {
  54. double d = MAXDOUBLE;
  55. return 0;
  56. }
  57. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  58. ### whether has stdint.h
  59. #include <stdint.h>
  60. int main() {
  61. return 0;
  62. }
  63. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  64. ### whether has malloc.h
  65. #include <malloc.h>
  66. int main() {
  67. return 0;
  68. }
  69. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  70. ### whether has alloca.h
  71. #include <alloca.h>
  72. int main() {
  73. double *s=(double *)alloca(sizeof(double));
  74. *s=1.0;
  75. return 0;
  76. }
  77. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  78. ### whether has regex.h
  79. #include <regex.h>
  80. int main() {
  81. regex_t re;
  82. regcomp(&re, ".*MOD.*", REG_EXTENDED|REG_NOSUB);
  83. return 0;
  84. }
  85. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  86. ### whether C++ bool works
  87. #include <stdlib.h>
  88. bool foo(void) { return true; }
  89. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  90. ### whether long long works
  91. #include <stdlib.h>
  92. long long foo(void) { return 17; }
  93. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  94. ### whether __int64 works
  95. #include <stdlib.h>
  96. __int64 foo(void) { return 17; }
  97. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  98. test.cpp:2: error: '__int64' does not name a type
  99. ### whether long double works
  100. #include <stdlib.h>
  101. long double foo(void) { return 17.0; }
  102. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  103. ### whether ucontext has FPU pointer
  104. #include <ucontext.h>
  105. struct _libc_fpstate fpstate;
  106. fpregset_t *fp;
  107. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  108. ### whether ucontext uses uc_regs
  109. #include <ucontext.h>
  110.  
  111. int main()
  112. {
  113. ucontext_t context;
  114. context.uc_mcontext.uc_regs = 0;
  115. }
  116. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  117. test.cpp: In function 'int main()':
  118. test.cpp:6: error: 'struct mcontext_t' has no member named 'uc_regs'
  119. ### whether ucontext has pointer (v_regs) of vector type
  120. #include <ucontext.h>
  121. vrregset_t *v_regs;
  122. ucontext_t uc;
  123.  
  124. void foo()
  125. {
  126. vrregset_t *ptr = uc.uc_mcontext.v_regs;
  127. }
  128. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  129. test.cpp:2: error: expected constructor, destructor, or type conversion before '*' token
  130. test.cpp: In function 'void foo()':
  131. test.cpp:7: error: 'vrregset_t' was not declared in this scope
  132. test.cpp:7: error: 'ptr' was not declared in this scope
  133. test.cpp:7: error: 'struct mcontext_t' has no member named 'v_regs'
  134. ### whether inline works in C
  135. inline static int foo()
  136. {
  137. return 1;
  138. }
  139. mpicc -DCMK_GFORTRAN -I../include -I. -c test.c -o test.o
  140. ### whether C++ class explicit keyword works
  141. #include <stdlib.h>
  142. class er {
  143. protected:
  144. explicit er(unsigned int inType) {};
  145. };
  146. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  147. ### whether C++ signed char and char differ
  148. #include <stdlib.h>
  149. class er {
  150. protected:
  151. void operator()(char &v,const char *desc=NULL) {};
  152. void operator()(signed char &v,const char *desc=NULL) {};
  153. };
  154. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  155. ### whether C++ *_casts<> work
  156. int foo(float *t) {return *reinterpret_cast<int *>(t);}
  157. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  158. ### whether C++ allows declaration of varsize array
  159. #include <stdio.h>
  160. void foo()
  161. {
  162. int size=10;
  163. char arrsize;
  164. }
  165.  
  166. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  167. ### whether namespaces work
  168. namespace foo {
  169. int x;
  170. }
  171. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  172. ### whether typeinfo/typeid works
  173. #include <typeinfo>
  174. const char *foo(void) {
  175. int x;
  176. return typeid(x).name();
  177. }
  178. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  179. ### whether std::iterator_traits is defined
  180. #include <iterator>
  181.  
  182. template <typename T> // T models Input Iterator
  183. typename std::iterator_traits<T>::value_type accumulate(T first, T last)
  184. {
  185. typename std::iterator_traits<T>::value_type result = 0;
  186. while(first != last)
  187. result += *first++;
  188. return result;
  189. }
  190. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  191. ### whether std::distance is defined
  192. #include <vector>
  193. #include <iterator>
  194.  
  195. int foo()
  196. {
  197. std::vector<int> tree;
  198. return std::distance(tree.begin(), tree.end());
  199. }
  200. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  201. ### whether std::inserter is defined
  202. #include <list>
  203. #include <iterator>
  204.  
  205. void foo()
  206. {
  207. using namespace std;
  208. list<int> L;
  209. inserter ( L, L.end ( ) ) = 500;
  210. }
  211. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  212. ### whether operator delete can be overloaded in same class
  213. class foo {
  214. public:
  215. void operator delete(void*p){};
  216. void operator delete(void*p,int*){};
  217. };
  218. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  219. ### whether offsetof is defined
  220. #include <stddef.h>
  221.  
  222. struct FooType {
  223. int f1;
  224. int f2;
  225. double f3;
  226. };
  227.  
  228. void foo()
  229. {
  230. int off = offsetof(FooType, f2);
  231. }
  232. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  233. ### whether GCC x86 assembly works
  234. double foo(void)
  235. {
  236. unsigned long long int v;
  237. int *lo=0+(int *)&v;
  238. int *hi=1+(int *)&v;
  239. __asm__ __volatile__(
  240. "rdtsc; movl %%edx,%0; movl %%eax,%1"
  241. : /* output */ "=m" (*hi), "=m" (*lo)
  242. : /* input */
  243. : /* trashes */ "%edx", "%eax"
  244. );
  245. return v;
  246. }
  247. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  248. ### whether GCC x86 assembly for atomic increment works
  249. int foo(void)
  250. {
  251. int x;
  252. asm("lock incl %0" :: "m" (x));
  253. asm("lock decl %0" :: "m" (x));
  254. return x;
  255. }
  256. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  257. ### whether GCC IA64 assembly works
  258. double foo(void)
  259. {
  260. unsigned long long int x;
  261. __asm__ __volatile__("mov %0=ar.itc" : "=r"(x) :: "memory");
  262. return x;
  263. }
  264. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  265. test.cpp: Assembler messages:
  266. test.cpp:4: Error: invalid character '=' in operand 1
  267. ### whether PPC assembly works
  268. double foo(void)
  269. {
  270. unsigned long long int x;
  271. asm volatile("eieio" ::: "memory");
  272. return x;
  273. }
  274. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  275. test.cpp: Assembler messages:
  276. test.cpp:4: Error: no such instruction: `eieio'
  277. ### whether __thread (Thread Local Storage) is supported
  278. __thread unsigned long long int x;
  279. static __thread int y;
  280. void foo(void)
  281. {
  282. x = 1;
  283. y = 1;
  284. }
  285. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  286. ### whether switching TLS register (64-bit) is supported
  287. #include <elf.h>
  288. #include <stdlib.h>
  289. #include <malloc.h>
  290.  
  291. void switchTLS() {
  292. Elf64_Addr m1, m2;
  293. asm volatile ("movq %%fs:0x0, %0\n\t"
  294. "movq %1, %%fs:0x0\n\t"
  295. : "=r"(m1)
  296. : "r"(m2));
  297. }
  298. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  299. ### whether build on MPI
  300. #include "mpi.h"
  301. int main(int argc, char **argv)
  302. {
  303. MPI_Init(&argc, &argv);
  304. }
  305. /opt/platform_mpi/bin/mpiCC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
  306. In file included from /opt/platform_mpi/include/mpi.h:1633,
  307. from test.cpp:1:
  308. /opt/platform_mpi/include/mpiCC.h:32:2: warning: #warning The entire set of C++ language bindings have been deprecated in mpi 2.2 To disable this warning use -Wno-deprecated.
  309. namd-2.9 >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement