acts: new version 19.3.0 (#31272)
* acts: new version 19.3.0 * acts: new variants +profilecpu, +profilemem
This commit is contained in:
parent
f2789fa5c5
commit
d068b59856
@ -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 @@ def cmake_variant(cmake_label, spack_variant):
|
||||
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 @@ def plugin_cmake_variant(plugin_name, spack_variant):
|
||||
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"),
|
||||
|
Loading…
Reference in New Issue
Block a user