[Commits] [svn:einsteintoolkit] www/about/gallery/gw150914/ (Rev. 1520)

barry.wardell at gmail.com barry.wardell at gmail.com
Sun Jun 5 17:04:14 CDT 2016


User: barry.wardell
Date: 2016/06/05 05:04 PM

Added:
 /about/gallery/gw150914/
  stats.m

Log:
 gw150914: Add script for computing statistics of simulation

File Changes:

Directory: /about/gallery/gw150914/
===================================

File [added]: stats.m
Delta lines: +26 -0
===================================================================
--- about/gallery/gw150914/stats.m	                        (rev 0)
+++ about/gallery/gw150914/stats.m	2016-06-05 22:04:14 UTC (rev 1520)
@@ -0,0 +1,26 @@
+
+<< SimulationTools`;
+
+simDirs = ReplaceList[$ScriptCommandLine,
+  {___, "--simulations-directory", val_, ___} :> val];
+
+$SimulationPath = Join[simDirs, $SimulationPath];
+
+outDir = Directory[];
+
+sim = "GW150914_28";
+
+walltimeHours = ReadWalltimeHours[sim];
+cores = 128;
+walltimeDays = walltimeHours/24;
+cost = cores walltimeHours;
+processes = cores/8;
+totalMemory = processes*Max[ReadSimulationAverageMemoryUsage[sim]];
+
+stats =
+  {"CostInCoreHours" -> Round[cost],
+    "Runtime" -> ToString at NumberForm[walltimeDays,{Infinity,1}],
+    "Cores" -> cores,
+    "TotalMemory" -> Round[totalMemory/1024]};
+
+Export["stats.json", stats];



More information about the Commits mailing list