Deprecated: please see new documentation site.



This page is for the February 4th, 2009 class on Intro to MPI.

Exercise 1 - Write a Program sums the numbers from 1 to N (N should be provided as a command prompt argument) .


Exercise 1 Solution


Exercise 2 - Write a program that approxiamates pi with monte carlo simulations

Exercise 2 Solution

Exercise 3 - Write a program that computes the matvec of:

 [ 1 2 3 4      [ 1
   2 2 3 4   x    2
   3 2 3 4        3
   4 2 3 4]       4 ]
Exercise 3 Solution (in c)

How to Compile and Run Your Exercises Interactivly

Show Solution

Example Batch Job Script

Show Script

To find out your allocation name, execute the command:

[user@machine]$ balance
======================= Allocation information for user =======================
  Proj. Name|       Alloc|  Balance| Deposited|    %Used| Days Left|       End
--------------------------------------------------------------------------------
loni_project|loni_project| 44520.92|  50000.00|    10.96|       246|2009-10-01

Users may direct questions to sys-help@loni.org.

Powered by MediaWiki