summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-02-22 14:12:35 -0700
committerGitHub <noreply@github.com>2023-02-22 13:12:35 -0800
commit5545fd34c071fd699b1c1d88fe9e335d46668a7c (patch)
tree00afa46fb204e4da866e7120e3c7a54d3751dda8 /var
parent6ebf9f65c0f5642e597bd190e4d6d48f2f813dea (diff)
downloadspack-5545fd34c071fd699b1c1d88fe9e335d46668a7c.tar.gz
spack-5545fd34c071fd699b1c1d88fe9e335d46668a7c.tar.bz2
spack-5545fd34c071fd699b1c1d88fe9e335d46668a7c.tar.xz
spack-5545fd34c071fd699b1c1d88fe9e335d46668a7c.zip
py-mpi4jax: add new package (#35551)
* py-mpi4jax: add new package * [@spackbot] updating style on behalf of adamjstewart --------- Co-authored-by: adamjstewart <adamjstewart@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-mpi4jax/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-mpi4jax/package.py b/var/spack/repos/builtin/packages/py-mpi4jax/package.py
new file mode 100644
index 0000000000..e221830e40
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-mpi4jax/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2023 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 PyMpi4jax(PythonPackage, CudaPackage):
+ """Zero-copy MPI communication of JAX arrays, for turbo-charged HPC applications in
+ Python."""
+
+ homepage = "https://github.com/mpi4jax/mpi4jax"
+ pypi = "mpi4jax/mpi4jax-0.3.11.post3.tar.gz"
+
+ maintainers("bhaveshshrimali")
+
+ version(
+ "0.3.11.post3", sha256="ad4c5840c81ead40b68f4885d705c06eeca22cd4e998790de589c6566db75a75"
+ )
+
+ depends_on("python", type=("build", "link", "run"))
+ depends_on("py-setuptools@42:", type="build")
+ depends_on("py-cython@0.21:", type="build")
+ depends_on("py-mpi4py@3.0.1:", type=("build", "run"))
+ depends_on("py-numpy", type=("build", "run"))
+ depends_on("py-jax@0.3.25:", type=("build", "run"))
+
+ def setup_build_environment(self, env):
+ if "+cuda" in self.spec:
+ env.set("CUDA_PATH", self.spec["cuda"].prefix)