Introduction to Parallel Python Code - OCFP2

OCF Training

This course introduces the fundamental concepts and tools required to write and run parallel code in Python. It is designed for participants who are already familiar with basic Python programming and want to leverage parallelism to improve performance in computational tasks.

Contents
The course covers the following key topics:

  • Introduction to parallelism and concurrency
  • Understanding the Global Interpreter Lock (GIL)
  • Thread-based parallelism with threading
  • Process-based parallelism with multiprocessing
  • Parallel programming using OpenMPI and mpi4py
  • Parallel data processing with joblib and dask.

Format
The course is hands-on and example-driven, with each concept introduced through live coding demonstrations and followed by guided practical exercises. Participants will write small parallel programs and observe performance differences in real time. The course assumes prior experience with Python basics, but no prior exposure to parallel computing is required.

  • Prerequisites
    OCFP1