Shodor

a national resource for computational science education

HOME BWPEP Shodor Blue Waters


| Day 1 | Day 2 | Day 3 | Day 4 | Day 5 | Day 6 | Day 7 | Day 8 | Day 9 | Day 10 | Other Resources |

Blue Waters 2011 Petascale Institute

Day 02 - Introduction to MPI

Day 2 Undergraduate Petascale Institute

Conceptual Session ( 8:15 - 10:30 )

  • Computational Thinking (RP 45 min)
  • Desert Island (AFG 30 min) and introduction to distributed memory parallelism (HN 60 min)
  • Distributed Memory Overview ( .pdf / .ppt )

Break ( 10:30 - 10:45 )


Practical Session ( 10:45 - 12:15 )

  • An Introduction to the Message Passing Interface (TM 45 min)
    • Point-to-Point communication
    • The 6 Essential Commands (that you can't live without).
    • MPI Basics ( .pdf / .ppt )
    • MPI Hello World ( .c)
  • Roy Campbell - Graduate school information session (45 min)

Lunch ( 12:15 - 1:15 )


Lab Session ( 1:15 - 3:15 )

  • Introductory MPI Examples
    • "Hello World" and "Greetings"
    • Calculating the area under a curve (integration using Riemann sums)
    • Group-built area ( .c)
    • Group-built area - MPI Version ( .c)

Break ( 3:15 - 3:30 )


Review, Resolve, Preview Session ( 3:30 - 5:00 )

  • Debugging with the GNU Debugger (GDB) and printf
  • Preventing and Finding Bugs in Parallel Programs ( pdf)

Dinner ( 5:15 - 6:15 )


Evening Lab Session


Activities


Materials

Daily Resources

  • Bob Wilhelmson's storm supercomputing presentation ( ppt | pdf )
  • Data ( .xls )
  • Taxonomy of Parallelism ( .pdf )
  • Debugging MPI programs ( .pdf )
  • Hello World ( .c / .f90 )
  • Greetings ( .c / .f )
  • MPI Send/Receive ( .pdf )
  • Duck Duck Goose ( .pdf )
  • Scatter Gather example ( .c )

Supplemental Resources

  • Using a local text editor. ( .txt )
  • MPI
    • MPI Error Codes, etc. ( .pdf )
    • The Message Passing Interface (MPI) standard [link]
    • Training Materials for MPI, Advanced MPI, and MPI Performance Topics [link]
    • Tutorial material on MPI available on the web [link]
    • Message Passing Interface Forum [link]
    • MPICH2 manuals [link]
    • OpenMPI manuals [link]
  • GDB

| Day 1 | Day 2 | Day 3 | Day 4 | Day 5 | Day 6 | Day 7 | Day 8 | Day 9 | Day 10 | Other Resources |