Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jeff Hammond <jeff.science@gmail.com> Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
- Loading branch information
1 parent
0f502bb
commit 3e1474d
Showing
1 changed file
with
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |