summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Bellentani <l.bellentani@cineca.it>2024-01-12 19:38:46 +0100
committerGitHub <noreply@github.com>2024-01-12 10:38:46 -0800
commitea46c369a05ef70fc975a3884eb99171c705f16d (patch)
treeac579b774bce42c3d3f5911ae023f517b6a078c5
parent8e5885fb31f7306bee67f13f416a8487c52b9fb7 (diff)
downloadspack-ea46c369a05ef70fc975a3884eb99171c705f16d.tar.gz
spack-ea46c369a05ef70fc975a3884eb99171c705f16d.tar.bz2
spack-ea46c369a05ef70fc975a3884eb99171c705f16d.tar.xz
spack-ea46c369a05ef70fc975a3884eb99171c705f16d.zip
add[spec,qe]: enable program time in seconds with clock spec (#42061)
Co-authored-by: Laura Bellentani <lbellen1@login01.leonardo.local>
-rw-r--r--var/spack/repos/builtin/packages/quantum-espresso/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/quantum-espresso/package.py b/var/spack/repos/builtin/packages/quantum-espresso/package.py
index b8991f030e..7522227cff 100644
--- a/var/spack/repos/builtin/packages/quantum-espresso/package.py
+++ b/var/spack/repos/builtin/packages/quantum-espresso/package.py
@@ -105,6 +105,9 @@ class QuantumEspresso(CMakePackage, Package):
with when("+nvtx~cuda"):
depends_on("cuda")
+ # CLOCK variant to display program time in seconds
+ variant("clock", default=False, description="Display program time in seconds")
+
# Apply upstream patches by default. Variant useful for 3rd party
# patches which are incompatible with upstream patches
desc = "Apply recommended upstream patches. May need to be set "
@@ -427,6 +430,7 @@ class CMakeBuilder(spack.build_systems.cmake.CMakeBuilder):
self.define_from_variant("QE_ENABLE_LIBXC", "libxc"),
self.define_from_variant("QE_ENABLE_CUDA", "cuda"),
self.define_from_variant("QE_ENABLE_PROFILE_NVTX", "nvtx"),
+ self.define_from_variant("QE_CLOCK_SECONDS", "clock"),
self.define_from_variant("QE_ENABLE_MPI_GPU_AWARE", "mpigpu"),
]