summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien G <grasland@lal.in2p3.fr>2021-03-20 10:34:14 +0100
committerGitHub <noreply@github.com>2021-03-20 03:34:14 -0600
commit32f6fdce7c21e7914add2907fac5903b3c75fcd4 (patch)
tree11f35fe507640d80cb1ae9b306cc4b5ce5d373e0
parent6d8f59e6bc1253657146314d6f0ca1d9b5107cde (diff)
downloadspack-32f6fdce7c21e7914add2907fac5903b3c75fcd4.tar.gz
spack-32f6fdce7c21e7914add2907fac5903b3c75fcd4.tar.bz2
spack-32f6fdce7c21e7914add2907fac5903b3c75fcd4.tar.xz
spack-32f6fdce7c21e7914add2907fac5903b3c75fcd4.zip
acts: add v6.00.0 (#22347)
-rw-r--r--var/spack/repos/builtin/packages/acts/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/acts/package.py b/var/spack/repos/builtin/packages/acts/package.py
index 26d43f4e76..2fee7332ae 100644
--- a/var/spack/repos/builtin/packages/acts/package.py
+++ b/var/spack/repos/builtin/packages/acts/package.py
@@ -37,6 +37,7 @@ class Acts(CMakePackage, CudaPackage):
# Supported Acts versions
version('master', branch='master')
+ version('6.00.0', commit='a5cf04acd4b1a2c625e0826189109472a3392558')
version('5.00.0', commit='df77b91a7d37b8db6ed028a4d737014b5ad86bb7')
version('4.01.0', commit='c383bf434ef69939b47e840e0eac0ba632e6af9f')
version('4.00.0', commit='ed64b4b88d366b63adc4a8d1afe5bc97aa5751eb')
@@ -95,12 +96,14 @@ class Acts(CMakePackage, CudaPackage):
variant('examples', default=False, description='Build the examples')
variant('integration_tests', default=False, description='Build the integration tests')
variant('unit_tests', default=False, description='Build the unit tests')
+ variant('log_failure_threshold', default='MAX', description='Log level above which examples should auto-crash')
# Variants that enable / disable Acts plugins
variant('autodiff', default=False, description='Build the auto-differentiation plugin')
variant('dd4hep', default=False, description='Build the DD4hep plugin')
variant('digitization', default=False, description='Build the geometric digitization plugin')
variant('fatras', default=False, description='Build the FAst TRAcking Simulation package')
+ variant('fatras_geant4', default=False, description='Build Geant4 Fatras package')
variant('identification', default=False, description='Build the Identification plugin')
variant('json', default=False, description='Build the Json plugin')
variant('legacy', default=False, description='Build the Legacy package')
@@ -121,11 +124,12 @@ class Acts(CMakePackage, CudaPackage):
depends_on('dd4hep @1.11:', when='+dd4hep')
depends_on('dd4hep @1.11: +geant4', when='+dd4hep +geant4')
depends_on('eigen @3.3.7:', type='build')
+ depends_on('geant4', when='+fatras_geant4')
depends_on('geant4', when='+geant4')
depends_on('hepmc3 @3.2.1:', when='+hepmc3')
depends_on('heppdt', when='+hepmc3 @:4.0')
depends_on('intel-tbb @2020.1:', when='+examples')
- depends_on('nlohmann-json @3.2.0:', when='@0.14: +json')
+ depends_on('nlohmann-json @3.9.1:', when='@0.14: +json')
depends_on('pythia8', when='+pythia8')
depends_on('root @6.10: cxxstd=14', when='+tgeo @:0.8.0')
depends_on('root @6.20: cxxstd=17', when='+tgeo @0.8.1:')
@@ -191,6 +195,7 @@ class Acts(CMakePackage, CudaPackage):
example_cmake_variant("HEPMC3", "hepmc3"),
example_cmake_variant("PYTHIA8", "pythia8"),
cmake_variant("FATRAS", "fatras"),
+ cmake_variant("FATRAS_GEANT4", "fatras_geant4"),
plugin_cmake_variant("IDENTIFICATION", "identification"),
cmake_variant(integration_tests_label, "integration_tests"),
plugin_cmake_variant("JSON", "json"),
@@ -199,6 +204,9 @@ class Acts(CMakePackage, CudaPackage):
plugin_cmake_variant("TGEO", "tgeo")
]
+ log_failure_threshold = spec.variants['log_failure_threshold'].value
+ args.append("-DACTS_LOG_FAILURE_THRESHOLD={0}".format(log_failure_threshold))
+
cuda_arch = spec.variants['cuda_arch'].value
if cuda_arch != 'none':
args.append('-DCUDA_FLAGS=-arch=sm_{0}'.format(cuda_arch[0]))