1
1

Don't require a progress function from the PML. If there is one then the

PML base will take care of the registration with the event library.
Otherwise, (and this apply for the CM case) the MTL are in charge of
registering their own progress function.

This commit was SVN r16415.
Этот коммит содержится в:
George Bosilca 2007-10-09 23:28:53 +00:00
родитель aa8391f888
Коммит e3105a85be
5 изменённых файлов: 7 добавлений и 24 удалений

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

@ -40,7 +40,9 @@ int mca_pml_base_finalize(void) {
int mca_pml_base_close(void) int mca_pml_base_close(void)
{ {
/* turn off the progress code for the pml */ /* turn off the progress code for the pml */
if( NULL != mca_pml.pml_progress ) {
opal_progress_unregister(mca_pml.pml_progress); opal_progress_unregister(mca_pml.pml_progress);
}
/* Blatently ignore the return code (what would we do to recover, /* Blatently ignore the return code (what would we do to recover,
anyway? This module is going away, so errors don't matter anyway? This module is going away, so errors don't matter

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

@ -267,8 +267,9 @@ int mca_pml_base_select(bool enable_progress_threads,
#endif #endif
/* register the winner's callback */ /* register the winner's callback */
if( NULL != mca_pml.pml_progress ) {
opal_progress_register(mca_pml.pml_progress); opal_progress_register(mca_pml.pml_progress);
}
/* register winner in the modex */ /* register winner in the modex */
mca_pml_base_pml_selected(best_component->pmlm_version.mca_component_name); mca_pml_base_pml_selected(best_component->pmlm_version.mca_component_name);

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

@ -37,7 +37,6 @@ local_sources = \
pml_cm_send.c \ pml_cm_send.c \
pml_cm_sendreq.h \ pml_cm_sendreq.h \
pml_cm_sendreq.c \ pml_cm_sendreq.c \
pml_cm_progress.c \
pml_cm_start.c pml_cm_start.c
mcacomponentdir = $(pkglibdir) mcacomponentdir = $(pkglibdir)

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

@ -31,7 +31,7 @@ ompi_pml_cm_t ompi_pml_cm = {
mca_pml_cm_add_procs, mca_pml_cm_add_procs,
mca_pml_cm_del_procs, mca_pml_cm_del_procs,
mca_pml_cm_enable, mca_pml_cm_enable,
mca_pml_cm_progress, NULL, /* No progress function. The MTL register their own */
mca_pml_cm_add_comm, mca_pml_cm_add_comm,
mca_pml_cm_del_comm, mca_pml_cm_del_comm,
mca_pml_cm_irecv_init, mca_pml_cm_irecv_init,

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

@ -1,19 +0,0 @@
/*
* Copyright (c) 2004-2006 The Regents of the University of California.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ompi_config.h"
#include "pml_cm.h"
int
mca_pml_cm_progress(void)
{
return 0;
}