-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
830353f
commit a110b15
Showing
76 changed files
with
3,031 additions
and
15,520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Helper script for creating run lines for a weak scaling study. | ||
Example: | ||
python3 generate_weak_scaling_runs.py >& run_weak_scaling_study.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Generate runs for a weak scaling run. | ||
# | ||
# This python script can be used to assist in generating a series of run configurations for the UMT unstructured box 3d mesh. | ||
# The series of runs are designed to weak scale the problem from 1 to n processors. | ||
# | ||
# node_memory - total memory on a node (gigabytes) | ||
# node_memory_target - % of memory to use on node at max number of MPI ranks. | ||
# memory_tolerance - tolerance for problem memory usage. Will try to generate runs that use the same amount of memory per rank to within X%. | ||
|
||
# Node has 128gb of memory | ||
node_memory = 128 | ||
# Max # mpi ranks to use ( typically equal to # cores on node ). | ||
max_ranks = 36 | ||
# Use 50% of node's memory, within +/- 5%. | ||
node_memory_target = 0.50 | ||
memory_tolerance = 0.05 | ||
|
||
# Number of polar x azimuthal angles to use in the product quadrature set | ||
a = 3 | ||
# Number of energy groups to use | ||
g = 32 | ||
|
||
# upper and lower bound of memory usage to calculate series for, in bytes, per rank | ||
mem_lower_bound = 128 * node_memory_target * (1 - memory_tolerance) * 1024 * 1024 * 1024 / max_ranks | ||
mem_upper_bound = 128 * node_memory_target * (1 + memory_tolerance) * 1024 * 1024 * 1024 / max_ranks | ||
|
||
print ("#---------------------------") | ||
print ("#Angles: 3x3 Groups: 32") | ||
print ("#---------------------------") | ||
for r in range(1,1000): | ||
# 3d mesh | ||
zones = 12*(r**3) | ||
angles = a * a * 8 | ||
totalDOFs = zones * 8 * g * angles | ||
totalMem = totalDOFs * 8 | ||
for p in range(1,max_ranks): | ||
mem_per_rank = totalMem / p | ||
if mem_per_rank >= mem_lower_bound and mem_per_rank <= mem_upper_bound: | ||
DOFsPerRank = int(totalDOFs / p) | ||
if 8*p < zones: | ||
print(f"srun -N1-1 -n {p} --exclusive test_driver -c 1 -G {g} -A {a} -P {a} -r 1 -R {r} -i unstructBox3D.mesh >& run.{a}x{a}_product_quad.{angles}_angles.{g}_groups.{p}_ranks.{DOFsPerRank}_dofs_per_rank.{zones}_zones.{totalDOFs}_total_dofs.log") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#--------------------------- | ||
#Angles: 3x3 Groups: 32 | ||
#--------------------------- | ||
srun -N1-1 -n 2 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 13 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.2_ranks.242970624_dofs_per_rank.26364_zones.485941248_total_dofs.log | ||
srun -N1-1 -n 3 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 15 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.3_ranks.248832000_dofs_per_rank.40500_zones.746496000_total_dofs.log | ||
srun -N1-1 -n 9 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 21 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.9_ranks.227598336_dofs_per_rank.111132_zones.2048385024_total_dofs.log | ||
srun -N1-1 -n 10 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 22 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.10_ranks.235516723_dofs_per_rank.127776_zones.2355167232_total_dofs.log | ||
srun -N1-1 -n 11 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 23 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.11_ranks.244649611_dofs_per_rank.146004_zones.2691145728_total_dofs.log | ||
srun -N1-1 -n 13 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 24 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.13_ranks.235203662_dofs_per_rank.165888_zones.3057647616_total_dofs.log | ||
srun -N1-1 -n 14 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 25 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.14_ranks.246857142_dofs_per_rank.187500_zones.3456000000_total_dofs.log | ||
srun -N1-1 -n 15 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 25 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.15_ranks.230400000_dofs_per_rank.187500_zones.3456000000_total_dofs.log | ||
srun -N1-1 -n 16 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 26 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.16_ranks.242970624_dofs_per_rank.210912_zones.3887529984_total_dofs.log | ||
srun -N1-1 -n 17 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 26 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.17_ranks.228678234_dofs_per_rank.210912_zones.3887529984_total_dofs.log | ||
srun -N1-1 -n 18 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 27 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.18_ranks.241864704_dofs_per_rank.236196_zones.4353564672_total_dofs.log | ||
srun -N1-1 -n 19 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 27 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.19_ranks.229134982_dofs_per_rank.236196_zones.4353564672_total_dofs.log | ||
srun -N1-1 -n 20 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 28 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.20_ranks.242771558_dofs_per_rank.263424_zones.4855431168_total_dofs.log | ||
srun -N1-1 -n 21 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 28 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.21_ranks.231211008_dofs_per_rank.263424_zones.4855431168_total_dofs.log | ||
srun -N1-1 -n 22 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 29 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.22_ranks.245202571_dofs_per_rank.292668_zones.5394456576_total_dofs.log | ||
srun -N1-1 -n 23 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 29 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.23_ranks.234541590_dofs_per_rank.292668_zones.5394456576_total_dofs.log | ||
srun -N1-1 -n 24 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 30 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.24_ranks.248832000_dofs_per_rank.324000_zones.5971968000_total_dofs.log | ||
srun -N1-1 -n 25 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 30 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.25_ranks.238878720_dofs_per_rank.324000_zones.5971968000_total_dofs.log | ||
srun -N1-1 -n 26 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 30 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.26_ranks.229691076_dofs_per_rank.324000_zones.5971968000_total_dofs.log | ||
srun -N1-1 -n 27 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 31 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.27_ranks.244047872_dofs_per_rank.357492_zones.6589292544_total_dofs.log | ||
srun -N1-1 -n 28 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 31 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.28_ranks.235331876_dofs_per_rank.357492_zones.6589292544_total_dofs.log | ||
srun -N1-1 -n 29 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 31 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.29_ranks.227216984_dofs_per_rank.357492_zones.6589292544_total_dofs.log | ||
srun -N1-1 -n 29 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 32 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.29_ranks.249922665_dofs_per_rank.393216_zones.7247757312_total_dofs.log | ||
srun -N1-1 -n 30 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 32 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.30_ranks.241591910_dofs_per_rank.393216_zones.7247757312_total_dofs.log | ||
srun -N1-1 -n 31 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 32 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.31_ranks.233798622_dofs_per_rank.393216_zones.7247757312_total_dofs.log | ||
srun -N1-1 -n 32 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 33 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.32_ranks.248396544_dofs_per_rank.431244_zones.7948689408_total_dofs.log | ||
srun -N1-1 -n 33 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 33 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.33_ranks.240869376_dofs_per_rank.431244_zones.7948689408_total_dofs.log | ||
srun -N1-1 -n 34 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 33 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.34_ranks.233784982_dofs_per_rank.431244_zones.7948689408_total_dofs.log | ||
srun -N1-1 -n 35 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 33 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.35_ranks.227105411_dofs_per_rank.431244_zones.7948689408_total_dofs.log | ||
srun -N1-1 -n 35 --exclusive test_driver -c 1 -G 32 -A 3 -P 3 -r 1 -R 34 -i unstructBox3D.mesh >& run.3x3_product_quad.72_angles.32_groups.35_ranks.248383312_dofs_per_rank.471648_zones.8693415936_total_dofs.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.