Skip to content

Commit

Permalink
Update experiment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pearce8 authored Oct 22, 2024
1 parent afb5d9f commit 8adbd0d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions var/exp_repo/experiments/amg2023/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
class Amg2023(Experiment):
# TODO: application.py already defines the name, can we reuse it here?
name = "amg2023"

variant(
"workload",
default="problem1",
values=("problem1", "problem2"),
description="problem1 or problem2",
)

variant(
"programming_model",
default="openmp",
Expand Down Expand Up @@ -64,11 +64,11 @@ def compute_applications_section(self):
experiment_setup["variants"] = {"package_manager": "spack"}

# Number of processes in each dimension
initial_p = [2, 2, 2]
initial_p = [2, 2, 2]

# Per-process size (in zones) in each dimension
initial_n = [80, 80, 80]

# TODO: Please explain the zips here. Can we just declare this as a vector to begin with?
zips_size = "size"
experiment_setup["zips"] = {f"{zips_size}": [nx, ny, nz]}
Expand All @@ -81,19 +81,21 @@ def compute_applications_section(self):
"n_nodes",
"n_threads_per_proc",
]
}
}
]
elif self.spec.satisfies("programming_model=cuda") or self.spec.satisfies("programming_model=rocm"):
elif self.spec.satisfies("programming_model=cuda") or self.spec.satisfies(
"programming_model=rocm"
):
experiment_setup["matrix"] = [f"{zips_size}"]

if self.spec.satisfies("scaling=single-node"):
variables[px] = initial_p[0]
variables[py] = initial_p[1]
variables[pz] = initial_p[2]
variables[nx] = initial_n[0]
variables[ny] = initial_n[1]
variables[nz] = initial_n[2]
else: # A scaling study
else: # A scaling study
input_params = {}
if self.spec.satisfies("scaling=throughput"):
variables[px] = initial_p[0]
Expand Down

0 comments on commit 8adbd0d

Please sign in to comment.