Changeset 18703
- Timestamp:
- 10/28/14 17:30:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/discover.m
r18688 r18703 64 64 QueueRequirements(available_queues,queue_requirements_time,queue_requirements_np,cluster.queue,cluster.np,cluster.time) 65 65 66 if ( strcmpi(cluster.queue,'general') & cluster.cpuspernode*cluster.numnodes < 17)67 md = checkmessage(md,'cpus must be greater than 17 for general queue');68 end69 66 %now, check cluster.cpuspernode according to processor type 70 if ( strcmpi(cluster.processor,' neha')),71 if ((cluster.cpuspernode> 8) | (cluster.cpuspernode<1)),72 md = checkmessage(md,'cpuspernode should be between 1 and 8 for ''neha'' processors');67 if ( strcmpi(cluster.processor,'sand')), 68 if ((cluster.cpuspernode>16 ) | (cluster.cpuspernode<1)), 69 md = checkmessage(md,'cpuspernode should be between 1 and 16 for ''sand'' processors'); 73 70 end 74 71 elseif strcmpi(cluster.processor,'west'), … … 77 74 end 78 75 else 79 md = checkmessage(md,'unknown processor type, should be '' neha'' or ''west'' ');76 md = checkmessage(md,'unknown processor type, should be ''sand'' or ''west'' '); 80 77 end 81 78 … … 100 97 fprintf(fid,'#PBS -l select=%i:mpiprocs=%i:proc=%s\n',cluster.numnodes,cluster.cpuspernode,cluster.processor); 101 98 fprintf(fid,'#PBS -l walltime=%i:00\n',cluster.time); %SLURM walltime is in minutes: 102 fprintf(fid,'#PBS -q %s \n',cluster.queue); 99 if ~strcmp(cluster.queue,'general'), 100 fprintf(fid,'#PBS -q %s \n',cluster.queue); 101 end 103 102 fprintf(fid,'#PBS -W group_list=s1010\n'); 104 103 fprintf(fid,'#PBS -m e\n');
Note:
See TracChangeset
for help on using the changeset viewer.