Skip to content

FZJ-JSC/tutorial-multi-gpu

Repository files navigation

SC21 Tutorial: Efficient Distributed GPU Programming for Exascale

Coordinates

  • Date: 14 November 2021
  • Occasion: SC21 Tutorial
  • Tutors: Simon Garcia (BSC), Andreas Herten (JSC), Markus Hrywniak (NVIDIA), Jiri Kraus (NVIDIA), Lena Oden (Uni Hagen)

Setup

The tutorial is an interactive tutorial with introducing lectures and practical exercises to apply knowledge. The exercises have been derived from the Jacobi solver implementations available in NVIDIA/multi-gpu-programming-models.

Curriculum:

  1. Lecture: Tutorial Overview, Introduction to System + Onboarding Andreas
  2. Lecture: MPI-Distributed Computing with GPUs Lena
  3. Hands-on: Multi-GPU Parallelization
  4. Lecture: Performance / Debugging Tools Markus
  5. Lecture: Optimization Techniques for Multi-GPU Applications Jiri
  6. Hands-on: Overlap Communication and Computation with MPI
  7. Lecture: Overview of NCCL and NVSHMEN in MPI Lena
  8. Hands-on: Using NCCL and NVSHMEM
  9. Lecture: Device-initiated Communication with NVSHMEM Jiri
  10. Hands-on: Using Device-Initiated Communication with NVSHMEM
  11. Lecture: Conclusion and Outline of Advanced Topics Andreas

Onboarding

The supercomputer used for the exercises is JUWELS Booster, a system located a Jülich Supercomputing Centre (Germany) with about 3700 NVIDIA A100 GPUs.

Visual onboarding instructions can be found in the subfolder of the according lecture, 01b-H-Onboarding/. Here follows the textual description:

  • Register for an account at JuDoor
  • Sign-up for the training2125 project
  • Accept the Usage Agreement of JUWELS
  • Wait for wheels to turn as your information is pushed through the systems (about 15 minutes)
  • Access JUWELS Booster via JSC's Jupyter portal
  • Create a Jupyter instance using LoginNodeBooster and the training2125 allocation on JUWELS
  • When started, launch a browser-based Shell in Jupyter
  • Source the course environment to introduce commands and helper script to environment
    source $PROJECT_training2125/env.sh 

You can also access JSC's facilities via SSH. In that case you need to add your SSH key through JuDoor. You need to restrict access from certain IPs/IP ranges via the from clause, as explained in the documentation. We recommend using Jupyter JSC for its simplicity, especially during such a short day that is the tutorial day.