-
Notifications
You must be signed in to change notification settings - Fork 31
/
nways_Dockerfile
46 lines (36 loc) · 1.67 KB
/
nways_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
36
37
38
39
40
41
42
43
44
45
46
# Copyright (c) 2021 NVIDIA Corporation. All rights reserved.
# To build the docker container, run: $ sudo docker build -f nways_Dockerfile -t nways:cf .
# To run: $ sudo docker run --rm -it --runtime nvidia -p 8888:8888 nways:cf
# Finally, open http://localhost:8888/
FROM nvcr.io/nvidia/nvhpc:24.1-devel-cuda_multi-ubuntu22.04
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends python3-pip python3-setuptools nginx zip make build-essential libtbb-dev python3-dev && \
rm -rf /var/lib/apt/lists/* && \
pip3 install --upgrade pip &&\
pip3 install gdown
RUN apt-get update -y
RUN apt-get install -y git nvidia-modprobe
RUN pip3 install jupyterlab
# Install required python packages
RUN pip3 install ipywidgets
############################################
RUN apt-get update -y
RUN git clone https://github.com/NVIDIA/nvbandwidth.git
RUN cd nvbandwidth && apt update && apt install -y libboost-program-options-dev && ./debian_install.sh
RUN cd ..
############################################
RUN apt-get update -y
# TO COPY the data
COPY _basic/openacc/ /labs/openacc
COPY _basic/openmp/ /labs/openmp
COPY _basic/_common/ /labs/_common
COPY _basic/iso/ /labs/iso
COPY _basic/cuda/ /labs/cuda
COPY _basic/_start_nways.ipynb /labs
COPY _basic/memory_coherent/ /labs/memory_coherent
RUN python3 /labs/_common/dataset.py
#################################################
ENV PATH="/usr/local/bin:/opt/anaconda3/bin:/usr/bin:$PATH"
#################################################
WORKDIR /labs
CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/labs