|
4 years ago | |
---|---|---|
.. | ||
English | 4 years ago | |
Dockerfile | 4 years ago | |
README.md | 4 years ago | |
Singularity | 4 years ago |
This repository contains mini applications for GPU Bootcamps.
To run this tutorial you will need a machine with NVIDIA GPU.
To start with, you will have to build a Docker or Singularity container.
To build a docker container, run:
sudo docker build -t <imagename>:<tagnumber> .
For instance:
sudo docker build -t myimage:1.0 .
and to run the container, run:
sudo docker run --rm -it --gpus=all -p 8888:8888 myimage:1.0
Then, inside the container launch the Jupyter notebook assigning the port you opened:
jupyter notebook --ip 0.0.0.0 --port 8888 --no-browser --allow-root
Once inside the container, start the lab by clicking on the START_profiling.ipynb
notebook.
To build the singularity container, run:
singularity build miniapp_profiler.simg Singularity
and copy the files to your local machine to make sure changes are stored locally:
singularity run miniapp_profiler.simg cp -rT /labs ~/labs
Then, run the container:
singularity run --nv miniapp_profiler.simg jupyter notebook --notebook-dir=~/labs
Once inside the container, start the lab by clicking on the START_profiling.ipynb
notebook.
Please join OpenACC Slack Channel for questions.