示例#1
0
int chpl_launch(int argc, char* argv[], int32_t numLocales) {
  int retcode;
  
  // check the slurm version before continuing 
  sbatchVersion sVersion = determineSlurmVersion();
  if (sVersion != slurm) {
    printf("Error: This launcher is only compatible with native slurm\n");
    printf("Slurm version was %d\n", sVersion);
    return 1;
  }
 
  debug = getenv("CHPL_LAUNCHER_DEBUG");
 
  // generate a batch script and exit if user wanted to 
  if (generate_sbatch_script) {
    genSBatchScript(argc, argv, numLocales);
    retcode = 0;
  }
  // otherwise generate the batch file or expect script and execute it
  else {
    retcode = chpl_launch_using_system(chpl_launch_create_command(argc, argv, 
              numLocales), argv[0]);
    
    chpl_launch_cleanup();
  }

  return retcode;
}
int chpl_launch(int argc, char* argv[], int32_t numLocales) {
  int retcode =
    chpl_launch_using_system(chpl_launch_create_command(argc, argv, numLocales),
                             argv[0]);
  chpl_launch_cleanup();
  return retcode;
}
int chpl_launch(int argc, char* argv[], int32_t numLocales) {
  int retcode;

  debug = getenv("CHPL_LAUNCHER_DEBUG");

  retcode = chpl_launch_using_system(chpl_launch_create_command(argc, argv, numLocales),
            argv[0]);
  chpl_launch_cleanup();
  return retcode;
}
示例#4
0
int chpl_launch(int argc, char* argv[], int32_t numLocales) {
  int retcode;
  debug = getenv("CHPL_LAUNCHER_DEBUG");
  if (!walltime) {
    walltime = getenv("CHPL_LAUNCHER_WALLTIME");
  }
  if (!queue) {
    queue = getenv("CHPL_LAUNCHER_QUEUE");
  }
  retcode = chpl_launch_using_system(chpl_launch_create_command(argc, argv, numLocales),
                                     argv[0]);
  chpl_launch_cleanup();
  return retcode;
}
示例#5
0
int chpl_launch(int argc, char* argv[], int32_t numLocales) {
  int retcode;
  debug = getenv("CHPL_LAUNCHER_DEBUG");

  if (generate_qsub_script) {
    genQsubScript(argc, argv, numLocales);
    retcode = 0;
  } else {
    retcode =
      chpl_launch_using_fork_exec(EXPECT,
                                  chpl_launch_create_argv(argc, argv,
                                                          numLocales),
                                  argv[0]);
    chpl_launch_cleanup();
  }

  return retcode;
}