Changeset 23230


Ignore:
Timestamp:
09/07/18 08:18:21 (7 years ago)
Author:
bdef
Message:

NEW: adding matlab stallo and updating py

Location:
issm/trunk-jpl/src/m/classes/clusters
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/stallo.py

    r23210 r23230  
    5151                #OK get other fields
    5252                self=options.AssignObjectFields(self)
    53                 self.np=self.numnodes*self.cpuspernode         
     53                self.np=self.numnodes*self.cpuspernode
    5454        # }}}
    5555
     
    6161                s = "%s\n%s"%(s,fielddisplay(self,'login','login'))
    6262                s = "%s\n%s"%(s,fielddisplay(self,'numnodes','number of nodes'))
    63                 s = "%s\n%s"%(s,fielddisplay(self,'cpuspernode','number of nodes per CPUs'))
     63                s = "%s\n%s"%(s,fielddisplay(self,'cpuspernode','number of CPUs per nodes'))
    6464                s = "%s\n%s"%(s,fielddisplay(self,'mem','memory per CPU'))
    6565                s = "%s\n%s"%(s,fielddisplay(self,'queue','name of the queue (normal (D), short,singlenode,multinode,devel)'))
     
    120120                h,m=divmod(m, 60)
    121121                d,h=divmod(h, 60)
    122                 timestring="%02d-%02d:%02d:%02d" % (d, h, m, s)
    123                 fid.write('#SBATCH --time=%s\n' % timestring) #walltime is minutes
    124                 fid.write('#SBATCH --mem-per-cpu=%iGB\n' % self.mem)# mem is in GB
     122#               timestring="%02d-%02d:%02d:%02d" % (d, h, m, s)
     123                fid.write('#SBATCH --time={}\n'.format(timestring)) #walltime is minutes
     124                fid.write('#SBATCH --mem-per-cpu={}MB\n'.format(1000*self.mem))# mem is in MB (to keep it integral)
    125125                if (np.mod(self.np,16)+np.mod(self.np,20))==0:
    126126                        fid.write('#SBATCH --ntask=%i\n' % self.np)
Note: See TracChangeset for help on using the changeset viewer.