From 90192c44d827b5c873643d7b612aa525b67e65e0 Mon Sep 17 00:00:00 2001 From: Andrew Ho Date: Thu, 29 Oct 2026 09:51:50 -0700 Subject: [PATCH 1/5] update Laghos to match Kripke sections --- .../12_laghos/data/laghos_cubic_weak_rocm.csv | 22 ++++++++--------- .../data/laghos_linear_weak_rocm.csv | 24 +++++++++---------- .../data/laghos_quadratic_weak_rocm.csv | 22 ++++++++--------- docs/12_laghos/laghos.rst | 14 +++++++++-- 4 files changed, 46 insertions(+), 36 deletions(-) diff --git a/docs/12_laghos/data/laghos_cubic_weak_rocm.csv b/docs/12_laghos/data/laghos_cubic_weak_rocm.csv index 5f3240a9..4c643e01 100644 --- a/docs/12_laghos/data/laghos_cubic_weak_rocm.csv +++ b/docs/12_laghos/data/laghos_cubic_weak_rocm.csv @@ -1,12 +1,12 @@ Nodes,GPUs,FOM (megadofs x time steps / second / GPU) -1,4,3491.349 -2,8,3400.236 -4,16,3383.685 -8,32,3326.572 -16,64,3338.019 -32,128,3321.906 -64,256,3227.393 -128,512,3277.743 -192,768,3207.836 -256,1024,3243.384 -384,1536,2944.889 +1,4,13965.396,3491.349 +2,8,27201.888,3400.236 +4,16,54138.960,3383.685 +8,32,106450.304,3326.572 +16,64,213633.216,3338.019 +32,128,425203.968,3321.906 +64,256,826212.608,3227.393 +128,512,1678204.416,3277.743 +192,768,2463618.048,3207.836 +256,1024,3321225.216,3243.384 +384,1536,4523349.504,2944.889 diff --git a/docs/12_laghos/data/laghos_linear_weak_rocm.csv b/docs/12_laghos/data/laghos_linear_weak_rocm.csv index b7520164..e6c6e64b 100644 --- a/docs/12_laghos/data/laghos_linear_weak_rocm.csv +++ b/docs/12_laghos/data/laghos_linear_weak_rocm.csv @@ -1,12 +1,12 @@ -Nodes,GPUs,FOM (megadofs x time steps / second / GPU) -1,4,1528.117 -2,8,1531.778 -4,16,1494.634 -8,32,1518.581 -16,64,1477.152 -32,128,1470.303 -64,256,1401.449 -128,512,1450.384 -192,768,1437.548 -256,1024,1413.787 -384,1536,1396.590 +Nodes,GPUs,FOM (megadofs x time steps / second), FOM/GPU +1,4,6112.468,1528.117 +2,8,12254.224,1531.778 +4,16,23914.144,1494.634 +8,32,48594.592,1518.581 +16,64,94537.728,1477.152 +32,128,188198.784,1470.303 +64,256,358770.944,1401.449 +128,512,742596.608,1450.384 +192,768,1104036.864,1437.548 +256,1024,1447717.888,1413.787 +384,1536,2145162.240,1396.590 diff --git a/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv b/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv index 1cd1625d..b6d7966d 100644 --- a/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv +++ b/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv @@ -1,12 +1,12 @@ Nodes,GPUs,FOM (megadofs x time steps / second / GPU) -1,4,2883.744 -2,8,2917.763 -4,16,2632.741 -8,32,2796.624 -16,64,2840.787 -32,128,2849.900 -64,256,2790.639 -128,512,2787.150 -192,768,2790.226 -256,1024,2786.080 -384,1536,2545.050 +1,4,11534.976,2883.744 +2,8,23342.104,2917.763 +4,16,42123.856,2632.741 +8,32,89491.968,2796.624 +16,64,181810.368,2840.787 +32,128,364787.200,2849.900 +64,256,714403.584,2790.639 +128,512,1427020.800,2787.150 +192,768,2142893.568,2790.226 +256,1024,2852945.920,2786.080 +384,1536,3909196.800,2545.050 diff --git a/docs/12_laghos/laghos.rst b/docs/12_laghos/laghos.rst index 547cdcaf..8e70e757 100644 --- a/docs/12_laghos/laghos.rst +++ b/docs/12_laghos/laghos.rst @@ -218,7 +218,7 @@ Running Benchmark runs should aim to maximize the FOM by choosing an appropriate `-epm` (element per mpi rank) value. To ensure domains are well shaped and minimize the impact of MPI communications it is recommended to set `-epm` to either a power of 2, or something of the form `b*2^a`, where b is small and a is large. Note that MFEM/Laghos currently does not support more than 32-bit local indexing so avoid choosing epm values which can result in more than `2^31-1` quadrature points per rank. -You can compute the number of rank local quadrature points by multiplying the epm by the number of quadrature points per zone (tabulated below). +The number of rank local quadrature points can be computed by multiplying the epm by the number of quadrature points per zone (tabulated below). .. table:: Quadrature points per zone. :align: center @@ -317,7 +317,7 @@ Sample CPU and GPU memory usage on a single El Capitan node are shown below. GPU memory use on El Capitan with 4 ranks on a single node per DOF -Weak Scaling on El Capitan +Baseline on El Capitan ========================== Weak scaling performance of Laghos on El Capitan (AMD Epyc + AMD MI300A) for each order is provided as follows. @@ -370,6 +370,16 @@ Timings were captured using Caliper and are presented below. .. image:: plots/laghos_caliper_cubic_weak_rocm.png :align: center +Performance Projection +====================== + +The last row of each table in the above baselines captures the performance on a single Scalable Unit (SU) of El Capitan (384 nodes, 1536 GPUs). + +To project Laghos performance for a Scalable Unit (SU), scale the number of MPI ranks to match the number of GPUs in the SU. There can be one or more MPI rank per GPU as long as each GPU have the same number of ranks. All other configuration options, including the `-epm`, must remain unchanged. + +Any `-epm` value which uses **at least** 10% of the memory available on each node of the SU may be used. +See :ref:`RunningLaghos` for recommendations for selecting an appropriate `-epm` value. + References ========== From bcbd605bef7da234aabc413cef685555850162cd Mon Sep 17 00:00:00 2001 From: Andrew Ho Date: Thu, 29 Oct 2026 10:54:39 -0700 Subject: [PATCH 2/5] fixed headers --- docs/12_laghos/data/laghos_cubic_weak_rocm.csv | 2 +- docs/12_laghos/data/laghos_quadratic_weak_rocm.csv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/12_laghos/data/laghos_cubic_weak_rocm.csv b/docs/12_laghos/data/laghos_cubic_weak_rocm.csv index 4c643e01..d50cd2c7 100644 --- a/docs/12_laghos/data/laghos_cubic_weak_rocm.csv +++ b/docs/12_laghos/data/laghos_cubic_weak_rocm.csv @@ -1,4 +1,4 @@ -Nodes,GPUs,FOM (megadofs x time steps / second / GPU) +Nodes,GPUs,FOM (megadofs x time steps / second), FOM/GPU 1,4,13965.396,3491.349 2,8,27201.888,3400.236 4,16,54138.960,3383.685 diff --git a/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv b/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv index b6d7966d..22005996 100644 --- a/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv +++ b/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv @@ -1,4 +1,4 @@ -Nodes,GPUs,FOM (megadofs x time steps / second / GPU) +Nodes,GPUs,FOM (megadofs x time steps / second), FOM/GPU 1,4,11534.976,2883.744 2,8,23342.104,2917.763 4,16,42123.856,2632.741 From 59219a510e7148f99f2db43b30d6813b3321f17b Mon Sep 17 00:00:00 2001 From: Andrew Ho Date: Thu, 29 Oct 2026 10:57:51 -0700 Subject: [PATCH 3/5] do the python scripts need to be updated? --- docs/12_laghos/laghos_cubic_weak.matplotlib.py | 2 +- docs/12_laghos/laghos_linear_weak.matplotlib.py | 2 +- docs/12_laghos/laghos_quadratic_weak.matplotlib.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/12_laghos/laghos_cubic_weak.matplotlib.py b/docs/12_laghos/laghos_cubic_weak.matplotlib.py index 202edfca..2a4b4d3f 100644 --- a/docs/12_laghos/laghos_cubic_weak.matplotlib.py +++ b/docs/12_laghos/laghos_cubic_weak.matplotlib.py @@ -10,7 +10,7 @@ rows = list(csv.DictReader(stream)) nodes = [int(row["Nodes"]) for row in rows] -fom_per_gpu = [float(row["FOM (megadofs x time steps / second / GPU)"]) for row in rows] +fom_per_gpu = [float(row["FOM/GPU"]) for row in rows] fig, ax = plt.subplots(figsize=(12, 5.6)) ax.plot( diff --git a/docs/12_laghos/laghos_linear_weak.matplotlib.py b/docs/12_laghos/laghos_linear_weak.matplotlib.py index 74695f64..06ccef80 100644 --- a/docs/12_laghos/laghos_linear_weak.matplotlib.py +++ b/docs/12_laghos/laghos_linear_weak.matplotlib.py @@ -10,7 +10,7 @@ rows = list(csv.DictReader(stream)) nodes = [int(row["Nodes"]) for row in rows] -fom_per_gpu = [float(row["FOM (megadofs x time steps / second / GPU)"]) for row in rows] +fom_per_gpu = [float(row["FOM/GPU"]) for row in rows] fig, ax = plt.subplots(figsize=(12, 5.6)) ax.plot( diff --git a/docs/12_laghos/laghos_quadratic_weak.matplotlib.py b/docs/12_laghos/laghos_quadratic_weak.matplotlib.py index c88e8bc2..75c73788 100644 --- a/docs/12_laghos/laghos_quadratic_weak.matplotlib.py +++ b/docs/12_laghos/laghos_quadratic_weak.matplotlib.py @@ -10,7 +10,7 @@ rows = list(csv.DictReader(stream)) nodes = [int(row["Nodes"]) for row in rows] -fom_per_gpu = [float(row["FOM (megadofs x time steps / second / GPU)"]) for row in rows] +fom_per_gpu = [float(row["FOM/GPU"]) for row in rows] fig, ax = plt.subplots(figsize=(12, 5.6)) ax.plot( From 8e78044b1a230c295f4a3e90bc4a7ceb57d5334b Mon Sep 17 00:00:00 2001 From: Andrew Ho Date: Thu, 29 Oct 2026 11:13:07 -0700 Subject: [PATCH 4/5] fix spacing --- docs/12_laghos/data/laghos_cubic_weak_rocm.csv | 2 +- docs/12_laghos/data/laghos_linear_weak_rocm.csv | 2 +- docs/12_laghos/data/laghos_quadratic_weak_rocm.csv | 2 +- docs/12_laghos/laghos_cubic_weak.matplotlib.py | 4 ++-- docs/12_laghos/laghos_linear_weak.matplotlib.py | 4 ++-- docs/12_laghos/laghos_quadratic_weak.matplotlib.py | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/12_laghos/data/laghos_cubic_weak_rocm.csv b/docs/12_laghos/data/laghos_cubic_weak_rocm.csv index d50cd2c7..eee37b77 100644 --- a/docs/12_laghos/data/laghos_cubic_weak_rocm.csv +++ b/docs/12_laghos/data/laghos_cubic_weak_rocm.csv @@ -1,4 +1,4 @@ -Nodes,GPUs,FOM (megadofs x time steps / second), FOM/GPU +Nodes,GPUs,FOM (megadofs x time steps / second),FOM/GPU 1,4,13965.396,3491.349 2,8,27201.888,3400.236 4,16,54138.960,3383.685 diff --git a/docs/12_laghos/data/laghos_linear_weak_rocm.csv b/docs/12_laghos/data/laghos_linear_weak_rocm.csv index e6c6e64b..b0f37025 100644 --- a/docs/12_laghos/data/laghos_linear_weak_rocm.csv +++ b/docs/12_laghos/data/laghos_linear_weak_rocm.csv @@ -1,4 +1,4 @@ -Nodes,GPUs,FOM (megadofs x time steps / second), FOM/GPU +Nodes,GPUs,FOM (megadofs x time steps / second),FOM/GPU 1,4,6112.468,1528.117 2,8,12254.224,1531.778 4,16,23914.144,1494.634 diff --git a/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv b/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv index 22005996..12598fb4 100644 --- a/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv +++ b/docs/12_laghos/data/laghos_quadratic_weak_rocm.csv @@ -1,4 +1,4 @@ -Nodes,GPUs,FOM (megadofs x time steps / second), FOM/GPU +Nodes,GPUs,FOM (megadofs x time steps / second),FOM/GPU 1,4,11534.976,2883.744 2,8,23342.104,2917.763 4,16,42123.856,2632.741 diff --git a/docs/12_laghos/laghos_cubic_weak.matplotlib.py b/docs/12_laghos/laghos_cubic_weak.matplotlib.py index 2a4b4d3f..cf5f18f5 100644 --- a/docs/12_laghos/laghos_cubic_weak.matplotlib.py +++ b/docs/12_laghos/laghos_cubic_weak.matplotlib.py @@ -18,11 +18,11 @@ fom_per_gpu, color="#00ad55", marker="o", - label="FOM", + label="FOM/GPU", ) ax.set_title("Laghos: Weak Q3Q2, epm=524288") ax.set_xlabel("Nodes") -ax.set_ylabel("FOM\n[megadofs x time steps / second / GPU]") +ax.set_ylabel("FOM/GPU\n[megadofs x time steps / second / GPU]") ax.set_xscale("log", base=2) ax.set_xticks(nodes) ax.xaxis.set_major_formatter(FormatStrFormatter("%d")) diff --git a/docs/12_laghos/laghos_linear_weak.matplotlib.py b/docs/12_laghos/laghos_linear_weak.matplotlib.py index 06ccef80..84b9548b 100644 --- a/docs/12_laghos/laghos_linear_weak.matplotlib.py +++ b/docs/12_laghos/laghos_linear_weak.matplotlib.py @@ -18,11 +18,11 @@ fom_per_gpu, color="#00ad55", marker="o", - label="FOM", + label="FOM/GPU", ) ax.set_title("Laghos: Weak Q1Q0, epm=12582912") ax.set_xlabel("Nodes") -ax.set_ylabel("FOM\n[megadofs x time steps / second / GPU]") +ax.set_ylabel("FOM/GPU\n[megadofs x time steps / second / GPU]") ax.set_xscale("log", base=2) ax.set_xticks(nodes) ax.xaxis.set_major_formatter(FormatStrFormatter("%d")) diff --git a/docs/12_laghos/laghos_quadratic_weak.matplotlib.py b/docs/12_laghos/laghos_quadratic_weak.matplotlib.py index 75c73788..9f0c8222 100644 --- a/docs/12_laghos/laghos_quadratic_weak.matplotlib.py +++ b/docs/12_laghos/laghos_quadratic_weak.matplotlib.py @@ -18,11 +18,11 @@ fom_per_gpu, color="#00ad55", marker="o", - label="FOM", + label="FOM/GPU", ) ax.set_title("Laghos: Weak Q2Q1, epm=1835008") ax.set_xlabel("Nodes") -ax.set_ylabel("FOM\n[megadofs x time steps / second / GPU]") +ax.set_ylabel("FOM/GPU\n[megadofs x time steps / second / GPU]") ax.set_xscale("log", base=2) ax.set_xticks(nodes) ax.xaxis.set_major_formatter(FormatStrFormatter("%d")) From 2f3e70d0129d90d2d0fae2adbe70618520dd69e4 Mon Sep 17 00:00:00 2001 From: Andrew Ho Date: Thu, 29 Oct 2026 12:51:56 -0700 Subject: [PATCH 5/5] Update docs/12_laghos/laghos.rst Co-authored-by: Kenny Weiss --- docs/12_laghos/laghos.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/12_laghos/laghos.rst b/docs/12_laghos/laghos.rst index 8e70e757..b3111bd8 100644 --- a/docs/12_laghos/laghos.rst +++ b/docs/12_laghos/laghos.rst @@ -375,7 +375,7 @@ Performance Projection The last row of each table in the above baselines captures the performance on a single Scalable Unit (SU) of El Capitan (384 nodes, 1536 GPUs). -To project Laghos performance for a Scalable Unit (SU), scale the number of MPI ranks to match the number of GPUs in the SU. There can be one or more MPI rank per GPU as long as each GPU have the same number of ranks. All other configuration options, including the `-epm`, must remain unchanged. +To project Laghos performance for a Scalable Unit (SU), scale the number of MPI ranks to match the number of GPUs in the SU. There can be one or more MPI rank per GPU as long as each GPU has the same number of ranks. All other configuration options, including `-epm`, must remain unchanged. Any `-epm` value which uses **at least** 10% of the memory available on each node of the SU may be used. See :ref:`RunningLaghos` for recommendations for selecting an appropriate `-epm` value.