Skip to content

Commit

Permalink
Add Caliper support for HPL spack package (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
daboehme committed Mar 8, 2024
1 parent 34eb5af commit 98ccbdc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions repo/hpl/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ class Hpl(AutotoolsPackage):

version("2.3", sha256="32c5c17d22330e6f2337b681aded51637fb6008d3f0eb7c277b163fadd612830")
version("2.2", sha256="ac7534163a09e21a5fa763e4e16dfc119bc84043f6e6a807aba666518f8df440")
version("2.3-caliper", git="https://github.com/daboehme/HPL-caliper", branch="master",
preferred=False)

variant("openmp", default=False, description="Enable OpenMP support")
variant("caliper", default=False, description="Enable Caliper support")

depends_on("[email protected]:")
depends_on("blas")

depends_on("caliper", when="+caliper")
depends_on("[email protected]:", when="+caliper")

requires("@2.3-caliper", when="+caliper")

# 2.3 adds support for openmpi 4
conflicts("^[email protected]:", when="@:2.2")

Expand Down Expand Up @@ -123,6 +131,10 @@ def configure_args(self):
amd_ldflags += "-lamdalloc "
config.append("LDFLAGS=" + amd_ldflags)

if "+caliper" in self.spec:
config.append("--with-adiak={0}".format(self.spec["adiak"].prefix))
config.append("--with-caliper={0}".format(self.spec["caliper"].prefix))

return config

@when("@:2.2")
Expand Down

0 comments on commit 98ccbdc

Please sign in to comment.