From 3e1474dbbb388ce99c94a63dbbbe2bd624c19c45 Mon Sep 17 00:00:00 2001 From: Jeff Hammond Date: Fri, 26 Apr 2024 17:35:33 +0300 Subject: [PATCH] ARMCI-MPI: add new package (#43813) Signed-off-by: Jeff Hammond Co-authored-by: Massimiliano Culpo --- .../builtin/packages/armci-mpi/package.py | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 var/spack/repos/builtin/packages/armci-mpi/package.py diff --git a/var/spack/repos/builtin/packages/armci-mpi/package.py b/var/spack/repos/builtin/packages/armci-mpi/package.py new file mode 100644 index 0000000000..461487c8eb --- /dev/null +++ b/var/spack/repos/builtin/packages/armci-mpi/package.py @@ -0,0 +1,43 @@ +# Copyright 2013-2024 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.package import * + + +class ArmciMpi(AutotoolsPackage): + """ARMCI-MPI is an implementation of the ARMCI library used by Global Arrays. + MPI-3 one-sided communication is used to implement ARMCI. + """ + + homepage = "https://github.com/pmodels/armci-mpi" + url = "https://github.com/pmodels/armci-mpi/archive/refs/tags/v0.4.tar.gz" + + maintainers("jeffhammond") + + license("BSD-3-Clause", checked_by="jeffhammond") + + version("0.4", sha256="bcc3bb189b23bf653dcc69bc469eb86eae5ebc5ad94ab5f83e52ddbdbbebf1b1") + version( + "0.3.1-beta", sha256="f3eaa8f365fb55123ecd9ced401086b0732e37e4df592b27916d71a67ab34fe9" + ) + + variant("shared", default=True, description="Builds a shared version of the library") + variant("progress", default=False, description="Enable asynchronous progress") + + depends_on("autoconf", type="build") + depends_on("automake", type="build") + depends_on("libtool", type="build") + depends_on("m4", type="build") + + depends_on("mpi") + + def autoreconf(self, spec, prefix): + autoreconf("--install", "--verbose", "--force") + + def configure_args(self): + args = ["--enable-g"] + args.extend(self.enable_or_disable("shared")) + args.extend(self.with_or_without("progress")) + return args