Enable MPI_SMP.
[charm.git] / src / arch / net-darwin-x86_64 / conv-mach.h
1 #ifndef _CONV_MACH_H
2 #define _CONV_MACH_H
3
4 // specify the version of the UNIX APIs that we want to use (for ucontext headers)
5 #define _XOPEN_SOURCE                                       
6
7 #define CMK_64BIT    1
8
9 #define CMK_NETPOLL                                        1
10
11 #define CMK_ASYNC_NOT_NEEDED                               0
12 #define CMK_ASYNC_USE_FIOASYNC_AND_FIOSETOWN               0
13 #define CMK_ASYNC_USE_FIOASYNC_AND_SIOCSPGRP               0
14 #define CMK_ASYNC_USE_FIOSSAIOSTAT_AND_FIOSSAIOOWN         0
15 #define CMK_ASYNC_USE_F_SETFL_AND_F_SETOWN                 1
16
17 #define CMK_GETPAGESIZE_AVAILABLE                          0
18
19 #define CMK_MALLOC_USE_GNU_MALLOC                          0
20 #define CMK_MALLOC_USE_OS_BUILTIN                          1
21 #define CMK_MALLOC_USE_GNUOLD_MALLOC                       0
22
23 #define CMK_MEMORY_BUILD_GNU_HOOKS                         0
24 #define CMK_MEMORY_PAGESIZE                                4096
25 #define CMK_MEMORY_PROTECTABLE                             0
26
27 #define CMK_NODE_QUEUE_AVAILABLE                           0
28
29 #define CMK_RSH_IS_A_COMMAND                               1
30 #define CMK_RSH_NOT_NEEDED                                 0
31 #define CMK_RSH_USE_REMSH                                  0
32
33 #define CMK_SHARED_VARS_UNAVAILABLE                        1
34 #define CMK_SHARED_VARS_UNIPROCESSOR                       0
35 #define CMK_SHARED_VARS_POSIX_THREADS_SMP                  0
36
37 #define CMK_THREADS_USE_PTHREADS                           0
38 #define CMK_THREADS_ARE_WIN32_FIBERS                       0
39 #define CMK_THREADS_USE_CONTEXT                            0
40 #define CMK_THREADS_USE_JCONTEXT                           1
41
42 #define CMK_SIGNAL_NOT_NEEDED                              0
43 #define CMK_SIGNAL_USE_SIGACTION                           0
44 #define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              1
45
46 #define CMK_THREADS_REQUIRE_NO_CPV                         0
47 #define CMK_THREADS_COPY_STACK                             0
48
49 #define CMK_TIMER_USE_GETRUSAGE                            1
50 #define CMK_TIMER_USE_SPECIAL                              0
51 #define CMK_TIMER_USE_TIMES                                0
52
53 #define CMK_TYPEDEF_INT2 short
54 #define CMK_TYPEDEF_INT4 int
55 #define CMK_TYPEDEF_INT8 long long
56 #define CMK_TYPEDEF_UINT2 unsigned short
57 #define CMK_TYPEDEF_UINT4 unsigned int
58 #define CMK_TYPEDEF_UINT8 unsigned long long
59 #define CMK_TYPEDEF_FLOAT4 float
60 #define CMK_TYPEDEF_FLOAT8 double
61
62 #define CMK_DEBUG_MODE                                     0 
63 #define CMK_WEB_MODE                                       1
64
65 #define CMK_LBDB_ON                                        1
66
67 #define CMK_STACKSIZE_DEFAULT                              262144
68 /*
69 #define CMK_NO_ISO_MALLOC                                  1
70 */
71
72
73 /* Mac-specific optimizations */
74 #undef CMK_USE_POLL
75 #define CMK_USE_POLL                                       0
76 #define CMK_USE_KQUEUE                                     1
77 #define PXSHM_OSSPINLOCK                                   1
78 #define PXSHM_LOCK                                         0
79 #define PXSHM_FENCE                                        0
80
81
82 #endif
83