Skip to content

Commit

Permalink
Enable DYNAMIC_ARCH for x64 openblas build
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei committed Jun 12, 2024
1 parent b288af5 commit 78ba7f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/get-ci-image-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Checkout opensearch-build repository
uses: actions/checkout@v3
with:
repository: 'opensearch-project/opensearch-build'
repository: 'junqiu-lei/opensearch-build'
ref: ${{ inputs.build_ref }}
path: 'opensearch-build'
- name: Get ci image version from opensearch-build repository scripts
Expand All @@ -50,7 +50,7 @@ jobs:
TYPE=${{ inputs.type }}
if [[ -z "$PLATFORM" ]]; then
if [[ "$PRODUCT" = "opensearch" ]]; then
PLATFORM="centos7" # Temp measure before al2 deprecation on opensearch for k-NN
PLATFORM="almalinux8" # Temp measure before al2 deprecation on opensearch for k-NN
else
PLATFORM="almalinux8"
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,13 @@ ENV CXX=g++
RUN yum repolist && yum install lapack -y
RUN git clone -b v0.3.27 --single-branch https://github.com/xianyi/OpenBLAS.git && \
cd OpenBLAS && \
make USE_OPENMP=1 FC=gfortran && \
if [ "$(uname -m)" = "x86_64" ]; then \
echo "Machine is x86_64. Adding DYNAMIC_ARCH=1 to openblas make command."; \
make USE_OPENMP=1 FC=gfortran DYNAMIC_ARCH=1; \
else \
echo "Machine is not x86_64. Not adding DYNAMIC_ARCH=1 to openblas make command."; \
make USE_OPENMP=1 FC=gfortran; \
fi && \
make PREFIX=/usr/local install
ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
RUN pip3 install cmake==3.23.3
Expand Down

0 comments on commit 78ba7f6

Please sign in to comment.