OPENMP 5 GPU offloading, docker image [Mathias] - wszhang/devito GitHub Wiki
Intro
I explain here how to use the docker image I created to run Devito with openmp 5 offloading. This docker image is basically a preinstall of llvm/clang as explained in the wiki Fabio made.
Prerequistes
You will need to have docker and nvidia-docker
Run
you can run the docker image as:
docker run --gpus all -it mloubout/clang-devito:v1.0 /bin/bash
This will start a terminal where you have the necessary compilers installed, as well as a omp_offloading example. Conventional docker options work (such as -v to link local folder) to develop. Devito is not installed inside the docker image but python3 is.
Comments
nvprof does not work inside the docker image due as Nvidia uses system variables and setup to allow hardware profiling. The "best" way to monitor that your GPU is actually being used is through nvtop on the host machine.