forked from flashlight/flashlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-CPU
27 lines (22 loc) · 1.03 KB
/
Dockerfile-CPU
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
# ==================================================================
# module list
# ------------------------------------------------------------------
# flashlight master (git, CPU backend)
# ==================================================================
FROM flml/flashlight:cpu-base-consolidation-latest
# just in case for visibility
ENV MKLROOT="/opt/intel/mkl"
# ==================================================================
# flashlight with CPU backend
# ------------------------------------------------------------------
# Setup and build flashlight
RUN mkdir /root/flashlight
COPY . /root/flashlight
RUN cd /root/flashlight && mkdir -p build && \
cd build && cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/flashlight \
-DFL_BUILD_ALL_APPS=ON \
-DFL_BACKEND=CPU \
-DGloo_DIR=/opt/gloo/share/cmake \
-DDNNL_DIR=/opt/onednn/lib/cmake/dnnl && \
make install -j$(nproc)