Changeset 5956
- Timestamp:
- 09/22/10 13:55:09 (14 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/clusters/QueueRequirements.m
r5954 r5956 5 5 % Usage: QueueRequirements(available_queues,queue_requirements_time,queue_requirements_np,np,time) 6 6 % 7 8 7 9 8 %Ok, go through requirements for current queue: … … 25 24 %check on time requirements 26 25 rtime=queue_requirements_time(index); 27 28 26 if time<=0, 29 27 error('QueueRequirements: time should be a positive number'); 30 28 end 31 32 29 if time>rtime, 33 30 error(['QueueRequirements: time should be < ' num2str(rtime) ' for queue: ' queue]); … … 37 34 rnp=queue_requirements_np(index); 38 35 rmod=queue_requirements_modulo(index); 39 40 36 if np<=0, 41 37 error('QueueRequirements: np should be a positive number'); 42 38 end 43 44 39 if np>rnp, 45 40 error(['QueueRequirements: np should be < ' num2str(rnp) ' for queue: ' queue]); -
issm/trunk/src/m/clusters/README
r5954 r5956 8 8 is much more manageable and powerful. 9 9 10 11 10 How to add your cluster? 12 11 use an existing cluster script, such as pleiades.m, and rename it to your cluster name. -
issm/trunk/src/m/clusters/astrid.m
r5954 r5956 6 6 classdef astrid 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='astrid' 10 10 np =15; %number of processors 11 codepath=[issmdir '/bin'];12 executionpath=[issmdir '../execution'];13 valgrind=[issmdir '/externalpackages/valgrind/install/bin/valgrind'];14 valgrindlib=[issmdir '/externalpackages/valgrind/install/lib/libmpidebug.so'];15 valgrindsup=[issmdir 'externalpackages/valgrind/issm.supp'];11 codepath=[issmdir() '/bin']; 12 executionpath=[issmdir() '/../execution']; 13 valgrind=[issmdir() '/externalpackages/valgrind/install/bin/valgrind']; 14 valgrindlib=[issmdir() '/externalpackages/valgrind/install/lib/libmpidebug.so']; 15 valgrindsup=[issmdir() '/externalpackages/valgrind/issm.supp']; 16 16 login='larour'; 17 17 port=0; … … 19 19 end 20 20 methods 21 function []=disp(md) % {{{121 function []=disp(md) % {{{1 22 22 % display the object 23 23 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 31 31 end 32 32 %}}} 33 function IsConsistent(md) % {{{133 function IsConsistent(md) % {{{1 34 34 if md.np>16, 35 35 error('IsConsistent error message: number of processors should be lest than 16!'); … … 40 40 end 41 41 %}}} 42 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{142 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 43 43 44 44 %open file for writing: … … 59 59 end 60 60 %}}} 61 function command=LaunchCommand(md,modelruntimename,modelname)% {{{161 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 62 62 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && source ' modelname '.queue ']; 63 63 end -
issm/trunk/src/m/clusters/castor.m
r5954 r5956 6 6 classdef castor 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='castor' 10 10 np =128; %number of processors 11 11 queue='shortc'; 12 12 time=180; 13 codepath= /workp/edw/larour/issm-2.0/bin14 executionpath= /workp/edw/larour/Testing/Execution13 codepath='/workp/edw/larour/issm-2.0/bin' 14 executionpath='/workp/edw/larour/Testing/Execution' 15 15 login='larour'; 16 16 port=0; … … 18 18 end 19 19 methods 20 function []=disp(md) % {{{120 function []=disp(md) % {{{1 21 21 % display the object 22 22 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 29 29 end 30 30 %}}} 31 function IsConsistent(md) % {{{131 function IsConsistent(md) % {{{1 32 32 33 33 available_queues={'shortc','longc'}; … … 38 38 end 39 39 %}}} 40 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{140 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 41 41 42 42 %open file for writing: … … 63 63 end 64 64 %}}} 65 function command=LaunchCommand(md,modelruntimename,modelname)% {{{165 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 66 66 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && qsub ' modelname '.queue ']; 67 67 end -
issm/trunk/src/m/clusters/cosmos.m
r5954 r5956 6 6 classdef cosmos 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='cosmos' 10 10 np =128; %number of processors 11 11 queue='shortq'; 12 12 time=3*60; 13 13 codepath='/work00/edw/larour/issm-2.0/bin'; 14 14 executionpath='/work00/edw/larour/Execution'; 15 15 login='larour'; 16 16 port=0; … … 18 18 end 19 19 methods 20 function []=disp(md) % {{{120 function []=disp(md) % {{{1 21 21 % display the object 22 22 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 29 29 end 30 30 %}}} 31 function IsConsistent(md) % {{{131 function IsConsistent(md) % {{{1 32 32 33 33 available_queues={'debug','shortq','longq'}; … … 38 38 end 39 39 %}}} 40 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{140 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 41 41 42 42 %open file for writing: … … 62 62 end 63 63 %}}} 64 function command=LaunchCommand(md,modelruntimename,modelname)% {{{164 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 65 65 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && qsub -S/bin/sh ' modelname '.queue ']; 66 66 end -
issm/trunk/src/m/clusters/eric-mac.m
r5954 r5956 6 6 classdef astrid 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='eric-mac' 10 10 np =3; %number of processors 11 codepath=[issmdir '/bin'];12 executionpath=[issmdir '../execution'];13 valgrind=[issmdir '/externalpackages/valgrind/install/bin/valgrind'];14 valgrindlib=[issmdir '/externalpackages/valgrind/install/lib/libmpidebug.so'];15 valgrindsup=[issmdir 'externalpackages/valgrind/issm.supp'];11 codepath=[issmdir() '/bin']; 12 executionpath=[issmdir() '/../execution']; 13 valgrind=[issmdir() '/externalpackages/valgrind/install/bin/valgrind']; 14 valgrindlib=[issmdir() '/externalpackages/valgrind/install/lib/libmpidebug.so']; 15 valgrindsup=[issmdir() '/externalpackages/valgrind/issm.supp']; 16 16 login='larour'; 17 17 port=0; … … 19 19 end 20 20 methods 21 function []=disp(md) % {{{121 function []=disp(md) % {{{1 22 22 % display the object 23 23 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 31 31 end 32 32 %}}} 33 function IsConsistent(md) % {{{133 function IsConsistent(md) % {{{1 34 34 if md.np>4, 35 35 error('IsConsistent error message: number of processors should be lest than 16!'); … … 40 40 end 41 41 %}}} 42 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{142 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 43 43 44 44 %open file for writing: … … 59 59 end 60 60 %}}} 61 function command=LaunchCommand(md,modelruntimename,modelname)% {{{161 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 62 62 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && source ' modelname '.queue ']; 63 63 end -
issm/trunk/src/m/clusters/gemini.m
r5954 r5956 6 6 classdef gemini 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='gemini' 10 10 np =50; %number of processors 11 11 queue='debug'; 12 12 time=60; 13 codepath= /workg/edw/larour/issm-2.0/bin14 executionpath= /workg/edw/larour/Testing/Execution13 codepath='/workg/edw/larour/issm-2.0/bin' 14 executionpath='/workg/edw/larour/Testing/Execution' 15 15 login='larour'; 16 16 port=0; … … 18 18 end 19 19 methods 20 function []=disp(md) % {{{120 function []=disp(md) % {{{1 21 21 % display the object 22 22 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 29 29 end 30 30 %}}} 31 function IsConsistent(md) % {{{131 function IsConsistent(md) % {{{1 32 32 33 33 available_queues={'debug','shortg','longg'}; … … 38 38 end 39 39 %}}} 40 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{140 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 41 41 42 42 %open file for writing: … … 63 63 end 64 64 %}}} 65 function command=LaunchCommand(md,modelruntimename,modelname)% {{{165 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 66 66 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && qsub ' modelname '.queue ']; 67 67 end … … 69 69 end 70 70 end 71 72 73 -
issm/trunk/src/m/clusters/larsen.m
r5954 r5956 6 6 classdef larsen 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='larsen' 10 np =7; %number of processors 11 codepath=[issmdir '/bin'];12 executionpath=[issmdir '../execution'];13 valgrind=[issmdir '/externalpackages/valgrind/install/bin/valgrind'];14 valgrindlib=[issmdir '/externalpackages/valgrind/install/lib/libmpidebug.so'];15 valgrindsup=[issmdir 'externalpackages/valgrind/issm.supp'];10 np=7; 11 codepath=[issmdir() '/bin']; 12 executionpath=[issmdir() '/../execution']; 13 valgrind=[issmdir() '/externalpackages/valgrind/install/bin/valgrind']; 14 valgrindlib=[issmdir() '/externalpackages/valgrind/install/lib/libmpidebug.so']; 15 valgrindsup=[issmdir() '/externalpackages/valgrind/issm.supp']; 16 16 login='larour'; 17 17 port=0; … … 19 19 end 20 20 methods 21 function []=disp(md) % {{{121 function []=disp(md) % {{{1 22 22 % display the object 23 23 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 31 31 end 32 32 %}}} 33 function IsConsistent(md) % {{{133 function IsConsistent(md) % {{{1 34 34 if md.np>8, 35 35 error('IsConsistent error message: number of processors should be lest than 16!'); … … 40 40 end 41 41 %}}} 42 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{142 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 43 43 44 44 %open file for writing: … … 59 59 end 60 60 %}}} 61 function command=LaunchCommand(md,modelruntimename,modelname)% {{{161 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 62 62 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && source ' modelname '.queue ']; 63 63 end -
issm/trunk/src/m/clusters/none.m
r5954 r5956 8 8 name='none' 9 9 end 10 11 10 methods 12 function []=disp(md) % {{{111 function []=disp(md) % {{{1 13 12 % display the object 14 13 disp(sprintf('cluster class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 16 15 end 17 16 %}}} 18 function IsConsistent(md) % {{{117 function IsConsistent(md) % {{{1 19 18 end 20 19 %}}} 21 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{120 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 22 21 error('none.BuildQueueScript error message: serial cluster cannot build queue script'); 23 22 end -
issm/trunk/src/m/clusters/pfe.m
r5954 r5956 6 6 classdef pfe 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='pfe' 10 10 numnodes=20; 11 11 cpuspernode=8; 12 12 queue='long'; 13 13 time=12*60; … … 23 23 end 24 24 methods 25 function []=disp(md) % {{{125 function []=disp(md) % {{{1 26 26 % display the object 27 27 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 37 37 end 38 38 %}}} 39 function IsConsistent(md) % {{{139 function IsConsistent(md) % {{{1 40 40 41 41 available_queues={'long'}; … … 60 60 end 61 61 %}}} 62 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{162 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 63 63 md.np=md.numnodes*md.cpuspernode; 64 64 … … 93 93 end 94 94 %}}} 95 function command=LaunchCommand(md,modelruntimename,modelname)% {{{195 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 96 96 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && qsub ' modelname '.queue ']; 97 97 end -
issm/trunk/src/m/clusters/pollux.m
r5954 r5956 6 6 classdef pollux 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='pollux' 10 10 np =128; %number of processors 11 11 queue='shortp'; 12 12 time=180; 13 codepath= /workc/edw/larour/issm-2.0/bin14 executionpath= /workc/edw/larour/Testing/Execution13 codepath='/workc/edw/larour/issm-2.0/bin' 14 executionpath='/workc/edw/larour/Testing/Execution' 15 15 login='larour'; 16 16 port=0; … … 18 18 end 19 19 methods 20 function []=disp(md) % {{{120 function []=disp(md) % {{{1 21 21 % display the object 22 22 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 29 29 end 30 30 %}}} 31 function IsConsistent(md) % {{{131 function IsConsistent(md) % {{{1 32 32 33 33 available_queues={'shortp','longp'}; … … 38 38 end 39 39 %}}} 40 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{140 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 41 41 42 42 %open file for writing: … … 63 63 end 64 64 %}}} 65 function command=LaunchCommand(md,modelruntimename,modelname)% {{{165 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 66 66 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && qsub ' modelname '.queue ']; 67 67 end … … 69 69 end 70 70 end 71 72 73 -
issm/trunk/src/m/clusters/wilkes.m
r5954 r5956 6 6 classdef wilkes 7 7 properties (SetAccess=public) 8 % {{{18 % {{{1 9 9 name='wilkes' 10 10 np =7; %number of processors 11 codepath=[issmdir '/bin'];12 executionpath=[issmdir '../execution'];13 valgrind=[issmdir '/externalpackages/valgrind/install/bin/valgrind'];14 valgrindlib=[issmdir '/externalpackages/valgrind/install/lib/libmpidebug.so'];15 valgrindsup=[issmdir 'externalpackages/valgrind/issm.supp'];11 codepath=[issmdir() '/bin']; 12 executionpath=[issmdir() '/../execution']; 13 valgrind=[issmdir() '/externalpackages/valgrind/install/bin/valgrind']; 14 valgrindlib=[issmdir() '/externalpackages/valgrind/install/lib/libmpidebug.so']; 15 valgrindsup=[issmdir() '/externalpackages/valgrind/issm.supp']; 16 16 login='larour'; 17 17 port=0; … … 19 19 end 20 20 methods 21 function []=disp(md) % {{{121 function []=disp(md) % {{{1 22 22 % display the object 23 23 disp(sprintf('class ''%s'' object ''%s'' = ',class(md),inputname(1))); … … 31 31 end 32 32 %}}} 33 function IsConsistent(md) % {{{133 function IsConsistent(md) % {{{1 34 34 if md.np>8, 35 35 error('IsConsistent error message: number of processors should be lest than 16!'); … … 40 40 end 41 41 %}}} 42 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{142 function BuildQueueScript(md,modelname,analysis_type,mem_debug) % {{{1 43 43 44 44 %open file for writing: … … 59 59 end 60 60 %}}} 61 function command=LaunchCommand(md,modelruntimename,modelname)% {{{161 function command=LaunchCommand(md,modelruntimename,modelname)% {{{1 62 62 command=['cd ' md.executionpath ' && rm -rf ./' modelruntimename ' && mkdir ' modelruntimename ' && cd ' modelruntimename ' && mv ../' modelruntimename '.tar.gz ./ && tar -zxf ' modelruntimename '.tar.gz && source ' modelname '.queue ']; 63 63 end -
issm/trunk/src/m/model/ismodelselfconsistent.m
r5954 r5956 190 190 %}}} 191 191 %PARALLEL{{{1 192 md.cluster.IsConsistent;192 IsConsistent(md.cluster); 193 193 %}}} 194 194
Note:
See TracChangeset
for help on using the changeset viewer.