-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 806 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (28 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM docker.array2d.com/library/ubuntu:18.04
# 基础构建环境
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libopenblas-dev \
libyaml-cpp-dev \
libjemalloc-dev \
clang \
git \
wget \
&& rm -rf /var/lib/apt/lists/*
# 安装 Highway SIMD 库
RUN mkdir -p thirdlib && \
cd thirdlib && \
git clone https://github.com/google/highway.git && \
cd highway && \
rm -rf build && mkdir build && cd build && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local && \
make -j$(nproc) && make install && \
cd ../../ && rm -rf thirdlib/highway
ADD cpp-common cpp-common
ADD op-cpu op-cpu
WORKDIR /home/op-cpu
RUN rm -rf build && mkdir build && cd build && \
cmake ..&& \
make -j$(nproc)
CMD ["./build/bin/deepx-executor-cpu"]