6310361532
https://svn.open-mpi.org/trac/ompi/wiki/ProcessPlacement The wiki page is incomplete at the moment, but I hope to complete it over the next few days. I will provide updates on the devel list. As the wiki page states, the default and most commonly used options remain unchanged (except as noted below). New, esoteric and complex options have been added, but unless you are a true masochist, you are unlikely to use many of them beyond perhaps an initial curiosity-motivated experimentation. In a nutshell, this commit revamps the map/rank/bind procedure to take into account topology info on the compute nodes. I have, for the most part, preserved the default behaviors, with three notable exceptions: 1. I have at long last bowed my head in submission to the system admin's of managed clusters. For years, they have complained about our default of allowing users to oversubscribe nodes - i.e., to run more processes on a node than allocated slots. Accordingly, I have modified the default behavior: if you are running off of hostfile/dash-host allocated nodes, then the default is to allow oversubscription. If you are running off of RM-allocated nodes, then the default is to NOT allow oversubscription. Flags to override these behaviors are provided, so this only affects the default behavior. 2. both cpus/rank and stride have been removed. The latter was demanded by those who didn't understand the purpose behind it - and I agreed as the users who requested it are no longer using it. The former was removed temporarily pending implementation. 3. vm launch is now the sole method for starting OMPI. It was just too darned hard to maintain multiple launch procedures - maybe someday, provided someone can demonstrate a reason to do so. As Jeff stated, it is impossible to fully test a change of this size. I have tested it on Linux and Mac, covering all the default and simple options, singletons, and comm_spawn. That said, I'm sure others will find problems, so I'll be watching MTT results until this stabilizes. This commit was SVN r25476.
73 строки
1.8 KiB
C
73 строки
1.8 KiB
C
/*
|
|
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* Copyright (c) 2007-2011 Cisco Systems, Inc. All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef ORTERUN_ORTERUN_H
|
|
#define ORTERUN_ORTERUN_H
|
|
|
|
#include "orte_config.h"
|
|
#include "opal/threads/mutex.h"
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
/**
|
|
* Main body of orterun functionality
|
|
*/
|
|
int orterun(int argc, char *argv[]);
|
|
|
|
/**
|
|
* Global struct for catching orterun command line options.
|
|
*/
|
|
struct orterun_globals_t {
|
|
bool help;
|
|
bool version;
|
|
bool verbose;
|
|
char *report_pid;
|
|
char *report_uri;
|
|
bool exit;
|
|
bool debugger;
|
|
int num_procs;
|
|
char *env_val;
|
|
char *appfile;
|
|
char *wdir;
|
|
char *path;
|
|
bool preload_binary;
|
|
char *preload_files;
|
|
char *preload_files_dest_dir;
|
|
opal_mutex_t lock;
|
|
bool sleep;
|
|
char *ompi_server;
|
|
bool wait_for_server;
|
|
int server_wait_timeout;
|
|
char *stdin_target;
|
|
#if OPAL_ENABLE_FT_CR == 1
|
|
char *sstore_load;
|
|
#endif
|
|
bool disable_recovery;
|
|
};
|
|
|
|
/**
|
|
* Struct holding values gleaned from the orterun command line -
|
|
* needed by debugger init
|
|
*/
|
|
ORTE_DECLSPEC extern struct orterun_globals_t orterun_globals;
|
|
|
|
END_C_DECLS
|
|
|
|
#endif /* ORTERUN_ORTERUN_H */
|