1
1

fix for stupid casting.. addresses issue on PPC64 where sizes get set

improperly and badness ensues..

This commit was SVN r10574.
Этот коммит содержится в:
Galen Shipman 2006-06-29 21:58:50 +00:00
родитель a59afbc8af
Коммит 7e079d20ab
3 изменённых файлов: 30 добавлений и 14 удалений

Просмотреть файл

@ -223,15 +223,20 @@ int mca_btl_mvapi_component_open(void)
mca_btl_mvapi_param_register_int ("exclusivity", "BTL exclusivity",
MCA_BTL_EXCLUSIVITY_DEFAULT, (int*) &mca_btl_mvapi_module.super.btl_exclusivity);
mca_btl_mvapi_param_register_int ("eager_limit", "eager send limit",
(12*1024),(int*) &mca_btl_mvapi_module.super.btl_eager_limit);
(12*1024), &tmp_int);
mca_btl_mvapi_module.super.btl_eager_limit = tmp_int;
mca_btl_mvapi_param_register_int ("min_send_size", "minimum send size",
(32*1024),(int*) &mca_btl_mvapi_module.super.btl_min_send_size);
(32*1024), &tmp_int);
mca_btl_mvapi_module.super.btl_min_send_size = tmp_int;
mca_btl_mvapi_param_register_int ("max_send_size", "maximum send size",
(64*1024), (int*) &mca_btl_mvapi_module.super.btl_max_send_size);
(64*1024), &tmp_int);
mca_btl_mvapi_module.super.btl_max_send_size = tmp_int;
mca_btl_mvapi_param_register_int("min_rdma_size", "minimum rdma size",
1024*1024, (int*) &mca_btl_mvapi_module.super.btl_min_rdma_size);
1024*1024, &tmp_int);
mca_btl_mvapi_module.super.btl_min_rdma_size = tmp_int;
mca_btl_mvapi_param_register_int("max_rdma_size", "maximium rdma size",
1024*1024, (int*) &mca_btl_mvapi_module.super.btl_max_rdma_size);
1024*1024, &tmp_int);
mca_btl_mvapi_module.super.btl_max_rdma_size = tmp_int;
mca_btl_mvapi_param_register_int("flags", "BTL flags, SEND=1, PUT=2, GET=4",
MCA_BTL_FLAGS_PUT | MCA_BTL_FLAGS_GET, (int*) &mca_btl_mvapi_module.super.btl_flags);
mca_btl_mvapi_param_register_int("bandwidth", "Approximate maximum bandwidth of interconnect",

Просмотреть файл

@ -214,15 +214,21 @@ int mca_btl_openib_component_open(void)
mca_btl_openib_param_register_int("max_lmc", "Maximum LIDs to use for each port (0 - all available)",
0, (int*)&mca_btl_openib_component.max_lmc);
mca_btl_openib_param_register_int ("eager_limit", "eager send limit",
(12*1024),(int*) &mca_btl_openib_module.super.btl_eager_limit);
(12*1024), &val);
mca_btl_openib_module.super.btl_eager_limit = val;
mca_btl_openib_param_register_int ("min_send_size", "minimum send size",
(32*1024),(int*) &mca_btl_openib_module.super.btl_min_send_size);
(32*1024), &val);
mca_btl_openib_module.super.btl_min_send_size = val;
mca_btl_openib_param_register_int ("max_send_size", "maximum send size",
(64*1024), (int*) &mca_btl_openib_module.super.btl_max_send_size);
(64*1024), &val);
mca_btl_openib_module.super.btl_max_send_size = val;
mca_btl_openib_param_register_int("min_rdma_size", "minimum rdma size",
1024*1024, (int*) &mca_btl_openib_module.super.btl_min_rdma_size);
1024*1024, &val);
mca_btl_openib_module.super.btl_min_rdma_size = val;
mca_btl_openib_param_register_int("max_rdma_size", "maximium rdma size",
1024*1024, (int*) &mca_btl_openib_module.super.btl_max_rdma_size);
1024*1024, &val);
mca_btl_openib_module.super.btl_max_rdma_size = val;
mca_btl_openib_param_register_int("flags", "BTL flags, SEND=1, PUT=2, GET=4",
MCA_BTL_FLAGS_PUT | MCA_BTL_FLAGS_NEED_ACK | MCA_BTL_FLAGS_NEED_CSUM,
(int*) &mca_btl_openib_module.super.btl_flags);

Просмотреть файл

@ -131,10 +131,12 @@ static inline void mca_btl_ud_param_register_int(
int mca_btl_ud_component_open(void)
{
int val;
/* initialize state */
mca_btl_ud_component.ib_num_btls=0;
mca_btl_ud_component.ud_btls=NULL;
/* initialize objects */
OBJ_CONSTRUCT(&mca_btl_ud_component.ib_procs, opal_list_t);
@ -182,11 +184,14 @@ int mca_btl_ud_component_open(void)
/* TODO - this assumes a 2k UD MTU - should query/do something more intelligent */
mca_btl_ud_param_register_int ("eager_limit", "eager send limit",
2047, (int*)&mca_btl_ud_module.super.btl_eager_limit);
2047, &val);
mca_btl_ud_module.super.btl_eager_limit = val;
mca_btl_ud_param_register_int ("min_send_size", "minimum send size",
2048, (int*)&mca_btl_ud_module.super.btl_min_send_size);
2048, &val);
mca_btl_ud_module.super.btl_min_send_size = val;
mca_btl_ud_param_register_int ("max_send_size", "maximum send size",
2048, (int*) &mca_btl_ud_module.super.btl_max_send_size);
2048, &val);
mca_btl_ud_module.super.btl_max_send_size = val;
mca_btl_ud_param_register_int("bandwidth", "Approximate maximum bandwidth of interconnect",
800, (int*) &mca_btl_ud_module.super.btl_bandwidth);