forked from rapidsai/cuml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 827 Bytes
/
Dockerfile
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
35
# From: https://github.com/rapidsai/cudf/blob/master/Dockerfile
FROM cudf
ENV CONDA_ENV=cudf
ADD . /cuml/
WORKDIR /cuml
RUN conda env update --name ${CONDA_ENV} \
--file /cuml/conda/environments/cuml_dev_cuda${CUDA_SHORT_VERSION}.yml
# libcuml build/install
RUN source activate ${CONDA_ENV} && \
cd cpp && \
mkdir build && \
cd build && \
cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} && \
make -j && \
make install
# libcumlcomms build/install
RUN source activate ${CONDA_ENV} && \
cd cpp/comms/std && \
mkdir build && \
cd build && \
cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} && \
make -j && \
make install
# cuML build/install
RUN source activate ${CONDA_ENV} && \
cd python && \
python setup.py build_ext --inplace && \
python setup.py install