Changeset 1268
- Timestamp:
- 07/08/09 20:06:39 (16 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/BuildQueueingScriptgemini.m
r1111 r1268 12 12 end 13 13 14 fprintf(fid,'#!/bin/ csh\n');15 fprintf(fid,'#PBS -l walltime=%i\n',md.time );14 fprintf(fid,'#!/bin/sh\n'); 15 fprintf(fid,'#PBS -l walltime=%i\n',md.time*60); %walltime is in seconds. 16 16 fprintf(fid,'#PBS -l ncpus=%i\n',md.np); 17 17 if ~isempty(md.queue), … … 21 21 fprintf(fid,'#PBS -e %s.errlog \n',md.name); 22 22 23 fprintf(fid,' setenv PBS_O_WORKDIR%s\n',executionpath);23 fprintf(fid,'export PBS_O_WORKDIR=%s\n',executionpath); 24 24 fprintf(fid,'cd $PBS_O_WORKDIR\n'); 25 fprintf(fid,' setenv OMP_NUM_THREADS1\n');25 fprintf(fid,'export OMP_NUM_THREADS=1\n'); 26 26 fprintf(fid,'mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock',md.np,codepath,md.analysis_type,executionpath,md.name,md.name,md.name); 27 27 -
issm/trunk/src/m/classes/public/LaunchQueueJob.m
r1111 r1268 1 function LaunchQueueJob(md,executionpath)1 function md=LaunchQueueJob(md,executionpath,options) 2 2 %LAUNCHQUEUEJOB - ... 3 3 % … … 17 17 if exist(function_name,'file'), 18 18 %Call this function: 19 eval([ function_name '(md,executionpath);']);19 eval(['md=' function_name '(md,executionpath,options);']); 20 20 else 21 21 %Call the generic LaunchQueueJob: 22 LaunchQueueJobGeneric(md,executionpath);22 md=LaunchQueueJobGeneric(md,executionpath,options); 23 23 end -
issm/trunk/src/m/classes/public/LaunchQueueJobGeneric.m
r804 r1268 1 function LaunchQueueJobGeneric(md,executionpath)1 function md=LaunchQueueJobGeneric(md,executionpath,options) 2 2 %LAUNCHQUEUEJOBGENERIC - ... 3 3 % -
issm/trunk/src/m/classes/public/LaunchQueueJobcosmos.m
r1 r1268 1 function LaunchQueueJobcosmos(md,executionpath)1 function md=LaunchQueueJobcosmos(md,executionpath,options) 2 2 %LAUNCHQUEUEJOBCOSMOS - ... 3 3 % -
issm/trunk/src/m/classes/public/LaunchQueueJobgemini.m
r1111 r1268 1 function LaunchQueueJobgemini(md,executionpath)1 function md=LaunchQueueJobgemini(md,executionpath,options) 2 2 %LAUNCHQUEUEJOBGEMINI - ... 3 3 % … … 15 15 16 16 %jpload both files to cluster 17 disp('uploading input file, queueing script and variables script'); 18 if md.qmu_analysis, 19 eval(['!scp ' md.name '.bin' ' ' md.name '.queue ' md.name '.qmu.in ' md.cluster ':' executionpath]); 17 if ~strcmpi(options.batch,'yes'), 18 disp('uploading input file, queueing script and variables script'); 19 if md.qmu_analysis, 20 eval(['!scp ' md.name '.bin' ' ' md.name '.queue ' md.name '.qmu.in ' md.cluster ':' executionpath]); 21 else 22 eval(['!scp ' md.name '.bin' ' ' md.name '.queue ' md.cluster ':' executionpath]); 23 end 20 24 else 21 eval(['!scp ' md.name '.bin' ' ' md.name '.queue ' md.cluster ':' executionpath]);25 disp('batch mode requested: not launching job interactively'); 22 26 end 23 27 24 28 %new gemini cannot launch across cluster using ssh 25 29 disp(['launch solution sequence on remote cluster by logging into it and typing qsub < ' md.name '.queue']); 26 return; 27 28 disp('launching solution sequence on remote cluster'); 29 30 %now call the queuing script to launch the job. 31 system(['ssh ' md.cluster ' ''cd ' executionpath ' && qsub < ' md.name '.queue ''']); 32 30 md.waitonlock=0; -
issm/trunk/src/m/classes/public/process_solve_options.m
r961 r1268 53 53 end 54 54 end 55 56 %batch mode for launching jobs. 57 found=0; 58 for i=1:size(options,1), 59 if strcmpi(options{i,1},'batch'), 60 batch=options{i,2}; 61 found=1; 62 end 63 end 64 if ~found 65 batch='no'; 66 end 67 55 68 56 69 %check solution type is supported … … 131 144 outoptions.iparams=iparams; 132 145 outoptions.runmpi=runmpi; 146 outoptions.batch=batch; -
issm/trunk/src/m/classes/public/solveparallel.m
r965 r1268 23 23 24 24 %Now, launch the queueing script 25 LaunchQueueJob(md,executionpath);25 md=LaunchQueueJob(md,executionpath,options); 26 26 27 27 %Do we return, or just wait for results?
Note:
See TracChangeset
for help on using the changeset viewer.