Update component-level selection comments to match latest revisions
cmr=v1.7.4:reviewer=rhc This commit was SVN r30087.
Этот коммит содержится в:
родитель
d1c63f878e
Коммит
a8a91b374e
@ -70,9 +70,10 @@ static int pubsub_pmi_component_close(void)
|
||||
|
||||
static int pubsub_pmi_component_query(mca_base_module_t **module, int *priority)
|
||||
{
|
||||
/* for now, only use PMI when direct launched */
|
||||
if (NULL != ompi_process_info.my_hnp_uri &&
|
||||
mca_common_pmi_init ()) {
|
||||
/* if we are indirectly launched via orted, the
|
||||
* selection will have been turned "off" for us
|
||||
*/
|
||||
if (mca_common_pmi_init ()) {
|
||||
*priority = my_priority;
|
||||
*module = (mca_base_module_t *)&ompi_pubsub_pmi_module;
|
||||
return OMPI_SUCCESS;
|
||||
|
@ -74,7 +74,8 @@ static int db_pmi_component_query(opal_db_base_module_t **module,
|
||||
{
|
||||
if (!restrict_local) {
|
||||
/* only use PMI if available - the ESS pmi module
|
||||
* will force our selection if we are direct-launched
|
||||
* will force our selection if we are direct-launched,
|
||||
* and the orted will turn us "off" if indirectly launched
|
||||
*/
|
||||
if (mca_common_pmi_init()) {
|
||||
*store_priority = my_store_priority;
|
||||
|
@ -78,9 +78,10 @@ int orte_grpcomm_pmi_close(void)
|
||||
|
||||
int orte_grpcomm_pmi_component_query(mca_base_module_t **module, int *priority)
|
||||
{
|
||||
/* only use PMI when direct launched */
|
||||
if (NULL == orte_process_info.my_hnp_uri &&
|
||||
ORTE_PROC_IS_APP &&
|
||||
/* if we are indirectly launched via orted, the
|
||||
* selection will have been turned "off" for us
|
||||
*/
|
||||
if (ORTE_PROC_IS_APP &&
|
||||
mca_common_pmi_init ()) {
|
||||
/* if PMI is available, make it available for use by MPI procs */
|
||||
*priority = my_priority;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user