1
1

* Move the sys_info initialization into ompi_init(), since it should really

be there for any OMPI process.

This commit was SVN r2000.
Этот коммит содержится в:
Brian Barrett 2004-08-10 04:59:34 +00:00
родитель ff62e4db26
Коммит b77aa552e8
4 изменённых файлов: 13 добавлений и 16 удалений

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

@ -66,11 +66,6 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
return ret; return ret;
} }
/* Get the local system information and populate the
ompi_system_info structure */
ompi_sys_info();
/* Become a OMPI process */ /* Become a OMPI process */
if (OMPI_SUCCESS != (ret = ompi_init(argc, argv))) { if (OMPI_SUCCESS != (ret = ompi_init(argc, argv))) {

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

@ -10,6 +10,7 @@
#include "runtime/runtime.h" #include "runtime/runtime.h"
#include "util/output.h" #include "util/output.h"
#include "util/malloc.h" #include "util/malloc.h"
#include "util/sys_info.h"
#include "threads/mutex.h" #include "threads/mutex.h"
#include "event/event.h" #include "event/event.h"
@ -106,11 +107,10 @@ int ompi_init(int argc, char *argv[])
ompi_malloc_init(); ompi_malloc_init();
/* Other things that we'll probably need: /* Get the local system information and populate the
ompi_system_info structure */
- session directory setup ompi_sys_info();
- ...?
*/
/* All done */ /* All done */

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

@ -47,9 +47,6 @@ int main(int argc, char **argv)
tmp = universe_name = remote_host = remote_uid = NULL; tmp = universe_name = remote_host = remote_uid = NULL;
/* get info on type of system we are on */
ompi_sys_info();
/* setup to read common command line options that span all Open MPI programs */ /* setup to read common command line options that span all Open MPI programs */
ompi_common_cmd_line_init(argc, argv); ompi_common_cmd_line_init(argc, argv);

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

@ -53,13 +53,18 @@ typedef struct ompi_sys_info_t ompi_sys_info_t;
extern ompi_sys_info_t ompi_system_info; extern ompi_sys_info_t ompi_system_info;
/** /**
* Discover and record a wide range of information about the system upon which * \internal
* this code is executing. ompi_sys_info populates a global variable with information about the system *
* upon which the process is executing. * Discover and record a wide range of information about the system
* upon which this code is executing. ompi_sys_info populates a global
* variable with information about the system upon which the process
* is executing.
*
* Called from \c ompi_init.
* *
* @retval OMPI_SUCCESS If values are successfully determined. * @retval OMPI_SUCCESS If values are successfully determined.
* @retval OMPI_ERROR If the system does not provide the requested information. * @retval OMPI_ERROR If the system does not provide the requested information.
*/ */
int ompi_sys_info(void); int ompi_sys_info(void);