Changeset 25836 for issm/trunk/src/m/classes/clusters/pfe.py
- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk ¶
- Property svn:mergeinfo changed
-
issm/trunk/src ¶
- Property svn:mergeinfo changed
-
TabularUnified issm/trunk/src/m/classes/clusters/pfe.py ¶
r24686 r25836 31 31 self.queue = 'long' 32 32 self.time = 12 * 60 33 self.processor = 'wes' 33 self.processor = 'bro' 34 self.srcpath = '' 34 35 self.codepath = '' 35 36 self.executionpath = '' … … 61 62 s = "%s\n%s" % (s, fielddisplay(self, 'np', 'number of CPUs')) 62 63 s = "%s\n%s" % (s, fielddisplay(self, 'port', 'machine access port')) 63 s = "%s\n%s" % (s, fielddisplay(self, 'codepath', 'code path on the cluster'))64 s = "%s\n%s" % (s, fielddisplay(self, 'executionpath', 'execution path on the cluster'))65 64 s = "%s\n%s" % (s, fielddisplay(self, 'queue', 'name of the queue')) 66 65 s = "%s\n%s" % (s, fielddisplay(self, 'time', 'walltime requested')) 67 66 s = "%s\n%s" % (s, fielddisplay(self, 'processor', 'type of processor')) 67 s = "%s\n%s" % (s, fielddisplay(self, 'codepath', '$ISSM_DIR on pfe')) 68 s = "%s\n%s" % (s, fielddisplay(self, 'executionpath', 'directory containing issm.exe on pfe')) 68 69 s = "%s\n%s" % (s, fielddisplay(self, 'grouplist', 'name of the group')) 69 70 s = "%s\n%s" % (s, fielddisplay(self, 'interactive', '')) … … 95 96 md = md.checkmessage('cpuspernode should be between 1 and 8 for ''neh'' and ''har'' processors') 96 97 97 elif self.processor == ' wes':98 elif self.processor == 'bro': 98 99 if self.hyperthreading: 99 if not 0 < self.cpuspernode < 25:100 md = md.checkmessage('cpuspernode should be between 1 and 24 for ''wes'' processors in hyperthreading mode')100 if not 0 < self.cpuspernode < 57: 101 md = md.checkmessage('cpuspernode should be between 1 and 56 for ''bro'' processors in hyperthreading mode') 101 102 else: 102 if not 0 < self.cpuspernode < 13:103 md = md.checkmessage('cpuspernode should be between 1 and 12 for ''wes'' processors')103 if not 0 < self.cpuspernode < 29: 104 md = md.checkmessage('cpuspernode should be between 1 and 28 for ''bro'' processors') 104 105 105 106 elif self.processor == 'ivy': … … 111 112 md = md.checkmessage('cpuspernode should be between 1 and 20 for ''ivy'' processors') 112 113 else: 113 md = md.checkmessage('unknown processor type, should be ''neh'', '' wes'' or ''har'' or ''ivy''')114 md = md.checkmessage('unknown processor type, should be ''neh'', ''bro'' or ''har'' or ''ivy''') 114 115 115 #Miscelaneous116 #Miscellaneous 116 117 if not self.login: 117 118 md = md.checkmessage('login empty') 119 if not self.srcpath: 120 md = md.checkmessage('srcpath empty') 118 121 if not self.codepath: 119 122 md = md.checkmessage('codepath empty') … … 153 156 fid.write('export PATH="$PATH:."\n\n') 154 157 fid.write('export MPI_GROUP_MAX=64\n\n') 155 fid.write('export ISSM_DIR="%s /../ "\n' % self.codepath)158 fid.write('export ISSM_DIR="%s"\n' % self.srcpath) 156 159 fid.write('source $ISSM_DIR/etc/environment.sh\n') 160 fid.write('export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ISSM_DIR/externalpackages/petsc/install/lib"\n') 157 161 fid.write('cd %s/%s/ \n\n' % (self.executionpath, dirname)) 158 162 fid.write('mpiexec - np %i %s/%s %s %s/%s %s\n' % (self.nprocs(), self.codepath, executable, str(solution), self.executionpath, dirname, modelname))
Note:
See TracChangeset
for help on using the changeset viewer.