Skip to content

Commit 61d8f46

Browse files
JamesJames
James
authored and
James
committed
added singularity def file and fixed typos
1 parent 7040a27 commit 61d8f46

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

Deployment_Guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ For instance:
3838
4. Now, open the jupyter lab in browser: http://localhost:8888, and start working on the lab by clicking on the `_start_nways.ipynb` notebook
3939

4040

41-
- To build the singularity container, for N-Ways to GPU Programming-C-Fortran, follow the below steps:
41+
- To build the docker container, for N-Ways to GPU Programming-C-Fortran, follow the below steps:
4242

4343
1. `sudo docker build -f nways_Dockerfile -t openhackathons:nways_CFortran .`
4444
2. `sudo docker run --rm -it --gpus=all -p 8888:8888 openhackathons:nways_CFortran`

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The content is structured in multiple options covering the following:
1414
- Lab 2: OpenACC
1515
- Lab 3: OpenMP offloading
1616
- Lab 4: CUDA
17+
- Lab 5: Memory Coherent Architectures
1718

1819
- Option 2: N-Ways to GPU Programming-Python
1920
- NVIDIA® Nsight™ Systems

nways_Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ RUN python3 /labs/_common/dataset.py
4242
ENV PATH="/usr/local/bin:/opt/anaconda3/bin:/usr/bin:$PATH"
4343
#################################################
4444

45-
#ADD nways_labs/ /labs
4645
WORKDIR /labs
4746
CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/labs

nways_Singularity

+20-16
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
# Finally, open http://localhost:8888/
77

88
Bootstrap: docker
9-
FROM nvcr.io/nvidia/nvhpc:24.1-devel-cuda_multi-ubuntu22.04
9+
FROM: nvcr.io/nvidia/nvhpc:24.1-devel-cuda_multi-ubuntu22.04
1010

1111
%environment
1212
export XDG_RUNTIME_DIR=
1313
export PATH="$PATH:/usr/local/bin:/opt/anaconda3/bin:/usr/bin"
14+
export VER=24.1
1415

1516
%post
16-
build_tmp=$(mktemp -d) && cd ${build_tmp}
17-
17+
#build_tmp=$(mktemp -d) && cd ${build_tmp}
18+
. /.singularity.d/env/10-docker*.sh
1819
apt-get -y update
19-
apt-get -y dist-upgrade
20+
#apt-get -y dist-upgrade
2021
DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends \
21-
m4 vim-nox emacs-nox nano zip\
22-
python3-pip python3-setuptools git-core inotify-tools python3-dev \
23-
curl git-lfs \
24-
build-essential libtbb-dev
22+
python3-pip python3-setuptools nginx zip make build-essential libtbb-dev python3-dev\
23+
curl git-lfs
24+
2525
rm -rf /var/lib/apt/cache/*
2626

2727
pip3 install --upgrade pip
@@ -31,19 +31,23 @@ FROM nvcr.io/nvidia/nvhpc:24.1-devel-cuda_multi-ubuntu22.04
3131
pip3 install jupyterlab
3232
pip3 install ipywidgets
3333

34-
apt-get install --no-install-recommends -y build-essential
34+
apt-get update -y
3535

36-
python3 /labs/_common/dataset.py
36+
git clone https://github.com/NVIDIA/nvbandwidth.git
37+
cd nvbandwidth && apt update && apt install -y libboost-program-options-dev && ./debian_install.sh
38+
cd ..
3739

40+
############################################
3841
apt-get update -y
39-
apt-get install --no-install-recommends -y build-essential
4042

41-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
42-
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/anaconda3
43-
rm Miniconda3-latest-Linux-x86_64.sh
43+
python3 /labs/_common/dataset.py
44+
45+
#wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
46+
#bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/anaconda3
47+
#rm Miniconda3-latest-Linux-x86_64.sh
4448

45-
cd /
46-
rm -rf ${build_tmp}
49+
#cd /
50+
#rm -rf ${build_tmp}
4751

4852
%files
4953
_basic/openacc/ /labs/openacc

0 commit comments

Comments
 (0)