mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-21 14:35:15 -04:00
Add local Spack package file for MiMiC (MCL)
This commit is contained in:
parent
ca7092adcb
commit
33f1a4553a
3 changed files with 69 additions and 1 deletions
|
|
@ -51,7 +51,6 @@ if [[ "${PROFILE}" == "spack" ]] && [[ "${VERSION}" == "psmp" ]]; then
|
|||
-DCP2K_USE_DLAF=OFF \
|
||||
-DCP2K_USE_LIBXSMM=OFF \
|
||||
-DCP2K_USE_TBLITE=OFF \
|
||||
-DCP2K_USE_MIMIC=OFF \
|
||||
-Werror=dev \
|
||||
.. |& tee ./cmake.log
|
||||
CMAKE_EXIT_CODE=$?
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@ spack:
|
|||
- "libvori@220621"
|
||||
- "libxc@7.0.0"
|
||||
# - "libxsmm@1.17"
|
||||
- "mimic-mcl@3.0.0"
|
||||
- "pexsi@2.0.0"
|
||||
- "plumed@2.9.2"
|
||||
- "py-torch@2.9.0"
|
||||
|
|
|
|||
68
tools/spack/cp2k_dev_repo/packages/mimic_mcl/package.py
Normal file
68
tools/spack/cp2k_dev_repo/packages/mimic_mcl/package.py
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack_repo.builtin.build_systems.cmake import CMakePackage
|
||||
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class MimicMcl(CMakePackage):
|
||||
"""MiMiC is a high-performance framework for multiscale molecular dynamics simulations.
|
||||
MCL, or MiMiC Communication Library, enables communication between external programs
|
||||
coupled through the MiMiC framework. See https://mimic-project.org/ for further information.
|
||||
"""
|
||||
|
||||
homepage = "https://gitlab.com/mimic-project/mcl"
|
||||
url = "https://gitlab.com/mimic-project/mcl/-/archive/3.0.0/mcl-3.0.0.tar.gz"
|
||||
git = "https://gitlab.com/mimic-project/mcl.git"
|
||||
|
||||
license("GPL-3.0", checked_by="mkrack")
|
||||
|
||||
maintainers("mkrack")
|
||||
|
||||
version("3.0.0", sha256="3e740582836fe90e04a693cfc5a219826bcac03217f70ea5570bad6aeafda685")
|
||||
|
||||
variant("cxx_standard", default="17", description="Required CXX standard")
|
||||
variant("cxx_standard_required", default=True, description="Require a specific CXX standard")
|
||||
variant("cxx_extensions", default=False, description="Require CXX extensions")
|
||||
|
||||
variant("build_tests", default=False, description="Build tests")
|
||||
variant("enable_coverage", default=False, description="Enable code coverage report")
|
||||
variant("build_fortran_api", default=True, description="Build Fortran API module")
|
||||
variant("build_shared_libs", default=True, description="Build using shared libraries")
|
||||
variant(
|
||||
"disable_mpi_f08",
|
||||
default=False,
|
||||
description="Disable MPI F08 Fortran module (even if it is available)",
|
||||
)
|
||||
variant(
|
||||
"build_type",
|
||||
default="Release",
|
||||
description="CMake build type",
|
||||
values=("Debug", "Release"),
|
||||
)
|
||||
|
||||
depends_on("c", type="build")
|
||||
depends_on("cxx", type="build")
|
||||
|
||||
depends_on("fortran", when="+build_fortran_api", type="build")
|
||||
|
||||
depends_on("cmake@3.12:", type="build")
|
||||
depends_on("mpi@2.1:", type="build")
|
||||
depends_on("python@3.6:", type="build")
|
||||
|
||||
build_targets = ["mcl"]
|
||||
|
||||
def cmake_args(self):
|
||||
args = [
|
||||
self.define_from_variant("CXX_STANDARD", "cxx_standard"),
|
||||
self.define_from_variant("CXX_STANDARD_REQUIRED", "cxx_standard_required"),
|
||||
self.define_from_variant("CXX_EXTENSIONS", "cxx_extensions"),
|
||||
self.define_from_variant("BUILD_TESTS", "build_tests"),
|
||||
self.define_from_variant("ENABLE_COVERAGE", "enable_coverage"),
|
||||
self.define_from_variant("BUILD_FORTRAN_API", "build_fortran_api"),
|
||||
self.define_from_variant("BUILD_SHARED_LIBS", "build_shared_libs"),
|
||||
self.define_from_variant("DISABLE_MPI_F08", "disable_mpi_f08"),
|
||||
]
|
||||
return args
|
||||
Loading…
Add table
Add a link
Reference in a new issue