increase max data segments size.
This commit was SVN r17677.
Этот коммит содержится в:
родитель
08abafdaa1
Коммит
67ad9b6d6b
@ -154,6 +154,19 @@ int mca_coll_sm2_allreduce_intra_fanin_fanout(void *sbuf, void *rbuf, int count,
|
|||||||
/* apply collective operation */
|
/* apply collective operation */
|
||||||
ompi_op_reduce(op,(void *)child_data_pointer,
|
ompi_op_reduce(op,(void *)child_data_pointer,
|
||||||
(void *)my_data_pointer, count_this_stripe,dtype);
|
(void *)my_data_pointer, count_this_stripe,dtype);
|
||||||
|
/* test
|
||||||
|
{
|
||||||
|
int ii,n_ints;
|
||||||
|
int *my_int=(int *)my_data_pointer;
|
||||||
|
int *child_int=(int *)child_data_pointer;
|
||||||
|
n_ints=count_this_stripe/4;
|
||||||
|
for(ii=0 ; ii < n_ints ; ii++ ) {
|
||||||
|
my_int[ii]+=child_data_pointer[ii];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end test */
|
||||||
|
|
||||||
|
/* end test */
|
||||||
} /* end child loop */
|
} /* end child loop */
|
||||||
|
|
||||||
/* set memory barriet to make sure data is in main memory before
|
/* set memory barriet to make sure data is in main memory before
|
||||||
|
@ -142,7 +142,7 @@ static int sm2_open(void)
|
|||||||
|
|
||||||
/* Max data Segment size (bytes) - per proc */
|
/* Max data Segment size (bytes) - per proc */
|
||||||
cs->sm2_max_data_seg_size=
|
cs->sm2_max_data_seg_size=
|
||||||
mca_coll_sm2_param_register_int("sm2_max_data_seg_size",8*getpagesize());
|
mca_coll_sm2_param_register_int("sm2_max_data_seg_size",20*getpagesize());
|
||||||
|
|
||||||
/* initialize control region allocted */
|
/* initialize control region allocted */
|
||||||
cs->sm2_data_size_allocated=0;
|
cs->sm2_data_size_allocated=0;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user