diff options
author | Wouter Deconinck <wdconinc@gmail.com> | 2022-07-01 15:06:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 13:06:55 -0700 |
commit | d068b59856d8e6a0377ee31f169559989375ff0e (patch) | |
tree | 0ac03e0c6de05fb29889d287a758d1491326cc59 | |
parent | f2789fa5c58ecdf64b9fa0acf382eccf84da3eb1 (diff) | |
download | spack-d068b59856d8e6a0377ee31f169559989375ff0e.tar.gz spack-d068b59856d8e6a0377ee31f169559989375ff0e.tar.bz2 spack-d068b59856d8e6a0377ee31f169559989375ff0e.tar.xz spack-d068b59856d8e6a0377ee31f169559989375ff0e.zip |
acts: new version 19.3.0 (#31272)
* acts: new version 19.3.0
* acts: new variants +profilecpu, +profilemem
-rw-r--r-- | var/spack/repos/builtin/packages/acts/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/acts/package.py b/var/spack/repos/builtin/packages/acts/package.py index 9084011cd5..9c6a4f4205 100644 --- a/var/spack/repos/builtin/packages/acts/package.py +++ b/var/spack/repos/builtin/packages/acts/package.py @@ -39,6 +39,7 @@ class Acts(CMakePackage, CudaPackage): # Supported Acts versions version('main', branch='main') version('master', branch='main', deprecated=True) # For compatibility + version('19.3.0', commit='747053f60254c5ad3aa1fe7b18ae89c19029f4a6', submodules=True) version('19.2.0', commit='adf079e0f7e278837093bf53988da73730804e22', submodules=True) version('19.1.0', commit='82f42a2cc80d4259db251275c09b84ee97a7bd22', submodules=True) version('19.0.0', commit='1ce9c583150060ba8388051685433899713d56d9', submodules=True) @@ -140,6 +141,8 @@ class Acts(CMakePackage, CudaPackage): variant('legacy', default=False, description='Build the Legacy package') variant('onnx', default=False, description="Build ONNX plugin") variant('odd', default=False, description='Build the Open Data Detector', when='@19.1:') + variant('profilecpu', default=False, description='Enable CPU profiling using gperftools', when='@19.3:') + variant('profilemem', default=False, description='Enable memory profiling using gperftools', when='@19.3:') # FIXME: Cannot build SyCL plugin yet as Spack doesn't have SyCL support variant('tgeo', default=False, description='Build the TGeo plugin', when='+identification') @@ -165,6 +168,8 @@ class Acts(CMakePackage, CudaPackage): depends_on('eigen @3.3.7:3.3.99', when='@:15.0') depends_on('geant4', when='+fatras_geant4') depends_on('geant4', when='+geant4') + depends_on('gperftools', when='+profilecpu') + depends_on('gperftools', when='+profilemem') depends_on('hepmc3 @3.2.1:', when='+hepmc3') depends_on('heppdt', when='+hepmc3 @:4.0') depends_on('intel-tbb @2020.1:', when='+examples') @@ -187,6 +192,10 @@ class Acts(CMakePackage, CudaPackage): enabled = spec.satisfies('+' + spack_variant) return "-DACTS_BUILD_{0}={1}".format(cmake_label, enabled) + def enable_cmake_variant(cmake_label, spack_variant): + enabled = spec.satisfies(spack_variant) + return "-DACTS_ENABLE_{0}={1}".format(cmake_label, enabled) + def example_cmake_variant(cmake_label, spack_variant): enabled = spec.satisfies('+examples +' + spack_variant) return "-DACTS_BUILD_EXAMPLES_{0}={1}".format(cmake_label, enabled) @@ -228,6 +237,8 @@ class Acts(CMakePackage, CudaPackage): cmake_variant(legacy_plugin_label, "legacy"), cmake_variant("ODD", "odd"), plugin_cmake_variant("ONNX", "onnx"), + enable_cmake_variant("CPU_PROFILING", "profilecpu"), + enable_cmake_variant("MEMORY_PROFILING", "profilemem"), example_cmake_variant("PYTHIA8", "pythia8"), example_cmake_variant("PYTHON_BINDINGS", "python"), plugin_cmake_variant("TGEO", "tgeo"), |