-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove BG deadwoods from test programs Add misaligned header comments Refactor printing of launcher path
- Loading branch information
Showing
3 changed files
with
12 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,31 @@ | ||
/* | ||
* $Header: $ | ||
*-------------------------------------------------------------------------------- | ||
* Copyright (c) 2008-2010, Lawrence Livermore National Security, LLC. Produced | ||
*at | ||
* Copyright (c) 2008, Lawrence Livermore National Security, LLC. Produced at | ||
* the Lawrence Livermore National Laboratory. Written by Dong H. Ahn | ||
*<[email protected]>. | ||
* LLNL-CODE-409469. All rights reserved. | ||
* <[email protected]>. LLNL-CODE-409469. All rights reserved. | ||
* | ||
* This file is part of LaunchMON. For details, see | ||
* https://computing.llnl.gov/?set=resources&page=os_projects | ||
* | ||
* Please also read LICENSE.txt -- Our Notice and GNU Lesser General Public | ||
*License. | ||
* License. | ||
* | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
*the | ||
* terms of the GNU General Public License (as published by the Free Software | ||
* Foundation) version 2.1 dated February 1999. | ||
* the terms of the GNU General Public License (as published by the Free | ||
* Software Foundation) version 2.1 dated February 1999. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
*ANY | ||
* WARRANTY; without even the IMPLIED WARRANTY OF MERCHANTABILITY or | ||
* ANY WARRANTY; without even the IMPLIED WARRANTY OF MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the terms and conditions of the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
*along | ||
* with this program; if not, write to the Free Software Foundation, Inc., 59 | ||
*Temple | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 59 Temple | ||
* Place, Suite 330, Boston, MA 02111-1307 USA | ||
*-------------------------------------------------------------------------------- | ||
* | ||
* | ||
* | ||
* Update Log: | ||
* Jul 18 2018 DHA: Add IBM JSM Spectrum support | ||
* Jun 01 2012 DHA: Copied from 0.8-middleware-support branch and merged | ||
|
@@ -142,17 +134,7 @@ int main(int argc, char *argv[]) { | |
launcher_argv[4] = strdup(argv[2]); | ||
launcher_argv[5] = strdup("--exe"); | ||
launcher_argv[6] = strdup(argv[1]); | ||
// manually fill the block | ||
// launcher_argv[7] = strdup("--block"); | ||
// launcher_argv[8] = strdup("R00-M0-N04"); | ||
// manually fill the corner | ||
// launcher_argv[9] = strdup("--corner"); | ||
// launcher_argv[10] = strdup("R00-M0-N04-J07"); | ||
// manually fill the shape | ||
// launcher_argv[11] = strdup("--shape"); | ||
// launcher_argv[12] = strdup("1x1x1x1x1"); | ||
launcher_argv[7] = NULL; | ||
fprintf(stdout, "[LMON_FE] launching the job/daemons via %s\n", mylauncher); | ||
} else if ((rmenv_str == std::string("RC_bgq_slurm"))) { | ||
launcher_argv = (char **)malloc(7 * sizeof(char *)); | ||
launcher_argv[0] = strdup(mylauncher); | ||
|
@@ -162,8 +144,6 @@ int main(int argc, char *argv[]) { | |
launcher_argv[4] = strdup(argv[2]); | ||
launcher_argv[5] = strdup(argv[1]); | ||
launcher_argv[6] = NULL; | ||
fprintf(stdout, "[LMON_FE] launching the job/daemons via %s\n", | ||
"mylauncher"); | ||
} else if ((rmenv_str == std::string("RC_bglrm")) || | ||
(rmenv_str == std::string("RC_bgprm"))) { | ||
launcher_argv = (char **)malloc(8 * sizeof(char *)); | ||
|
@@ -175,7 +155,6 @@ int main(int argc, char *argv[]) { | |
launcher_argv[5] = strdup("-exe"); | ||
launcher_argv[6] = strdup(argv[1]); | ||
launcher_argv[7] = NULL; | ||
fprintf(stdout, "[LMON_FE] launching the job/daemons via %s\n", mylauncher); | ||
} else if (rmenv_str == std::string("RC_slurm")) { | ||
numprocs_opt = string("-n") + string(argv[2]); | ||
numnodes_opt = string("-N") + string(argv[3]); | ||
|
@@ -205,15 +184,13 @@ int main(int argc, char *argv[]) { | |
launcher_argv[5] = strdup(argv[2]); | ||
launcher_argv[6] = strdup(argv[1]); | ||
launcher_argv[7] = NULL; | ||
fprintf(stdout, "[LMON_FE] launching the job/daemons via %s\n", mylauncher); | ||
} else if (rmenv_str == std::string("RC_mpiexec_hydra")) { | ||
launcher_argv = (char **)malloc(5 * sizeof(char *)); | ||
launcher_argv[0] = strdup(mylauncher); | ||
launcher_argv[1] = strdup("-n"); | ||
launcher_argv[2] = strdup(argv[2]); | ||
launcher_argv[3] = strdup(argv[1]); | ||
launcher_argv[4] = NULL; | ||
fprintf(stdout, "[LMON_FE] launching the job/daemons via %s\n", mylauncher); | ||
} else if (rmenv_str == std::string("RC_ibm_spectrum")) { | ||
numprocs_opt = string("-p") + string(argv[2]); | ||
launcher_argv = (char **) malloc (4*sizeof(char*)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters