Example #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;
}
Example #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;
}
Example #5
0
static void genSBatchScript(int argc, char *argv[], int numLocales) {
  chpl_launch_create_command(argc, argv, numLocales);
}
Example #6
0
int chpl_launch(int argc, char* argv[], int32_t numLocales) {
  return chpl_launch_using_system(chpl_launch_create_command(argc, argv, numLocales),
                                  argv[0]);
}