Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit b0c9b56

Browse files
committed
add openblas to docker file
1 parent 0247da4 commit b0c9b56

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

common/install_openblas.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
cd /opt
6+
git clone https://github.com/OpenMathLib/OpenBLAS.git -b v0.3.25 --depth 1 --shallow-submodules
7+
8+
9+
OPENBLAS_BUILD_FLAGS="
10+
NUM_THREADS=128
11+
USE_OPENMP=1
12+
NO_SHARED=0
13+
DYNAMIC_ARCH=1
14+
TARGET=ARMV8
15+
CFLAGS=-O3
16+
"
17+
18+
OPENBLAS_CHECKOUT_DIR="OpenBLAS"
19+
20+
make -j8 ${OPENBLAS_BUILD_FLAGS} ${OPENBLAS_CHECKOUT_DIR}
21+
make -j8 ${OPENBLAS_BUILD_FLAGS} "install" ${OPENBLAS_CHECKOUT_DIR}

manywheel/Dockerfile_cuda_aarch64

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ ARG BASE_CUDA_VERSION
7474
ADD ./common/install_magma.sh install_magma.sh
7575
RUN bash ./install_magma.sh ${BASE_CUDA_VERSION} && rm install_magma.sh
7676

77+
FROM base as openblas
78+
# Install openblas
79+
ADD ./common/install_openblas.sh install_openblas.sh
80+
RUN bash ./install_openblas.sh && rm install_openblas.sh
81+
7782
FROM final as cuda_final
7883
ARG BASE_CUDA_VERSION
7984
RUN rm -rf /usr/local/cuda-${BASE_CUDA_VERSION}

0 commit comments

Comments
 (0)