Changeset 6363


Ignore:
Timestamp:
10/21/10 12:29:51 (14 years ago)
Author:
Eric.Larour
Message:

added hyperthreading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/clusters/pfe.m

    r6297 r6363  
    2222                 bbftp=0;
    2323                 numstreams=8;
     24                 hyperthreading=0;
    2425         end
    2526         properties (SetAccess=private)
     
    5657                         disp(sprintf('    executionpath: %s',cluster.executionpath));
    5758                         disp(sprintf('    interactive: %i',cluster.interactive));
     59                         disp(sprintf('    hyperthreading: %i',cluster.hyperthreading));
    5860                 end
    5961                 %}}}
     
    6870                         %now, check cluster.cpuspernode according to processor type
    6971                         if (strcmpi(cluster.processor,'har') | strcmpi(cluster.processor,'neh')),
    70                                  if ((cluster.cpuspernode>8 ) | (cluster.cpuspernode<1)),
    71                                          error('IsConsistent error message: cpuspernode should be between 1 and 8 for ''neh'' and ''har'' processors');
     72                                 if cluster.hyperthreading,
     73                                         if ((cluster.cpuspernode>16 ) | (cluster.cpuspernode<1)),
     74                                                 error('IsConsistent error message: cpuspernode should be between 1 and 16 for ''neh'' and ''har'' processors in hyperthreading mode');
     75                                         end
     76                                 else
     77                                         if ((cluster.cpuspernode>8 ) | (cluster.cpuspernode<1)),
     78                                                 error('IsConsistent error message: cpuspernode should be between 1 and 8 for ''neh'' and ''har'' processors');
     79                                         end
    7280                                 end
    7381                         elseif strcmpi(cluster.processor,'wes'),
    74                                  if ((cluster.cpuspernode>12 ) | (cluster.cpuspernode<1)),
    75                                          error('IsConsistent error message: cpuspernode should be between 1 and 12 for ''wes'' processors');
     82                                 if cluster.hyperthreading,
     83                                         if ((cluster.cpuspernode>24 ) | (cluster.cpuspernode<1)),
     84                                                 error('IsConsistent error message: cpuspernode should be between 1 and 24 for ''wes'' processors in hyperthreading mode');
     85                                         end
     86                                 else
     87                                         if ((cluster.cpuspernode>12 ) | (cluster.cpuspernode<1)),
     88                                                 error('IsConsistent error message: cpuspernode should be between 1 and 12 for ''wes'' processors');
     89                                         end
    7690                                 end
    7791                         else
     
    215229                        %copy files from cluster to present directory
    216230                        if ~cluster.bbftp,
     231                                packages
     232                                cluster.name
     233                                cluster.login
     234                                cluster.port
     235                                directory
    217236                                issmscpin(cluster.name, cluster.login, cluster.port, directory, packages);
    218237                        else
Note: See TracChangeset for help on using the changeset viewer.