[cig-commits] r20648 - short/3D/PyLith/benchmarks/trunk/static/performance/solvertest

brad at geodynamics.org brad at geodynamics.org
Thu Aug 30 10:53:54 PDT 2012


Author: brad
Date: 2012-08-30 10:53:53 -0700 (Thu, 30 Aug 2012)
New Revision: 20648

Added:
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np006.cfg
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np012.cfg
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np024.cfg
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np048.cfg
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np096.cfg
Modified:
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/plot_scaling.py
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/run_scaling.py
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_scaling.jou
Log:
Added tet4 ppn=12 files.

Modified: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/plot_scaling.py
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/plot_scaling.py	2012-08-30 05:17:38 UTC (rev 20647)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/plot_scaling.py	2012-08-30 17:53:53 UTC (rev 20648)
@@ -21,9 +21,10 @@
 import matplotlibext
 
 header = 0.3
-logsDir = "logs_jun26"
+logsDir = "logs_lonestar"
 
-nprocs = [1,2,4,8,16,32,64]
+#nprocs = [1,2,4,8,16,32,64]
+nprocs = [1,2,4,6,12,24,48,96]
 stages = ["Solve",
           "Reform Jacobian",
           "Reform Residual",
@@ -57,7 +58,7 @@
 for c in cells:
     niters[c] = numpy.zeros(len(nprocs), dtype=numpy.float32)
     for ip in xrange(len(nprocs)):
-        modname = "%s_cube_amg_np%03d" % (c.lower(), nprocs[ip])
+        modname = "%s_amg_np%03d" % (c.lower(), nprocs[ip])
         if not os.path.exists("%s/%s.py" % (logsDir, modname)):
             print "Skipping stats for cell %s and %d procs (%s). Log not found." %\
                 (c, nprocs[ip], modname)
@@ -77,7 +78,7 @@
                 data[c][s][ip] = 0
 
         # Get number of iterations from ASCII log
-        logname = "%s/%s_cube_amg_np%03d.log" % (logsDir, c.lower(), nprocs[ip])
+        logname = "%s/%s_amg_np%03d.log" % (logsDir, c.lower(), nprocs[ip])
         with open(logname, "r") as fin:
             for line in fin:
                 refields = re.search("Linear solve converged due to \w+ iterations ([0-9]+)", line)

Modified: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/run_scaling.py
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/run_scaling.py	2012-08-30 05:17:38 UTC (rev 20647)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/run_scaling.py	2012-08-30 17:53:53 UTC (rev 20648)
@@ -69,4 +69,4 @@
 
 
 print cmd
-subprocess.call(cmd, shell=True)
+##subprocess.call(cmd, shell=True)

Added: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np006.cfg
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np006.cfg	                        (rev 0)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np006.cfg	2012-08-30 17:53:53 UTC (rev 20648)
@@ -0,0 +1,34 @@
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# mesh_generator
+# ----------------------------------------------------------------------
+[pylithapp.mesh_generator.reader]
+filename = tet4_np006.exo
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+[pylithapp.problem.formulation.output.domain]
+writer.filename = output/tet4_np006.h5
+
+[pylithapp.problem.formulation.output.subdomain]
+writer.filename = output/tet4_np006-groundsurf.h5
+
+[pylithapp.timedependent.interfaces.fault_middle.output]
+writer.filename = output/tet4_np006-fault-middle.h5
+
+[pylithapp.timedependent.interfaces.fault_xpos.output]
+writer.filename = output/tet4_np006-fault-xpos.h5
+
+[pylithapp.timedependent.interfaces.fault_xneg.output]
+writer.filename = output/tet4_np006-fault-xneg.h5
+
+[pylithapp.timedependent.materials.uppercrust.output]
+writer.filename = output/tet4_np006-uppercrust.h5
+
+[pylithapp.timedependent.materials.lowercrust.output]
+writer.filename = output/tet4_np006-lowercrust.h5
+
+
+# End of file

Added: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np012.cfg
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np012.cfg	                        (rev 0)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np012.cfg	2012-08-30 17:53:53 UTC (rev 20648)
@@ -0,0 +1,34 @@
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# mesh_generator
+# ----------------------------------------------------------------------
+[pylithapp.mesh_generator.reader]
+filename = tet4_np012.exo
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+[pylithapp.problem.formulation.output.domain]
+writer.filename = output/tet4_np012.h5
+
+[pylithapp.problem.formulation.output.subdomain]
+writer.filename = output/tet4_np012-groundsurf.h5
+
+[pylithapp.timedependent.interfaces.fault_middle.output]
+writer.filename = output/tet4_np012-fault-middle.h5
+
+[pylithapp.timedependent.interfaces.fault_xpos.output]
+writer.filename = output/tet4_np012-fault-xpos.h5
+
+[pylithapp.timedependent.interfaces.fault_xneg.output]
+writer.filename = output/tet4_np012-fault-xneg.h5
+
+[pylithapp.timedependent.materials.uppercrust.output]
+writer.filename = output/tet4_np012-uppercrust.h5
+
+[pylithapp.timedependent.materials.lowercrust.output]
+writer.filename = output/tet4_np012-lowercrust.h5
+
+
+# End of file

Added: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np024.cfg
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np024.cfg	                        (rev 0)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np024.cfg	2012-08-30 17:53:53 UTC (rev 20648)
@@ -0,0 +1,34 @@
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# mesh_generator
+# ----------------------------------------------------------------------
+[pylithapp.mesh_generator.reader]
+filename = tet4_np024.exo
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+[pylithapp.problem.formulation.output.domain]
+writer.filename = output/tet4_np024.h5
+
+[pylithapp.problem.formulation.output.subdomain]
+writer.filename = output/tet4_np024-groundsurf.h5
+
+[pylithapp.timedependent.interfaces.fault_middle.output]
+writer.filename = output/tet4_np024-fault-middle.h5
+
+[pylithapp.timedependent.interfaces.fault_xpos.output]
+writer.filename = output/tet4_np024-fault-xpos.h5
+
+[pylithapp.timedependent.interfaces.fault_xneg.output]
+writer.filename = output/tet4_np024-fault-xneg.h5
+
+[pylithapp.timedependent.materials.uppercrust.output]
+writer.filename = output/tet4_np024-uppercrust.h5
+
+[pylithapp.timedependent.materials.lowercrust.output]
+writer.filename = output/tet4_np024-lowercrust.h5
+
+
+# End of file

Added: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np048.cfg
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np048.cfg	                        (rev 0)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np048.cfg	2012-08-30 17:53:53 UTC (rev 20648)
@@ -0,0 +1,35 @@
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# mesh_generator
+# ----------------------------------------------------------------------
+[pylithapp.mesh_generator]
+reader.filename = tet4_np006.exo
+refiner = pylith.topology.RefineUniform
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+[pylithapp.problem.formulation.output.domain]
+writer.filename = output/tet4_np048.h5
+
+[pylithapp.problem.formulation.output.subdomain]
+writer.filename = output/tet4_np048-groundsurf.h5
+
+[pylithapp.timedependent.interfaces.fault_middle.output]
+writer.filename = output/tet4_np048-fault-middle.h5
+
+[pylithapp.timedependent.interfaces.fault_xpos.output]
+writer.filename = output/tet4_np048-fault-xpos.h5
+
+[pylithapp.timedependent.interfaces.fault_xneg.output]
+writer.filename = output/tet4_np048-fault-xneg.h5
+
+[pylithapp.timedependent.materials.uppercrust.output]
+writer.filename = output/tet4_np048-uppercrust.h5
+
+[pylithapp.timedependent.materials.lowercrust.output]
+writer.filename = output/tet4_np048-lowercrust.h5
+
+
+# End of file

Added: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np096.cfg
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np096.cfg	                        (rev 0)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_np096.cfg	2012-08-30 17:53:53 UTC (rev 20648)
@@ -0,0 +1,35 @@
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# mesh_generator
+# ----------------------------------------------------------------------
+[pylithapp.mesh_generator]
+reader.filename = tet4_np012.exo
+refiner = pylith.topology.RefineUniform
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+[pylithapp.problem.formulation.output.domain]
+writer.filename = output/tet4_np096.h5
+
+[pylithapp.problem.formulation.output.subdomain]
+writer.filename = output/tet4_np096-groundsurf.h5
+
+[pylithapp.timedependent.interfaces.fault_middle.output]
+writer.filename = output/tet4_np096-fault-middle.h5
+
+[pylithapp.timedependent.interfaces.fault_xpos.output]
+writer.filename = output/tet4_np096-fault-xpos.h5
+
+[pylithapp.timedependent.interfaces.fault_xneg.output]
+writer.filename = output/tet4_np096-fault-xneg.h5
+
+[pylithapp.timedependent.materials.uppercrust.output]
+writer.filename = output/tet4_np096-uppercrust.h5
+
+[pylithapp.timedependent.materials.lowercrust.output]
+writer.filename = output/tet4_np096-lowercrust.h5
+
+
+# End of file

Modified: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_scaling.jou
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_scaling.jou	2012-08-30 05:17:38 UTC (rev 20647)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/tet4_scaling.jou	2012-08-30 17:53:53 UTC (rev 20648)
@@ -21,6 +21,8 @@
 # ----------------------------------------------------------------------
 # Loop to create meshes for scaling benchmark.
 #{dx0=1.163*2000.0*m}
+#{ppn=8}
+
 #{iloop=0}
 #{Loop(6)}
   #{if(iloop==0)}
@@ -28,13 +30,24 @@
   #{else}
     #{dx=dx0/(2.0**iloop)**(1.0/3.0)}
   #{endif}
+  #{if(ppn==12 && iloop>2)} {dx=dx0/(0.75*2.0**iloop)**(1.0/3.0)} {endif}
 
-  #{if(iloop==0)} {meshout="tet4_np001.exo"}  {endif}
-  #{if(iloop==1)} {meshout="tet4_np002.exo"}  {endif}
-  #{if(iloop==2)} {meshout="tet4_np004.exo"}  {endif}
-  #{if(iloop==3)} {meshout="tet4_np008.exo"}  {endif}
-  #{if(iloop==4)} {meshout="tet4_np016.exo"}  {endif}
-  #{if(iloop==5)} {meshout="tet4_np032.exo"}  {endif}
+  #{if(ppn==8)}
+    #{if(iloop==0)} {meshout="tet4_np001.exo"}  {endif}
+    #{if(iloop==1)} {meshout="tet4_np002.exo"}  {endif}
+    #{if(iloop==2)} {meshout="tet4_np004.exo"}  {endif}
+    #{if(iloop==3)} {meshout="tet4_np008.exo"}  {endif}
+    #{if(iloop==4)} {meshout="tet4_np016.exo"}  {endif}
+    #{if(iloop==5)} {meshout="tet4_np032.exo"}  {endif}
+  #{endif}
+  #{if(ppn==12)}
+    #{if(iloop==0)} {meshout="tet4_np001.exo"}  {endif}
+    #{if(iloop==1)} {meshout="tet4_np002.exo"}  {endif}
+    #{if(iloop==2)} {meshout="tet4_np004.exo"}  {endif}
+    #{if(iloop==3)} {meshout="tet4_np006.exo"}  {endif}
+    #{if(iloop==4)} {meshout="tet4_np012.exo"}  {endif}
+    #{if(iloop==5)} {meshout="tet4_np024.exo"}  {endif}
+  #{endif}
 
   delete mesh volume all propagate
   
@@ -55,8 +68,7 @@
   playback 'setbc.jou'
   export mesh {Quote(meshout)} dimension 3 overwrite
 
-  #{tt=iloop+1}
-  #{iloop=tt}
+  #{iloop++}
 #{endloop}
 
 



More information about the CIG-COMMITS mailing list