Hands-On Exercises for ScaLAPACK

The ScaLAPACK Team
August 2010

Introduction

These exercises provide basic and more advanced programming instruction for writing parallel programs calling the BLACS, PBLAS, and ScaLAPACK. A basic knowledge of Fortran, parallel programming with message-passing, and MPI is assumed. Some of the exercises also require an understanding of two-dimensional block cyclic data distribution.

Exercises 1 and 2 give an introduction to parallel programming with the Basic Linear Algebra Communication Subprograms (BLACS). Exercises 3, 4, and 5 provide a range of simplistic to more complex parallel programs calling PBLAS and ScaLAPACK. 

The instructions for the exercises assume that the underlying system is an IBM SP; using up to six processes that do message-passing.  These example programs use MPI as the underlying message-passing layer. These hands-on exercises were prepared in collaboration with the University of Tennessee, based on contributions from A. YarKhan, C. Hastings, S. Blackford, C. Whaley, A. Petitet and O. Marques.

Exercise 1: BLACS - Hello World Example
Exercise 2: BLACS - Pi Example
Exercise 3: PBLAS Example
Exercise 4: ScaLAPACK - Example Program 1
Exercise 5: ScaLAPACK - Example Program 2
Other: A collection of additional exercises and examples.

Download all exercises (tar file)

Addition Resources:


ScaLAPACK Tools Home