File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,8 @@ case "$tag" in
333
333
GCC_VERSION=11
334
334
ACL=yes
335
335
VISION=yes
336
+ CONDA_CMAKE=yes
337
+ OPENBLAS=yes
336
338
# snadampal: skipping llvm src build install because the current version
337
339
# from pytorch/llvm:9.0.1 is x86 specific
338
340
SKIP_LLVM_SRC_BUILD_INSTALL=yes
@@ -342,6 +344,8 @@ case "$tag" in
342
344
GCC_VERSION=11
343
345
ACL=yes
344
346
VISION=yes
347
+ CONDA_CMAKE=yes
348
+ OPENBLAS=yes
345
349
# snadampal: skipping llvm src build install because the current version
346
350
# from pytorch/llvm:9.0.1 is x86 specific
347
351
SKIP_LLVM_SRC_BUILD_INSTALL=yes
@@ -428,6 +432,7 @@ docker build \
428
432
--build-arg " XPU_VERSION=${XPU_VERSION} " \
429
433
--build-arg " UNINSTALL_DILL=${UNINSTALL_DILL} " \
430
434
--build-arg " ACL=${ACL:- } " \
435
+ --build-arg " OPENBLAS=${OPENBLAS:- } " \
431
436
--build-arg " SKIP_SCCACHE_INSTALL=${SKIP_SCCACHE_INSTALL:- } " \
432
437
--build-arg " SKIP_LLVM_SRC_BUILD_INSTALL=${SKIP_LLVM_SRC_BUILD_INSTALL:- } " \
433
438
-f $( dirname ${DOCKERFILE} ) /Dockerfile \
Original file line number Diff line number Diff line change 4
4
set -ex
5
5
6
6
cd /
7
- git clone https://github.com/OpenMathLib/OpenBLAS.git -b " ${OPENBLAS_VERSION:- v0.3.29 } " --depth 1 --shallow-submodules
7
+ git clone https://github.com/OpenMathLib/OpenBLAS.git -b " ${OPENBLAS_VERSION:- v0.3.30 } " --depth 1 --shallow-submodules
8
8
9
+ OPENBLAS_CHECKOUT_DIR=" OpenBLAS"
9
10
OPENBLAS_BUILD_FLAGS="
10
11
NUM_THREADS=128
11
12
USE_OPENMP=1
12
13
NO_SHARED=0
13
14
DYNAMIC_ARCH=1
14
15
TARGET=ARMV8
15
16
CFLAGS=-O3
17
+ BUILD_BFLOAT16=1
16
18
"
17
19
18
- OPENBLAS_CHECKOUT_DIR=" OpenBLAS"
19
-
20
20
make -j8 ${OPENBLAS_BUILD_FLAGS} -C ${OPENBLAS_CHECKOUT_DIR}
21
21
make -j8 ${OPENBLAS_BUILD_FLAGS} install -C ${OPENBLAS_CHECKOUT_DIR}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ case ${image} in
41
41
GPU_IMAGE=arm64v8/almalinux:8
42
42
DOCKER_GPU_BUILD_ARG=" --build-arg DEVTOOLSET_VERSION=13 --build-arg NINJA_VERSION=1.12.1"
43
43
MANY_LINUX_VERSION=" 2_28_aarch64"
44
- OPENBLAS_VERSION=" v0.3.29 "
44
+ OPENBLAS_VERSION=" v0.3.30 "
45
45
;;
46
46
manylinuxcxx11-abi-builder:cpu-cxx11-abi)
47
47
TARGET=final
Original file line number Diff line number Diff line change @@ -147,6 +147,12 @@ RUN if [ -n "${ACL}" ]; then bash ./install_acl.sh; fi
147
147
RUN rm install_acl.sh
148
148
ENV INSTALLED_ACL ${ACL}
149
149
150
+ ARG OPENBLAS
151
+ COPY ./common/install_openblas.sh install_openblas.sh
152
+ RUN if [ -n "${OPENBLAS}" ]; then bash ./install_openblas.sh; fi
153
+ RUN rm install_openblas.sh
154
+ ENV INSTALLED_OPENBLAS ${OPENBLAS}
155
+
150
156
# Install ccache/sccache (do this last, so we get priority in PATH)
151
157
ARG SKIP_SCCACHE_INSTALL
152
158
COPY ./common/install_cache.sh install_cache.sh
You can’t perform that action at this time.
0 commit comments