summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2024-03-11 10:50:02 -0500
committerGitHub <noreply@github.com>2024-03-11 15:50:02 +0000
commit258c651a8fd4bdcbc5403a5fb7d6ea855bcc3026 (patch)
tree0661d1a09188555c4ce2ed40266be04f2f0b0214
parent43ca6da3462ad11365eb9b0f1b09abef3bb1e024 (diff)
downloadspack-258c651a8fd4bdcbc5403a5fb7d6ea855bcc3026.tar.gz
spack-258c651a8fd4bdcbc5403a5fb7d6ea855bcc3026.tar.bz2
spack-258c651a8fd4bdcbc5403a5fb7d6ea855bcc3026.tar.xz
spack-258c651a8fd4bdcbc5403a5fb7d6ea855bcc3026.zip
geant4: new variant timemory (#43111)
* geant4: new variant timemory * geant4: depends_on timemory@3.2: * geant4: fix style
-rw-r--r--var/spack/repos/builtin/packages/geant4/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/geant4/package.py b/var/spack/repos/builtin/packages/geant4/package.py
index d75fd6f9c7..c17322d34e 100644
--- a/var/spack/repos/builtin/packages/geant4/package.py
+++ b/var/spack/repos/builtin/packages/geant4/package.py
@@ -69,6 +69,7 @@ class Geant4(CMakePackage):
variant("qt", default=False, description="Enable Qt support")
variant("python", default=False, description="Enable Python bindings", when="@10.6.2:11.0")
variant("tbb", default=False, description="Use TBB as a tasking backend", when="@11:")
+ variant("timemory", default=False, description="Use TiMemory for profiling", when="@9.5:")
variant("vtk", default=False, description="Enable VTK support", when="@11:")
depends_on("cmake@3.16:", type="build", when="@11.0.0:")
@@ -100,6 +101,7 @@ class Geant4(CMakePackage):
depends_on("zlib-api")
depends_on("tbb", when="+tbb")
+ depends_on("timemory@3.2:", when="+timemory")
depends_on("vtk@8.2:", when="+vtk")
# Python, with boost requirement dealt with in cxxstd section
@@ -262,6 +264,9 @@ class Geant4(CMakePackage):
# geant4 libs at application runtime
options.append("-DGEANT4_BUILD_TLS_MODEL=global-dynamic")
+ # Profiling
+ options.append(self.define_from_variant("GEANT4_USE_TIMEMORY", "timemory"))
+
# Never install the data with geant4, but point to the dependent
# geant4-data's install directory to correctly set up the
# Geant4Config.cmake values for Geant4_DATASETS .