8000 Add option to define OpenBLAS version for manylinux Dockerfile_2_28_aarch64 by davsva01 · Pull Request #150106 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Add option to define OpenBLAS version for manylinux Dockerfile_2_28_aarch64 #150106

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions .ci/docker/common/install_openblas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
set -ex

cd /
git clone https://github.com/OpenMathLib/OpenBLAS.git -b v0.3.29 --depth 1 --shallow-submodules

git clone https://github.com/OpenMathLib/OpenBLAS.git -b "${OPENBLAS_VERSION:-v0.3.29}" --depth 1 --shallow-submodules

OPENBLAS_BUILD_FLAGS="
NUM_THREADS=128
Expand Down
1 change: 1 addition & 0 deletions .ci/docker/manywheel/Dockerfile_2_28_aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ RUN git config --global --add safe.directory "*"

FROM base as openblas
# Install openblas
ARG OPENBLAS_VERSION
ADD ./common/install_openblas.sh install_openblas.sh
RUN bash ./install_openblas.sh && rm install_openblas.sh

Expand Down
3 changes: 3 additions & 0 deletions .ci/docker/manywheel/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fi

MANY_LINUX_VERSION=${MANY_LINUX_VERSION:-}
DOCKERFILE_SUFFIX=${DOCKERFILE_SUFFIX:-}
OPENBLAS_VERSION=${OPENBLAS_VERSION:-}

case ${image} in
manylinux2_28-builder:cpu)
Expand All @@ -40,6 +41,7 @@ case ${image} in
GPU_IMAGE=arm64v8/almalinux:8
DOCKER_GPU_BUILD_ARG=" --build-arg DEVTOOLSET_VERSION=13 --build-arg NINJA_VERSION=1.12.1"
MANY_LINUX_VERSION="2_28_aarch64"
OPENBLAS_VERSION="v0.3.29"
;;
manylinuxcxx11-abi-builder:cpu-cxx11-abi)
TARGET=final
Expand Down Expand Up @@ -109,6 +111,7 @@ tmp_tag=$(basename "$(mktemp -u)" | tr '[:upper:]' '[:lower:]')
DOCKER_BUILDKIT=1 docker build \
${DOCKER_GPU_BUILD_ARG} \
--build-arg "GPU_IMAGE=${GPU_IMAGE}" \
--build-arg "OPENBLAS_VERSION=${OPENBLAS_VERSION}" \
--target "${TARGET}" \
-t "${tmp_tag}" \
$@ \
Expand Down
Loading
0