Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install jaxlib from PyPI on linux/arm64 #186

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# 1. Install programs via pip

# Install jaxlib & jax on linux/arm64
# jaxlib, an evofr dependency, does not have official pre-built binaries for
# linux/arm64. A GitHub user has provided them in a fork repo.
# https://github.com/google/jax/issues/7097#issuecomment-1110730040
# Also hard-coding jax version here since it needs to match the jaxlib version
# The minimum version requirement for jaxlib is checked at runtime rather than by pip
# https://jax.readthedocs.io/en/latest/jep/9419-jax-versioning.html#how-are-jax-and-jaxlib-versioned
RUN if [[ "$TARGETPLATFORM" == linux/arm64 ]]; then \
pip3 install https://github.com/yoziru/jax/releases/download/jaxlib-v0.4.6/jaxlib-0.4.6-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl \
jax==0.4.6 \
; \
fi

# Install envdir, which is used by pathogen builds
RUN pip3 install envdir==1.0.1

Expand Down Expand Up @@ -358,9 +345,6 @@ RUN /builder-scripts/download-repo https://github.com/nextstrain/augur "$(/build
&& pip3 install --editable .

# Add evofr for forecasting
# NOTE: if there is an issue with the evofr installation on linux/arm64, make
# sure to check that the jaxlib installation above satisfies the latest evofr
# dependency requirements.
RUN pip3 install evofr

# ———————————————————————————————————————————————————————————————————— #
Expand Down
Loading