1
1

Remove all references to the MRU list. Add back the repost list checks. For some reasons

it decrease the latency by around 0.3 micro-seconds ...

This commit was SVN r10571.
Этот коммит содержится в:
George Bosilca 2006-06-29 19:25:44 +00:00
родитель 54018b114b
Коммит 7d59a6885b
3 изменённых файлов: 12 добавлений и 3 удалений

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

@ -565,6 +565,12 @@ static int mca_btl_gm_send_nl(
mca_btl_gm_send_callback,
frag );
}
if(opal_list_get_size(&gm_btl->gm_repost)) {
mca_btl_gm_frag_t* frag;
while(NULL != (frag = (mca_btl_gm_frag_t*)opal_list_remove_first(&gm_btl->gm_repost))) {
gm_provide_receive_buffer(gm_btl->port, frag->hdr, frag->size, frag->priority);
}
}
return OMPI_SUCCESS;
}
@ -622,6 +628,12 @@ int mca_btl_gm_send(
frag );
}
if(opal_list_get_size(&gm_btl->gm_repost)) {
mca_btl_gm_frag_t* frag;
while(NULL != (frag = (mca_btl_gm_frag_t*)opal_list_remove_first(&gm_btl->gm_repost))) {
gm_provide_receive_buffer(gm_btl->port, frag->hdr, frag->size, frag->priority);
}
}
OPAL_THREAD_UNLOCK(&mca_btl_gm_component.gm_lock);
return OMPI_SUCCESS;
}

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

@ -58,7 +58,6 @@ struct mca_btl_gm_component_t {
struct mca_btl_gm_module_t **gm_btls; /**< array of available BTL modules */
size_t gm_max_ports; /**< maximum number of ports per board */
size_t gm_max_boards; /**< maximum number of boards */
size_t gm_num_mru;
size_t gm_eager_frag_size;
size_t gm_max_frag_size;
char* gm_port_name;

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

@ -142,8 +142,6 @@ int mca_btl_gm_component_open(void)
mca_btl_gm_param_register_int("num_high_priority", 8);
mca_btl_gm_component.gm_num_repost =
mca_btl_gm_param_register_int("num_repost", 4);
mca_btl_gm_component.gm_num_mru =
mca_btl_gm_param_register_int("num_mru", 64);
mca_btl_gm_component.gm_port_name=
mca_btl_gm_param_register_string("port_name", "OMPI");