add[spec,qe]: enable program time in seconds with clock spec (#42061)

Co-authored-by: Laura Bellentani <lbellen1@login01.leonardo.local>
This commit is contained in:
Laura Bellentani 2024-01-12 19:38:46 +01:00 committed by GitHub
parent 8e5885fb31
commit ea46c369a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ def cmake_args(self):
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"),
]