diff options
author | Andrew W Elble <aweits@rit.edu> | 2022-08-02 16:01:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 20:01:22 +0000 |
commit | e11211eec6c1496317d955aaf29ea59b95912148 (patch) | |
tree | 999a39d40c0aa5907ed3dadd8e3feb1319831756 /var/spack/repos/builtin/packages/py-jax/package.py | |
parent | 4e723b634e3df8f1cc8444b808e19422491cf162 (diff) | |
download | spack-e11211eec6c1496317d955aaf29ea59b95912148.tar.gz spack-e11211eec6c1496317d955aaf29ea59b95912148.tar.bz2 spack-e11211eec6c1496317d955aaf29ea59b95912148.tar.xz spack-e11211eec6c1496317d955aaf29ea59b95912148.zip |
new package: py-alphafold (#27849)
* new package: alphafold
and related dependencies, depends on #27138
* [@spackbot] updating style on behalf of aweits
* fix
Co-authored-by: aweits <aweits@users.noreply.github.com>
Diffstat (limited to 'var/spack/repos/builtin/packages/py-jax/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-jax/package.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-jax/package.py b/var/spack/repos/builtin/packages/py-jax/package.py new file mode 100644 index 0000000000..7511f79701 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-jax/package.py @@ -0,0 +1,42 @@ +# Copyright 2013-2021 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 PyJax(PythonPackage, CudaPackage): + """JAX is Autograd and XLA, brought together for high-performance + machine learning research. With its updated version of Autograd, + JAX can automatically differentiate native Python and NumPy + functions. It can differentiate through loops, branches, + recursion, and closures, and it can take derivatives of + derivatives of derivatives. It supports reverse-mode + differentiation (a.k.a. backpropagation) via grad as well as + forward-mode differentiation, and the two can be composed + arbitrarily to any order.""" + + homepage = "https://github.com/google/jax" + pypi = "jax/jax-0.2.25.tar.gz" + + version("0.2.25", sha256="822e8d1e06257eaa0fdc4c0a0686c4556e9f33647fa2a766755f984786ae7446") + + variant("cuda", default=True, description="CUDA support") + + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-numpy@1.18:", type=("build", "run")) + depends_on("py-absl-py", type=("build", "run")) + depends_on("py-opt-einsum", type=("build", "run")) + depends_on("py-scipy@1.2.1:", type=("build", "run")) + depends_on("py-typing-extensions", type=("build", "run")) + depends_on("py-jaxlib@0.1.69:", type=("build", "run"), when="~cuda") + depends_on("py-jaxlib@0.1.69:+cuda", type=("build", "run"), when="+cuda") + for arch in CudaPackage.cuda_arch_values: + depends_on( + "py-jaxlib@0.1.69:+cuda cuda_arch={0}".format(arch), + type=("build", "run"), + when="cuda_arch={0}".format(arch), + ) |