Ignore:
Timestamp:
10/19/16 13:03:16 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed camhpc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/camhpc.m

    r21290 r21291  
    1414                 cpuspernode   = 8;
    1515                 port          = 8000;
    16                  queue         = 'arnold';
     16                 project       = '';
     17                 partition     = '';
    1718                 codepath      = '';
    1819                 executionpath = '';
     
    4142                         disp(sprintf('    cpuspernode: %i',cluster.cpuspernode));
    4243                         disp(sprintf('    np: %i',cluster.cpuspernode*cluster.numnodes));
    43                          disp(sprintf('    queue: %s',cluster.queue));
     44                         disp(sprintf('    project: %s',cluster.project));
     45                         disp(sprintf('    partition: %s',cluster.partition));
    4446                         disp(sprintf('    codepath: %s',cluster.codepath));
    4547                         disp(sprintf('    executionpath: %s',cluster.executionpath));
     
    5658                 function md = checkconsistency(cluster,md,solution,analyses) % {{{
    5759
    58                          available_queues={'c6145','default'};
     60                         available_queues={'ARNOLD-SL3'};
    5961                         queue_requirements_time=[Inf Inf];
    6062                         queue_requirements_np=[80 80];
    6163
    62                          QueueRequirements(available_queues,queue_requirements_time,queue_requirements_np,cluster.queue,cluster.np,1)
     64                         QueueRequirements(available_queues,queue_requirements_time,queue_requirements_np,cluster.project,cluster.np,1)
    6365
    6466                         %Miscelaneous
     
    7880                         fprintf(fid,'#!/bin/bash\n');
    7981                         fprintf(fid,'#SBATCH --job-name=%s\n',modelname);
    80                          fprintf(fid,'#SBATCH -p %s \n',cluster.queue);
     82                         fprintf(fid,'#SBATCH -p %s \n',cluster.partition);
     83                         fprintf(fid,'#SBATCH -A %s \n',cluster.project);
    8184                         fprintf(fid,'#SBATCH -N %i -n %i\n',cluster.numnodes,cluster.cpuspernode);
    8285                         fprintf(fid,'#SBATCH --time=%i\n',cluster.time*60); %walltime is in seconds.
     
    8790                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
    8891                         fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    89                          fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     92                         fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    9093                         if ~io_gather, %concatenate the output files:
    9194                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    9699                         if cluster.interactive,
    97100                                 fid=fopen([modelname '.run'],'w');
    98                                  fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     101                                 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    99102                                 if ~io_gather, %concatenate the output files:
    100103                                         fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
Note: See TracChangeset for help on using the changeset viewer.