forked from flashlight/flashlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-CUDA
25 lines (20 loc) · 929 Bytes
/
Dockerfile-CUDA
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
# ==================================================================
# module list
# ------------------------------------------------------------------
# flashlight master (git, CUDA backend)
# ==================================================================
FROM flml/flashlight:cuda-base-consolidation-latest
# just in case for visibility
ENV MKLROOT="/opt/intel/mkl"
# ==================================================================
# flashlight with CUDA 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_BACKEND=CUDA \
-DFL_BUILD_ALL_APPS=ON && \
make install -j$(nproc)