Changeset 19591


Ignore:
Timestamp:
09/25/15 14:09:21 (10 years ago)
Author:
schlegel
Message:

CHG: update lonestar cluster class to add mkl

File:
1 edited

Legend:

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

    r19558 r19591  
    1111                 name          = 'lonestar.tacc.utexas.edu'
    1212                 login         = '';
     13                 modules        = {'mkl/10.3'};
    1314                 numnodes      = 1;
    1415                 cpuspernode   = 12;
     
    3940                         disp(sprintf('    name: %s',cluster.name));
    4041                         disp(sprintf('    login: %s',cluster.login));
     42                         disp(sprintf('    modules: %s',strjoin(cluster.modules,', ')));
    4143                         disp(sprintf('    port: %i',cluster.port));
    4244                         disp(sprintf('    numnodes: %i',cluster.numnodes));
     
    110112                         fprintf(fid,'#$ -R y\n');
    111113                         fprintf(fid,'#$ -o %s.outlog \n',modelname);
    112                          fprintf(fid,'#$ -e %s.errlog \n\n',modelname);
    113                          fprintf(fid,'#$ -pe 12way %i \n\n',cluster.np);
     114                         fprintf(fid,'#$ -e %s.errlog \n',modelname);
     115                         fprintf(fid,'#$ -pe 12way %i \n',cluster.np);
    114116                         fprintf(fid,'#$ -l h_rt=%02i:%02i:00 \n\n',floor(cluster.time/3600),floor(mod(cluster.time,3600)/60));
    115 
     117                         for i=1:numel(cluster.modules),
     118                                 fprintf(fid,['module load ' cluster.modules{i} '\n']);
     119                         end
     120                         fprintf(fid,'export PATH="$PATH:."\n\n');
    116121                         fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME
    117122                         fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
Note: See TracChangeset for help on using the changeset viewer.