Skip to content

Commit

Permalink
Working dockerfile for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Katliar committed Sep 19, 2024
1 parent b801f40 commit 5e48ee7
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions docker/aarch64.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y \
build-essential clang-18 cmake git libopenblas-dev libboost-exception-dev pkg-config

# Install GTest
RUN apt install -y libgtest-dev
# Install GTest and GMock
RUN apt install -y libgtest-dev libgmock-dev

# Install Google benchmark
RUN apt install -y libbenchmark-dev
Expand All @@ -26,11 +26,21 @@ RUN cd blasfeo && git checkout cc90e146ee9089de518f57dbb736e064bd82394e
COPY docker/blasfeo/aarch64/Makefile.rule blasfeo
RUN cd blasfeo && make -j `nproc` static_library && make install_static

# Install libxsmm
RUN apt install -y libxsmm-dev
# Install xsimd
RUN apt install -y libxsimd-dev

# Install Clang-18
RUN apt install -y clang-18
ENV CC=clang-18
ENV CXX=clang++-18

# Build blast
WORKDIR /blast
COPY bench ./bench
COPY cmake ./cmake
COPY include ./include
COPY test ./test
COPY CMakeLists.txt .
ENV PKG_CONFIG_PATH=/usr/local/lib
RUN mkdir -p blast/build && cd blast/build \
&& cmake CMAKE_CXX_FLAGS "-march=native -DXSIMD_DEFAULT_ARCH='neon64'" .. \
&& make -j `nproc` VERBOSE=1
RUN cmake -B build -DCMAKE_CXX_FLAGS="-march=native -DXSIMD_DEFAULT_ARCH='neon64'" -DBLAST_WITH_TEST=ON -DBLAST_WITH_BENCHMARK=ON .
RUN MAKEFLAGS=-j2 cmake --build build

0 comments on commit 5e48ee7

Please sign in to comment.