forked from flashlight/wav2letter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-CPU
26 lines (23 loc) · 1.19 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
# ==================================================================
# module list
# ------------------------------------------------------------------
# flashlight master (git, CPU backend)
# ==================================================================
FROM wav2letter/wav2letter:cpu-base-latest
RUN mkdir /root/wav2letter
COPY . /root/wav2letter
# ==================================================================
# flashlight https://github.com/facebookresearch/flashlight.git
# ------------------------------------------------------------------
RUN export MKLROOT=/opt/intel/mkl && \
cd /root && git clone --recursive https://github.com/facebookresearch/flashlight.git && \
cd flashlight && mkdir -p build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release -DFLASHLIGHT_BACKEND=CPU && \
make -j8 && make install && \
# ==================================================================
# wav2letter with CPU backend
# ------------------------------------------------------------------
export KENLM_ROOT_DIR=/root/kenlm && \
cd /root/wav2letter && mkdir -p build && \
cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DW2L_CRITERION_BACKEND=CPU && \
make -j8