-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Caliper support for HPL spack package (untested)
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
|
||
|
@@ -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") | ||
|