summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorEdgar Leon <800736+eleon@users.noreply.github.com>2021-08-11 00:22:37 -0700
committerGitHub <noreply@github.com>2021-08-11 09:22:37 +0200
commitc3370897cf684df117bc267a256e19fd0956fdf9 (patch)
tree13278378d5912da0ced5cd6da9dbb79d32af5ce5 /var
parentb686b73d6f0035fb1c1661f6fd9f08821064dba5 (diff)
downloadspack-c3370897cf684df117bc267a256e19fd0956fdf9.tar.gz
spack-c3370897cf684df117bc267a256e19fd0956fdf9.tar.bz2
spack-c3370897cf684df117bc267a256e19fd0956fdf9.tar.xz
spack-c3370897cf684df117bc267a256e19fd0956fdf9.zip
mpibind: add new package (#25322)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mpibind/package.py47
1 files changed, 47 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpibind/package.py b/var/spack/repos/builtin/packages/mpibind/package.py
new file mode 100644
index 0000000000..f448d9b952
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mpibind/package.py
@@ -0,0 +1,47 @@
+# 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)
+
+import sys
+
+from spack import *
+
+
+class Mpibind(AutotoolsPackage):
+ """A memory-driven algorithm to map parallel codes
+ to heterogeneous architectures"""
+
+ homepage = "https://github.com/LLNL/mpibind"
+ url = "https://github.com/LLNL/mpibind/archive/refs/tags/v0.5.0.tar.gz"
+ git = "https://github.com/LLNL/mpibind.git"
+
+ maintainers = ['eleon']
+
+ # The build process uses 'git describe --tags' to get the
+ # package version, thus we need 'get_full_repo'
+ version('master', branch='master', get_full_repo=True)
+ version('0.5.0', sha256='51bb27341109aeef121a8630bd56f5551c70ebfd337a459fb70ef9015d97d2b7')
+
+ variant('cuda', default=False,
+ description='Build w/support for NVIDIA GPUs.')
+ variant('rocm', default=False,
+ description='Build w/support for AMD GPUs.')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+ depends_on('pkgconf', type='build')
+
+ depends_on('hwloc@2:+libxml2', type='link')
+ depends_on('hwloc@2:+pci', when=(sys.platform != 'darwin'), type='link')
+ depends_on('hwloc@2:+cuda+nvml', when='+cuda', type='link')
+ depends_on('hwloc@2.4:+rocm+opencl', when='+rocm', type='link')
+
+ def autoreconf(self, spec, prefix):
+ autoreconf('--install', '--verbose', '--force')
+
+ # To build and run the tests, make sure 'libtap' is installed
+ # on the target system and is recognized by pkg-config.
+ # Unfortunately, libtap is not in Spack.