GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dc_compile_parameters.hpp
1 /*
2  * Copyright (c) 2009 Carnegie Mellon University.
3  * All rights reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing,
12  * software distributed under the License is distributed on an "AS
13  * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14  * express or implied. See the License for the specific language
15  * governing permissions and limitations under the License.
16  *
17  * For more about this software visit:
18  *
19  * http://www.graphlab.ml.cmu.edu
20  *
21  */
22 
23 
24 #ifndef GRAPHLAB_DC_COMPILE_PARAMETERS_HPP
25 #define GRAPHLAB_DC_COMPILE_PARAMETERS_HPP
26 /**
27  \ingroup rpc
28  \def RPC_DEFAULT_NUMHANDLERTHREADS
29  \brief default number of handler threads to spawn.
30  */
31 #define RPC_DEFAULT_NUMHANDLERTHREADS (size_t)(-1)
32 
33 /**
34  \ingroup rpc
35  \def RPC_DEFAULT_COMMTYPE
36  \brief default communication method
37  */
38 #define RPC_DEFAULT_COMMTYPE TCP_COMM
39 
40 /**
41  \ingroup rpc
42  \def RPC_MAX_N_PROCS
43  \brief Maximum number of processes supported
44  */
45 #define RPC_MAX_N_PROCS 128
46 
47 /**
48  * \ingroup rpc
49  * \def BUFFER_RELINQUISH_LIMIT
50  * Below this limit, a copy of the buffer is made for the sender.
51  * Above this limit, the entire buffer is given to the sender.
52  */
53 #define BUFFER_RELINQUISH_LIMIT 131072
54 
55 #endif