-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the DDFastShowerML package (#572)
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack.pkg.k4.key4hep_stack import Ilcsoftpackage | ||
|
||
|
||
class Ddfastshowerml(CMakePackage, Ilcsoftpackage): | ||
"""Package with utilities and plugins that allow to run fast simulation in Geant4 from ML inference within ddsim (DDG4)""" | ||
|
||
homepage = "https://gitlab.desy.de/ilcsoft/ddfastshowerml" | ||
git = "https://gitlab.desy.de/ilcsoft/ddfastshowerml.git" | ||
url = "https://gitlab.desy.de/ilcsoft/ddfastshowerml" | ||
|
||
maintainers = ["jmcarcell"] | ||
|
||
version("main", branch="main") | ||
|
||
variant("inference", values=("onnxruntime", "torch", "both"), default="both") | ||
|
||
depends_on("py-onnxruntime", when="inference=onnxruntime") | ||
depends_on("py-onnxruntime", when="inference=both") | ||
depends_on("py-torch", when="inference=torch") | ||
depends_on("py-torch", when="inference=both") | ||
depends_on("dd4hep") | ||
|
||
def cmake_args(self): | ||
args = [] | ||
args.append( | ||
f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}" | ||
) | ||
return args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters