Skip to content
Snippets Groups Projects
Commit d08c5a38 authored by Mark Grondona's avatar Mark Grondona
Browse files

o add new variable for totalview support "totalview_jobid" which

  contains the string that %J will expand to during totalview bulk
  launch.
parent 904ddf83
No related branches found
No related tags found
No related merge requests found
......@@ -77,4 +77,8 @@ extern int MPIR_acquired_pre_main;
extern void MPIR_Breakpoint(void);
extern void tv_launch_failure(void);
/* Value for totalview %J expansion in bulk launch string
*/
extern char *totalview_jobid;
#endif
......@@ -62,6 +62,8 @@
# include "src/srun/attach.h"
#endif
#include "src/common/xstring.h"
#define LAUNCH_WAIT_SEC 60 /* max wait to confirm launches, sec */
static int tasks_exited = 0;
......@@ -113,6 +115,8 @@ _build_tv_list(job_t *job, char *host, int nodeid, int ntasks, uint32_t *pid)
if (MPIR_proctable_size == 0) {
MPIR_proctable_size = opt.nprocs;
MPIR_proctable = xmalloc(sizeof(MPIR_PROCDESC) * opt.nprocs);
totalview_jobid = NULL;
xstrfmtcat(totalview_jobid, "%lu", job->jobid);
}
for (i = 0; i < ntasks; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment