1
1

Ensure that we change to the session dir if we preload binaries so we'll use the loaded one

Special patch created for v1.8 and CMR filed

This commit was SVN r31963.
Этот коммит содержится в:
Ralph Castain 2014-06-06 21:43:23 +00:00
родитель 55e35e0f6e
Коммит 8db76e9c6f

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

@ -1951,10 +1951,13 @@ static int create_app(int argc, char* argv[],
* can't easily find the class on the cmd line. Java apps have to
* preload their binary via the preload_files option
*/
if (orte_get_attribute(&app->attributes, ORTE_APP_SSNDIR_CWD, NULL, OPAL_BOOL) &&
!opal_path_is_absolute(app->argv[0]) &&
if (!opal_path_is_absolute(app->argv[0]) &&
NULL == strstr(app->argv[0], "java")) {
orte_set_attribute(&app->attributes, ORTE_APP_PRELOAD_BIN, ORTE_ATTR_LOCAL, NULL, OPAL_BOOL);
if (orterun_globals.preload_binaries) {
orte_set_attribute(&app->attributes, ORTE_APP_SSNDIR_CWD, ORTE_ATTR_GLOBAL, NULL, OPAL_BOOL);
} else if (orte_get_attribute(&app->attributes, ORTE_APP_SSNDIR_CWD, NULL, OPAL_BOOL)) {
orte_set_attribute(&app->attributes, ORTE_APP_PRELOAD_BIN, ORTE_ATTR_LOCAL, NULL, OPAL_BOOL);
}
}
if (NULL != orterun_globals.preload_files) {
orte_set_attribute(&app->attributes, ORTE_APP_PRELOAD_FILES, ORTE_ATTR_LOCAL,