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@NumberForm[walltimeDays,{Infinity,1}], + "Cores" -> cores, + "TotalMemory" -> Round[totalMemory/1024]}; + +Export["stats.json", stats];
commits@lists.einsteintoolkit.org