A few more header protection.
Replace "ERROR" with "error". Remove redefinitions of mca_sbgp_base_module_t. This commit was SVN r27109.
Этот коммит содержится в:
родитель
95b9552546
Коммит
cc20409f60
@ -139,7 +139,7 @@ static int ompi_sbgp_set_components_to_use(opal_list_t *sbgp_components_avail,
|
|||||||
subgoups_requested[i]);
|
subgoups_requested[i]);
|
||||||
RELEASE_LIST_OF_STRINGS(sbgp_string);
|
RELEASE_LIST_OF_STRINGS(sbgp_string);
|
||||||
rc = OMPI_ERROR;
|
rc = OMPI_ERROR;
|
||||||
goto ERROR;
|
goto error;
|
||||||
}
|
}
|
||||||
/* loop over discovered components */
|
/* loop over discovered components */
|
||||||
for (item = opal_list_get_first(sbgp_components_avail) ;
|
for (item = opal_list_get_first(sbgp_components_avail) ;
|
||||||
@ -171,7 +171,7 @@ static int ompi_sbgp_set_components_to_use(opal_list_t *sbgp_components_avail,
|
|||||||
if (NULL == clj) {
|
if (NULL == clj) {
|
||||||
rc = OPAL_ERR_OUT_OF_RESOURCE;
|
rc = OPAL_ERR_OUT_OF_RESOURCE;
|
||||||
RELEASE_LIST_OF_STRINGS(sbgp_string);
|
RELEASE_LIST_OF_STRINGS(sbgp_string);
|
||||||
goto ERROR;
|
goto error;
|
||||||
}
|
}
|
||||||
/* fprintf(stderr,"sbgp selecting %s %s\n", sbgp_component, component_name); */
|
/* fprintf(stderr,"sbgp selecting %s %s\n", sbgp_component, component_name); */
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ static int ompi_sbgp_set_components_to_use(opal_list_t *sbgp_components_avail,
|
|||||||
** release resources
|
** release resources
|
||||||
** */
|
** */
|
||||||
/* subgoups_requested */
|
/* subgoups_requested */
|
||||||
ERROR:
|
error:
|
||||||
/* RELEASE_LIST_OF_STRINGS(subgoups_requested); */
|
/* RELEASE_LIST_OF_STRINGS(subgoups_requested); */
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
@ -15,7 +15,9 @@
|
|||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef HAVE_SYS_MMAN_H
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
@ -53,7 +55,6 @@ const char *mca_sbgp_basesmsocket_component_version_string =
|
|||||||
|
|
||||||
static int basesmsocket_open(void);
|
static int basesmsocket_open(void);
|
||||||
static int basesmsocket_close(void);
|
static int basesmsocket_close(void);
|
||||||
struct mca_sbgp_base_module_t;
|
|
||||||
static mca_sbgp_base_module_t *mca_sbgp_basesmsocket_select_procs(struct ompi_proc_t ** procs,
|
static mca_sbgp_base_module_t *mca_sbgp_basesmsocket_select_procs(struct ompi_proc_t ** procs,
|
||||||
int n_procs_in,
|
int n_procs_in,
|
||||||
struct ompi_communicator_t *comm,
|
struct ompi_communicator_t *comm,
|
||||||
|
@ -14,9 +14,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
@ -14,9 +14,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "ompi/constants.h"
|
#include "ompi/constants.h"
|
||||||
@ -38,7 +42,6 @@ const char *mca_sbgp_basesmuma_component_version_string =
|
|||||||
|
|
||||||
static int basesmuma_open(void);
|
static int basesmuma_open(void);
|
||||||
static int basesmuma_close(void);
|
static int basesmuma_close(void);
|
||||||
struct mca_sbgp_base_module_t;
|
|
||||||
static mca_sbgp_base_module_t *mca_sbgp_basesmuma_select_procs(struct ompi_proc_t ** procs,
|
static mca_sbgp_base_module_t *mca_sbgp_basesmuma_select_procs(struct ompi_proc_t ** procs,
|
||||||
int n_procs_in, struct ompi_communicator_t *comm, char *key, void *output_data);
|
int n_procs_in, struct ompi_communicator_t *comm, char *key, void *output_data);
|
||||||
|
|
||||||
|
@ -14,9 +14,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
@ -14,9 +14,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "ompi/constants.h"
|
#include "ompi/constants.h"
|
||||||
@ -39,7 +43,6 @@ const char *mca_sbgp_p2p_component_version_string =
|
|||||||
|
|
||||||
static int p2p_open(void);
|
static int p2p_open(void);
|
||||||
static int p2p_close(void);
|
static int p2p_close(void);
|
||||||
struct mca_sbgp_base_module_t;
|
|
||||||
static mca_sbgp_base_module_t * mca_sbgp_p2p_select_procs(struct ompi_proc_t ** procs,
|
static mca_sbgp_base_module_t * mca_sbgp_p2p_select_procs(struct ompi_proc_t ** procs,
|
||||||
int n_procs_in, struct ompi_communicator_t *comm, char *key, void *output_data);
|
int n_procs_in, struct ompi_communicator_t *comm, char *key, void *output_data);
|
||||||
|
|
||||||
|
@ -14,9 +14,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user