spack/var/spack/repos/builtin/packages/acts/package.py

414 lines
20 KiB
Python
Raw Normal View History

# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
2019-02-25 18:11:01 +08:00
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
from spack.variant import _ConditionalVariantValues
2019-02-25 18:11:01 +08:00
class Acts(CMakePackage, CudaPackage):
2019-02-25 18:11:01 +08:00
"""
2020-05-07 21:40:31 +08:00
A Common Tracking Software (Acts)
2019-02-25 18:11:01 +08:00
This project contains an experiment-independent set of track reconstruction
tools. The main philosophy is to provide high-level track reconstruction
modules that can be used for any tracking detector. The description of the
tracking detector's geometry is optimized for efficient navigation and
quick extrapolation of tracks. Converters for several common geometry
description languages exist. Having a highly performant, yet largely
customizable implementation of track reconstruction algorithms was a
primary objective for the design of this toolset. Additionally, the
applicability to real-life HEP experiments plays major role in the
development process. Apart from algorithmic code, this project also
provides an event data model for the description of track parameters and
measurements.
Key features of this project include: tracking geometry description which
can be constructed from TGeo, DD4Hep, or GDML input, simple and efficient
event data model, performant and highly flexible algorithms for track
propagation and fitting, basic seed finding algorithms.
"""
start of work to add spack audit packages-https checker (#25670) This PR will add a new audit, specifically for spack package homepage urls (and eventually other kinds I suspect) to see if there is an http address that can be changed to https. Usage is as follows: ```bash $ spack audit packages-https <package> ``` And in list view: ```bash $ spack audit list generic: Generic checks relying on global variables configs: Sanity checks on compilers.yaml Sanity checks on packages.yaml packages: Sanity checks on specs used in directives packages-https: Sanity checks on https checks of package urls, etc. ``` I think it would be unwise to include with packages, because when run for all, since we do requests it takes a long time. I also like the idea of more well scoped checks - likely there will be other addresses for http/https within a package that we eventually check. For now, there are two error cases - one is when an https url is tried but there is some SSL error (or other error that means we cannot update to https): ```bash $ spack audit packages-https zoltan PKG-HTTPS-DIRECTIVES: 1 issue found 1. Error with attempting https for "zoltan": <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'www.cs.sandia.gov'. (_ssl.c:1125)> ``` This is either not fixable, or could be fixed with a change to the url or (better) contacting the site owners to ask about some certificate or similar. The second case is when there is an http that needs to be https, which is a huge issue now, but hopefully not after this spack PR. ```bash $ spack audit packages-https xman Package "xman" uses http but has a valid https endpoint. ``` And then when a package is fixed: ```bash $ spack audit packages-https zlib PKG-HTTPS-DIRECTIVES: 0 issues found. ``` And that's mostly it. :) Signed-off-by: vsoch <vsoch@users.noreply.github.com> Co-authored-by: vsoch <vsoch@users.noreply.github.com>
2021-09-02 14:46:27 +08:00
homepage = "https://acts.web.cern.ch/ACTS/"
git = "https://github.com/acts-project/acts.git"
list_url = "https://github.com/acts-project/acts/releases/"
maintainers("HadrienG2")
2019-02-25 18:11:01 +08:00
tags = ["hep"]
2020-05-07 21:40:31 +08:00
# Supported Acts versions
version("main", branch="main")
version("master", branch="main", deprecated=True) # For compatibility
version("23.2.1", commit="a9fe5167d4d3b6b53b28d3b17060a5f3e380cf3a", submodules=True)
version("23.2.0", commit="bc3120d23a72cfdd0ea8f9a0997f59caf311672b", submodules=True)
version("23.1.0", commit="4479f182a37650a538344f749b967d6f757bdf60", submodules=True)
version("23.0.0", commit="5af1b1b5feb8ca8f4c2c69106a1b9ef612c70d9c", submodules=True)
version("22.0.1", commit="a4ac99dd72828c5eb3fac06e146f3391958fca8c", submodules=True)
version("22.0.0", commit="0fb6f8d2ace65338915451201e9ceb6cee11fb5e", submodules=True)
version("21.1.1", commit="8ae825de246e8e574d05d9eaf05ba4a937c69aa9", submodules=True)
version("21.1.0", commit="3b4b5c741c8541491d496a36b917b00b344d52d1", submodules=True)
version("21.0.0", commit="d8cb0fac3a44e1d44595a481f977df9bd70195fb", submodules=True)
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
version("20.3.0", commit="b1859b322744cb033328fd57d9e74fb5326aa56b", submodules=True)
version("20.2.0", commit="7750c1d24714314e8de716b92ebcd4a92cc4e303", submodules=True)
version("20.1.0", commit="be36226fb1be88d7be7c9b17a1c1f6e76ff0e006", submodules=True)
version("20.0.0", commit="3740e6cdbfb1f75d8e481686acdfa5b16d3c41a3", submodules=True)
version("19.11.0", commit="d56ca2583e55b48e77c853b7c567070d07fc1cae", submodules=True)
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
version("19.10.0", commit="2d07f60eb2280a46af1085600ec8327679bbb630", submodules=True)
version("19.9.0", commit="b655e18929ae0ccb6926d8e217b1b3fc02978d35", submodules=True)
version("19.8.0", commit="7582072dbaa70802264f20b392de4313afd25667", submodules=True)
version("19.7.0", commit="03cf7a3ae74b632b3f89416dc27cc993c9ae4628", submodules=True)
2022-08-08 23:03:04 +08:00
version("19.6.0", commit="333082914e6a51b381abc1cf52856829e3eb7890", submodules=True)
2022-08-08 22:27:13 +08:00
version("19.5.0", commit="bf9f0270eadd8e78d283557b7c9070b80dece4a7", submodules=True)
version("19.4.0", commit="498af243755219486c26d32fb125b7ebf2557166", submodules=True)
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)
version("18.0.0", commit="fe03b5af6ca2b092dec87c4cef77dd552bbbe719", submodules=True)
version("17.1.0", commit="0d9c3a6da022da48d6401e10c273896a1f775a9e", submodules=True)
version("17.0.0", commit="ccbf4c7d4ec3698bac4db9687fab2455a3f9c203", submodules=True)
version("16.0.0", commit="9bd86921155e708189417b5a8019add10fd5b273", submodules=True)
version("15.1.0", commit="a96e6db7de6075e85b6d5346bc89845eeb89b324", submodules=True)
version("15.0.1", commit="b9469b8914f6a1bc47af0998eb7c9e8e20e4debc", submodules=True)
version("15.0.0", commit="0fef9e0831a90e946745390882aac871b211eaac", submodules=True)
version("14.1.0", commit="e883ab6acfe5033509ad1c27e8e2ba980dfa59f6", submodules=True)
version("14.0.0", commit="f902bef81b60133994315c13f7d32d60048c79d8", submodules=True)
version("13.0.0", commit="ad05672e48b693fd37156f1ad62ed57aa82f858c", submodules=True)
version("12.0.1", commit="a80d1ef995d8cdd4190cc09cb249276a3e0161f4", submodules=True)
version("12.0.0", commit="e0aa4e7dcb70df025576e050b6e652a2f736454a", submodules=True)
version("11.0.0", commit="eac3def261f65b343af6d8ce4bc40443ac57b57e")
version("10.0.0", commit="9bfe0b83f277f686408b896a84d2b9b53610f623")
version("9.02.0", commit="c438ee490e94eaf1c854a336ef54f398da637a48")
version("9.01.0", commit="bf8fd4c03dd94f497d8501df510d8f6a48434afd")
version("9.00.1", commit="7d59bc508d898d2cb67ba05a7150a978b9fcc32d")
version("9.00.0", commit="e6e3092bf3a9411aac7c11a24d7586abddb75d59")
version("8.03.0", commit="601c0a18b6738cae81c3e23422cfeb3ec7bddce9")
version("8.02.0", commit="f25cf639915fc2ac65b03882ad3eb11fb037ed00")
version("8.01.0", commit="ccc8c77bbc011f3adc020c565a509815be0ea029")
version("8.00.0", commit="50c972823144c007b406ae12d7ca25a1e0c35532")
version("7.00.0", commit="e663df7ab023bdb5ef206202efc2e54ccb71d416")
version("6.00.0", commit="a5cf04acd4b1a2c625e0826189109472a3392558")
version("5.00.0", commit="df77b91a7d37b8db6ed028a4d737014b5ad86bb7")
version("4.01.0", commit="c383bf434ef69939b47e840e0eac0ba632e6af9f")
version("4.00.0", commit="ed64b4b88d366b63adc4a8d1afe5bc97aa5751eb")
version("3.00.0", commit="e20260fccb469f4253519d3f0ddb3191b7046db3")
version("2.00.0", commit="8708eae2b2ccdf57ab7b451cfbba413daa1fc43c")
version("1.02.1", commit="f6ebeb9a28297ba8c54fd08b700057dd4ff2a311")
version("1.02.0", commit="e69b95acc9a264e63aded7d1714632066e090542")
version("1.01.0", commit="836fddd02c3eff33825833ff97d6abda5b5c20a0")
version("1.00.0", commit="ec9ce0bcdc837f568d42a12ddf3fc9c80db62f5d")
version("0.32.0", commit="a4cedab7e727e1327f2835db29d147cc86b21054")
version("0.31.0", commit="cfbd901555579a2f32f4efe2b76a7048442b42c3")
version("0.30.0", commit="a71ef0a9c742731611645214079884585a92b15e")
version("0.29.0", commit="33aa3e701728112e8908223c4a7fd521907c8ea4")
version("0.28.0", commit="55626b7401eeb93fc562e79bcf385f0ad0ac48bf")
version("0.27.1", commit="8ba3010a532137bc0ab6cf83a38b483cef646a01")
version("0.27.0", commit="f7b1a1c27d5a95d08bb67236ad0e117fcd1c679f")
version("0.26.0", commit="cf542b108b31fcc349fc18fb0466f889e4e42aa6")
version("0.25.2", commit="76bf1f3e4be51d4d27126b473a2caa8d8a72b320")
version("0.25.1", commit="6e8a1ea6d2c7385a78e3e190efb2a8a0c1fa957f")
version("0.25.0", commit="0aca171951a214299e8ff573682b1c5ecec63d42")
version("0.24.0", commit="ef4699c8500bfea59a5fe88bed67fde2f00f0adf")
version("0.23.0", commit="dc443dd7e663bc4d7fb3c1e3f1f75aaf57ffd4e4")
version("0.22.1", commit="ca1b8b1645db6b552f44c48d2ff34c8c29618f3a")
version("0.22.0", commit="2c8228f5843685fc0ae69a8b95dd8fc001139efb")
version("0.21.0", commit="10b719e68ddaca15b28ac25b3daddce8c0d3368d")
version("0.20.0", commit="1d37a849a9c318e8ca4fa541ef8433c1f004637b")
version("0.19.0", commit="408335636486c421c6222a64372250ef12544df6")
version("0.18.0", commit="d58a68cf75b52a5e0f563bc237f09250aa9da80c")
version("0.17.0", commit="0789f654ff484b013fd27e5023cf342785ea8d97")
version("0.16.0", commit="b3d965fe0b8ae335909d79114ef261c6b996773a")
version("0.15.0", commit="267c28f69c561e64369661a6235b03b5a610d6da")
version("0.14.0", commit="38d678fcb205b77d60326eae913fbb1b054acea1")
version("0.13.0", commit="b33f7270ddbbb33050b7ec60b4fa255dc2bfdc88")
version("0.12.1", commit="a8b3d36e7c6cb86487637589e0eff7bbe626054a")
version("0.12.0", commit="f9cda77299606d78c889fb1db2576c1971a271c4")
version("0.11.1", commit="c21196cd6c3ecc6da0f14d0a9ef227a274be584b")
version("0.11.0", commit="22bcea1f19adb0021ca61b843b95cfd2462dd31d")
version("0.10.5", commit="b6f7234ca8f18ee11e57709d019c14bf41cf9b19")
version("0.10.4", commit="42cbc359c209f5cf386e620b5a497192c024655e")
version("0.10.3", commit="a3bb86b79a65b3d2ceb962b60411fd0df4cf274c")
version("0.10.2", commit="64cbf28c862d8b0f95232b00c0e8c38949d5015d")
version("0.10.1", commit="0692dcf7824efbc504fb16f7aa00a50df395adbc")
version("0.10.0", commit="30ef843cb00427f9959b7de4d1b9843413a13f02")
version("0.09.5", commit="12b11fe8b0d428ccb8e92dda7dc809198f828672")
version("0.09.4", commit="e5dd9fbe179201e70347d1a3b9fa1899c226798f")
version("0.09.3", commit="a8f31303ee8720ed2946bfe2d59e81d0f70e307e")
version("0.09.2", commit="4e1f7fa73ffe07457080d787e206bf6466fe1680")
version("0.09.1", commit="69c451035516cb683b8f7bc0bab1a25893e9113d")
version("0.09.0", commit="004888b0a412f5bbaeef2ffaaeaf2aa182511494")
version("0.08.2", commit="c5d7568714e69e7344582b93b8d24e45d6b81bf9")
version("0.08.1", commit="289bdcc320f0b3ff1d792e29e462ec2d3ea15df6")
version("0.08.0", commit="99eedb38f305e3a1cd99d9b4473241b7cd641fa9")
2019-02-25 18:11:01 +08:00
2020-05-07 21:40:31 +08:00
# Variants that affect the core Acts library
variant(
"benchmarks", default=False, description="Build the performance benchmarks", when="@0.16:"
)
_cxxstd_values = (conditional("14", when="@:0.8.1"), "17", conditional("20", when="@24:"))
variant(
"cxxstd",
default="17",
values=_cxxstd_values,
multi=False,
description="Use the specified C++ standard when building.",
)
variant(
"examples",
default=False,
description="Build the examples",
when="@0.23:16 +digitization +fatras +identification +json +tgeo",
)
variant(
"examples",
default=False,
description="Build the examples",
when="@17: +fatras +identification +json +tgeo",
)
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",
)
2019-02-25 18:11:01 +08:00
2020-05-07 21:40:31 +08:00
# Variants that enable / disable Acts plugins
variant("alignment", default=False, description="Build the alignment package", when="@13:")
variant(
"autodiff",
default=False,
description="Build the auto-differentiation plugin",
when="@1.2:",
)
variant("dd4hep", default=False, description="Build the DD4hep plugin", when="+tgeo")
variant(
"digitization",
default=False,
description="Build the geometric digitization plugin",
when="@:16",
)
# FIXME: Can't build Exa.TrkX plugin+examples yet, missing cuGraph dep
variant(
"fatras",
default=False,
description="Build the FAst TRAcking Simulation package",
when="@0.16:",
)
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")
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:",
)
variant("sycl", default=False, description="Build the SyCL plugin", when="@1:")
variant("tgeo", default=False, description="Build the TGeo plugin", when="+identification")
2019-02-25 18:11:01 +08:00
2020-05-07 21:40:31 +08:00
# Variants that only affect Acts examples for now
2022-08-08 22:27:13 +08:00
variant(
"edm4hep",
default=False,
description="Build the EDM4hep examples",
when="@19.4.0: +examples",
)
variant(
"geant4",
default=False,
description="Build the Geant4-based examples",
when="@0.23: +examples",
)
variant(
"hepmc3",
default=False,
description="Build the HepMC3-based examples",
when="@0.23: +examples",
)
variant(
"pythia8",
default=False,
description="Build the Pythia8-based examples",
when="@0.23: +examples",
)
variant(
"python",
default=False,
description="Build python bindings for the examples",
when="@14: +examples",
)
variant("svg", default=False, description="Build ActSVG display plugin", when="@20.1:")
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
variant(
"tbb",
default=True,
description="Build the examples with Threading Building Blocks library",
when="@19.8:19,20.1: +examples",
)
variant("analysis", default=False, description="Build analysis applications in the examples")
2020-05-07 21:40:31 +08:00
# Build dependencies
depends_on("acts-dd4hep", when="@19 +dd4hep")
depends_on("actsvg@0.4.20:", when="@20.1: +svg")
depends_on("actsvg@0.4.28:", when="@23.2: +svg")
depends_on("autodiff @0.6:", when="@17: +autodiff")
depends_on("autodiff @0.5.11:0.5.99", when="@1.2:16 +autodiff")
depends_on("boost @1.62:1.69 +program_options +test", when="@:0.10.3")
depends_on("boost @1.71: +filesystem +program_options +test", when="@0.10.4:")
depends_on("cmake @3.14:", type="build")
depends_on("dd4hep @1.11: +dddetectors +ddrec", when="+dd4hep")
2022-08-08 23:03:04 +08:00
depends_on("dd4hep @1.21: +dddetectors +ddrec", when="@20: +dd4hep")
depends_on("dd4hep +ddg4", when="+dd4hep +geant4 +examples")
2022-08-08 22:27:13 +08:00
depends_on("edm4hep @0.4.1:", when="+edm4hep")
depends_on("eigen @3.3.7:", when="@15.1:")
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("git-lfs", when="@12.0.0:")
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")
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
depends_on("intel-tbb @2020.1:", when="+examples +tbb")
depends_on("nlohmann-json @3.9.1:", when="@0.14: +json")
depends_on("pythia8", when="+pythia8")
depends_on("python", when="+python")
depends_on("python@3.8:", when="+python @19.11:19")
depends_on("python@3.8:", when="+python @21:")
depends_on("py-onnxruntime", when="+onnx")
depends_on("py-pybind11 @2.6.2:", when="+python @18:")
depends_on("py-pytest", when="+python +unit_tests")
depends_on("root @6.10:", when="+tgeo @:0.8.0")
depends_on("root @6.20:", when="+tgeo @0.8.1:")
depends_on("sycl", when="+sycl")
depends_on("vecmem@0.4: +sycl", when="+sycl")
2020-05-07 21:40:31 +08:00
# ACTS imposes requirements on the C++ standard values used by ROOT
for _cxxstd in _cxxstd_values:
if isinstance(_cxxstd, _ConditionalVariantValues):
for _v in _cxxstd:
depends_on(f"root cxxstd={_v.value}", when=f"cxxstd={_v.value} {_v.when} ^root")
else:
depends_on(f"root cxxstd={_cxxstd}", when=f"cxxstd={_cxxstd} ^root")
# ACTS has been using C++17 for a while, which precludes use of old GCC
conflicts("%gcc@:7", when="@0.23:")
2019-02-25 18:11:01 +08:00
def cmake_args(self):
spec = self.spec
def cmake_variant(cmake_label, spack_variant):
enabled = spec.satisfies("+" + spack_variant)
2019-02-25 18:11:01 +08:00
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)
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
def example_cmake_variant(cmake_label, spack_variant, type="BUILD"):
enabled = spec.satisfies("+examples +" + spack_variant)
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
return "-DACTS_{0}_EXAMPLES_{1}={2}".format(type, cmake_label, enabled)
2020-05-07 21:40:31 +08:00
def plugin_label(plugin_name):
if spec.satisfies("@0.33:"):
return "PLUGIN_" + plugin_name
else:
return plugin_name + "_PLUGIN"
def plugin_cmake_variant(plugin_name, spack_variant):
return cmake_variant(plugin_label(plugin_name), spack_variant)
integration_tests_label = "INTEGRATIONTESTS"
2020-05-07 21:40:31 +08:00
unit_tests_label = "UNITTESTS"
legacy_plugin_label = "LEGACY_PLUGIN"
if spec.satisfies("@:0.15"):
integration_tests_label = "INTEGRATION_TESTS"
2020-05-07 21:40:31 +08:00
unit_tests_label = "TESTS"
if spec.satisfies("@:0.32"):
legacy_plugin_label = "LEGACY"
2019-02-25 18:11:01 +08:00
args = [
cmake_variant("ALIGNMENT", "alignment"),
cmake_variant("ANALYSIS_APPS", "analysis"),
2020-10-15 20:13:55 +08:00
plugin_cmake_variant("AUTODIFF", "autodiff"),
cmake_variant("BENCHMARKS", "benchmarks"),
plugin_cmake_variant("CUDA", "cuda"),
plugin_cmake_variant("DD4HEP", "dd4hep"),
2020-05-07 21:40:31 +08:00
example_cmake_variant("DD4HEP", "dd4hep"),
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
plugin_cmake_variant("DIGITIZATION", "digitization"),
2022-08-08 22:27:13 +08:00
example_cmake_variant("EDM4HEP", "edm4hep"),
cmake_variant("EXAMPLES", "examples"),
cmake_variant("FATRAS", "fatras"),
2021-03-20 17:34:14 +08:00
cmake_variant("FATRAS_GEANT4", "fatras_geant4"),
example_cmake_variant("GEANT4", "geant4"),
plugin_cmake_variant("GEANT4", "geant4"),
example_cmake_variant("HEPMC3", "hepmc3"),
plugin_cmake_variant("IDENTIFICATION", "identification"),
2020-05-07 21:40:31 +08:00
cmake_variant(integration_tests_label, "integration_tests"),
plugin_cmake_variant("JSON", "json"),
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"),
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
plugin_cmake_variant("ACTSVG", "svg"),
plugin_cmake_variant("SYCL", "sycl"),
2021-09-24 19:47:25 +08:00
plugin_cmake_variant("TGEO", "tgeo"),
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
example_cmake_variant("TBB", "tbb", "USE"),
cmake_variant(unit_tests_label, "unit_tests"),
2019-02-25 18:11:01 +08:00
]
log_failure_threshold = spec.variants["log_failure_threshold"].value
2021-03-20 17:34:14 +08:00
args.append("-DACTS_LOG_FAILURE_THRESHOLD={0}".format(log_failure_threshold))
2022-08-08 22:27:13 +08:00
if spec.satisfies("@19.4.0:"):
args.append("-DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON")
2021-03-20 17:34:14 +08:00
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
# Use dependencies provided by spack
if spec.satisfies("@20.3:"):
args.append("-DACTS_USE_SYSTEM_LIBS=ON")
else:
if spec.satisfies("+autodiff"):
args.append("-DACTS_USE_SYSTEM_AUTODIFF=ON")
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
if spec.satisfies("@19:20.2 +dd4hep"):
args.append("-DACTS_USE_SYSTEM_ACTSDD4HEP=ON")
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
if spec.satisfies("@0.33: +json"):
args.append("-DACTS_USE_SYSTEM_NLOHMANN_JSON=ON")
elif spec.satisfies("@0.14.0:0.32 +json"):
args.append("-DACTS_USE_BUNDLED_NLOHMANN_JSON=OFF")
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
if spec.satisfies("@18: +python"):
args.append("-DACTS_USE_SYSTEM_PYBIND11=ON")
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
if spec.satisfies("@20.1: +svg"):
args.append("-DACTS_USE_SYSTEM_ACTSVG=ON")
acts: new versions (#32969) * acts: new versions In the 20.x release line, these are the changes, https://github.com/acts-project/acts/compare/v20.0.0...v20.2.0 - `option(ACTS_SETUP_ACTSVG "Build ActSVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_SYSTEM_ACTSVG "Use the ActSVG system library" OFF)` introduced in v20.1.0 - `option(ACTS_BUILD_PLUGIN_ACTSVG "Build SVG display plugin" OFF)` introduced in v20.1.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v20.1.0 - `option(ACTS_EXATRKX_ENABLE_ONNX "Build the Onnx backend for the exatrkx plugin" OFF)` introduced in v20.2.0 - `option(ACTS_EXATRKX_ENABLE_TORCH "Build the torchscript backend for the exatrkx plugin" ON)` introduced in v20.2.0 In the 19.x release line, these are the changes: https://github.com/acts-project/acts/compare/v19.7.0...v19.9.0 - `option(ACTS_USE_EXAMPLES_TBB "Use Threading Building Blocks library in examples" ON)` introduced in v19.8.0 The new build options have not been implemented in this commit but will be implemented next. * acts: new variant svg * actsvg: new package * actsvg: style fixes * acts: new versions 20.3.0 and 19.10.0 * astsvg: depends_on boost googletest * actsvg: new version 0.4.26 (and style fix) Includes fix to build issue when +examples, https://github.com/acts-project/actsvg/pull/23 * acts: new variant tbb when +examples @19.8:19 @20.1: * acts: set ACTS_USE_EXAMPLES_TBB * acts: no need for ACTS_SETUP_ACTSVG * acts: move tbb variant to examples block * acts: ACTS_USE_SYSTEM_ACTSDD4HEP removed in 20.3 * acts: use new ACTS_USE_SYSTEM_LIBS * acts-dd4hep: new version 1.0.1, maintainer handle fixed * acts: simplify variant tbb condition
2022-10-22 19:56:22 +08:00
if spec.satisfies("@14: +vecmem"):
args.append("-DACTS_USE_SYSTEM_VECMEM=ON")
if "+cuda" in spec:
cuda_arch = spec.variants["cuda_arch"].value
if cuda_arch != "none":
args.append("-DCUDA_FLAGS=-arch=sm_{0}".format(cuda_arch[0]))
if "+python" in spec:
python = spec["python"].command.path
args.append("-DPython_EXECUTABLE={0}".format(python))
args.append(self.define_from_variant("CMAKE_CXX_STANDARD", "cxxstd"))
2019-02-25 18:11:01 +08:00
return args