Remove deprecated net layer
[charm.git] / src / arch / ofi / conv-common.h
blob47f2d0a85130f076d24113ce1eabe6d7ce8b2b7d
1 #define CMK_USE_LRTS 1
3 /* CMK_HAS_PARTITION requires the 'root' field to be present in CMK_MSG_HEADER_UNIQUE */
4 #define CMK_HAS_PARTITION 1
6 /* if set to 1 it uses the default scheduler (Csd) defined in convcore.c,
7 otherwise machine.c has to provide its own scheduler. Should be 1 in almost
8 every machine. */
9 #define CMK_CMIDELIVERS_USE_COMMON_CODE 1
11 /* specifies if the functions CmiPrintf, CmiError and CmiScanf are implemented
12 in machine.c (1), or if the standard definitions in convcore.c should be used
13 (0). */
14 #define CMK_CMIPRINTF_IS_A_BUILTIN 0
16 /* define the converse headers. For most of the purposes, only the UNIQUE header
17 needs to be modified, the others will follow. BLUEGENE may need to be
18 adapted.
20 In particular, the fields "hdl", "xhdl" and "info" must be always present in
21 the extended header, since they are directly accessed in converse.h */
22 /* - root is needed by CMK_HAS_PARTITION
23 * - startid, redID
24 * - rank is needed by broadcast
26 #define CMK_MSG_HEADER_UNIQUE CmiUInt4 size; CmiUInt2 rank,hdl,xhdl,info,stratid,redID; CmiInt4 root;
28 #define CMK_MSG_HEADER_BASIC CMK_MSG_HEADER_EXT
29 #define CMK_MSG_HEADER_EXT { CMK_MSG_HEADER_UNIQUE }
30 #define CMK_MSG_HEADER_BIGSIM_ {CMK_MSG_HEADER_UNIQUE CMK_BIGSIM_FIELDS}
32 /* defines different parameters of groups of processors. (next 4 definitions)
33 used in converse.h (the first) and convcore.c (the others). a value of 1
34 means that convcore.c defines the methods, otherwise it is up to machine.c to
35 define them */
37 /* basic structure of a CmiGroup (defined in converse.h) */
38 #define CMK_MULTICAST_GROUP_TYPE struct { unsigned pe, id; }
39 /* definitions of establishment and lookup of groups */
40 #define CMK_MULTICAST_DEF_USE_COMMON_CODE 1
41 /* definitions of List sending functions */
42 #define CMK_MULTICAST_LIST_USE_COMMON_CODE 1
43 /* definitions of Multicast sending functions */
44 #define CMK_MULTICAST_GROUP_USE_COMMON_CODE 1
46 /* define the entity of the spanning tree used (it is 4 in all configurations)
47 definese also if the code in converse.h will be used (1) or not and
48 implemented in machine.c (0). At the momement all configurations use the
49 common code. */
50 #define CMK_SPANTREE_MAXSPAN 4
51 #define CMK_SPANTREE_USE_COMMON_CODE 1
53 /* Specifies if the routines which send multiple messages (vectors of messages)
54 to a processors are implemented in convcore.c (1) or in machine.c (1). */
55 #define CMK_VECTOR_SEND_USES_COMMON_CODE 1
57 /* Enable the CCS protocol if set to 1. */
58 #define CMK_CCS_AVAILABLE 1
60 /* Defines if there is a "charmrun" program running on the system, which
61 interacts with possible connecting clients (0), or if there is no such
62 program, and processor 0 does the job (1). Currently only netlrts- and
63 verbs- versions have this set to 0, all the others have it to 1. */
64 #define NODE_0_IS_CONVHOST 1
66 /* Enables the persistent communication protocol if set to 1. */
67 #define CMK_PERSISTENT_COMM 0
69 /* Enables support for immediate messages if set to 1. */
70 #define CMK_IMMEDIATE_MSG 1
72 /* This is needed to be 1 if the machine layer is used in some architectures
73 where there is no coprocessor, and to pull messages out of the network there
74 is the need of the processor intervention (like in BlueGene/L). 0 otherwise.
76 #define CMK_MACHINE_PROGRESS_DEFINED 1
78 /* This is required to define LrtsLock/LrtsUnlock */
79 #define CMK_USE_COMMON_LOCK 1
81 #define CMK_ONESIDED_IMPL 1