Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion experiments/laghos/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,21 @@ class Laghos(
description="app version",
)

variant(
"gpu-aware-mpi",
default=False,
values=(True, False),
description="Use GPU-aware MPI",
)

maintainers("wdhawkins")

def compute_applications_section(self):
# "zones" defined from mesh file, we are hardcoding it here
self.add_experiment_variable("nx", 2, True)
self.add_experiment_variable("ny", 2, True)
self.add_experiment_variable("nz", 2, True)
self.add_experiment_variable("tf", 0.0033, True)
self.add_experiment_variable("zones", 1024, True)

# resource_count is the number of resources used for this experiment:
Expand Down Expand Up @@ -70,9 +81,19 @@ def compute_applications_section(self):

if self.spec.satisfies("+cuda") or self.spec.satisfies("+rocm"):
self.add_experiment_variable("n_gpus", "{n_resources}", True)
if self.spec.satisfies("+gpu-aware-mpi"):
self.add_experiment_variable("gam", "--gpu-aware-mpi")
else:
self.add_experiment_variable("gam", "--no-gpu-aware-mpi")
else:
self.add_experiment_variable("n_ranks", "{n_resources}", True)

def compute_package_section(self):
self.add_package_spec(self.name, [f"laghos{self.determine_version()} +metis"])
gam = "~gpu-aware-mpi"
if self.spec.satisfies("+cuda") or self.spec.satisfies("+rocm"):
if self.spec.satisfies("+gpu-aware-mpi"):
gam = "+gpu-aware-mpi"
self.add_package_spec(
self.name, [f"laghos{self.determine_version()} +metis {gam}"]
)
self.add_package_spec("hypre", ["[email protected]: +lapack"])
11 changes: 0 additions & 11 deletions repo/caliper/for_aarch64.patch

This file was deleted.

295 changes: 0 additions & 295 deletions repo/caliper/package.py

This file was deleted.

14 changes: 0 additions & 14 deletions repo/caliper/sampler-service-missing-libunwind-include-dir.patch

This file was deleted.

Loading
Loading