default TCP to only be used if self/sm/gm/mvapi.... are not available
This commit was SVN r6832.
Этот коммит содержится в:
родитель
a63f6e6ce6
Коммит
5558c014b9
@ -133,8 +133,16 @@ typedef uint8_t mca_btl_base_tag_t;
|
||||
#define MCA_BTL_TAG_MAX 255 /* 1 + highest allowed tag num */
|
||||
|
||||
/* prefered protocol */
|
||||
#define MCA_BTL_FLAGS_SEND 1
|
||||
#define MCA_BTL_FLAGS_RDMA 2
|
||||
#define MCA_BTL_FLAGS_SEND 0x1
|
||||
#define MCA_BTL_FLAGS_RDMA 0x2
|
||||
|
||||
/* btl can send directly from user buffer w/out registration */
|
||||
#define MCA_BTL_FLAGS_SEND_INPLACE 0x10000000
|
||||
|
||||
/* Default exclusivity levels */
|
||||
#define MCA_BTL_EXCLUSIVITY_HIGH 64*1024 /* internal loopback */
|
||||
#define MCA_BTL_EXCLUSIVITY_DEFAULT 1024 /* GM/IB/etc. */
|
||||
#define MCA_BTL_EXCLUSIVITY_LOW 0 /* TCP used as a last resort */
|
||||
|
||||
|
||||
/**
|
||||
|
@ -138,7 +138,7 @@ int mca_btl_gm_component_open(void)
|
||||
|
||||
/* register gm module parameters */
|
||||
mca_btl_gm_module.super.btl_exclusivity =
|
||||
mca_btl_gm_param_register_int ("exclusivity", 0);
|
||||
mca_btl_gm_param_register_int ("exclusivity", MCA_BTL_EXCLUSIVITY_DEFAULT);
|
||||
mca_btl_gm_module.super.btl_eager_limit =
|
||||
mca_btl_gm_param_register_int ("eager_limit", 32*1024);
|
||||
mca_btl_gm_module.super.btl_min_send_size =
|
||||
|
@ -180,7 +180,7 @@ int mca_btl_mvapi_component_open(void)
|
||||
|
||||
|
||||
mca_btl_mvapi_module.super.btl_exclusivity =
|
||||
mca_btl_mvapi_param_register_int ("exclusivity", 0);
|
||||
mca_btl_mvapi_param_register_int ("exclusivity", MCA_BTL_EXCLUSIVITY_DEFAULT);
|
||||
mca_btl_mvapi_module.super.btl_eager_limit =
|
||||
mca_btl_mvapi_param_register_int ("eager_limit", (64*1024))
|
||||
- sizeof(mca_btl_mvapi_header_t);
|
||||
|
@ -184,7 +184,7 @@ int mca_btl_openib_component_open(void)
|
||||
|
||||
|
||||
mca_btl_openib_module.super.btl_exclusivity =
|
||||
mca_btl_openib_param_register_int ("exclusivity", 0);
|
||||
mca_btl_openib_param_register_int ("exclusivity", MCA_BTL_EXCLUSIVITY_DEFAULT);
|
||||
mca_btl_openib_module.super.btl_eager_limit =
|
||||
mca_btl_openib_param_register_int ("eager_limit", (64*1024))
|
||||
- sizeof(mca_btl_openib_header_t);
|
||||
|
@ -263,7 +263,7 @@ mca_btl_base_module_t** mca_btl_sm_component_init(
|
||||
mca_btl_sm[i].super.btl_max_send_size=mca_btl_sm_component.max_frag_size;
|
||||
mca_btl_sm[i].super.btl_min_rdma_size=mca_btl_sm_component.max_frag_size;
|
||||
mca_btl_sm[i].super.btl_max_rdma_size=mca_btl_sm_component.max_frag_size;
|
||||
mca_btl_sm[i].super.btl_exclusivity=100; /* always use this ptl */
|
||||
mca_btl_sm[i].super.btl_exclusivity=MCA_BTL_EXCLUSIVITY_HIGH-1; /* always use this ptl */
|
||||
mca_btl_sm[i].super.btl_latency=100; /* lowest latency */
|
||||
mca_btl_sm[i].super.btl_bandwidth=900; /* not really used now since exclusivity is set to 100 */
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ int mca_btl_tcp_component_open(void)
|
||||
mca_btl_tcp_component.tcp_rcvbuf =
|
||||
mca_btl_tcp_param_register_int ("rcvbuf", 128*1024);
|
||||
mca_btl_tcp_module.super.btl_exclusivity =
|
||||
mca_btl_tcp_param_register_int ("exclusivity", 0);
|
||||
mca_btl_tcp_param_register_int ("exclusivity", MCA_BTL_EXCLUSIVITY_LOW);
|
||||
mca_btl_tcp_module.super.btl_eager_limit =
|
||||
mca_btl_tcp_param_register_int ("eager_limit", 64*1024) - sizeof(mca_btl_base_header_t);
|
||||
mca_btl_tcp_module.super.btl_min_send_size =
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user