Basic HTML version of Foils prepared 14 October 1997

Foil 80 Factor of Two in the Parallel O(N2) Algorithm

From Fox Presentation Fall 1995 CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95/96/97. by Nancy McCracken and Geoffrey C. Fox


Symmetry of force on particles: Fij = -Fji (Newton's Law of Action and Reaction!)
  • only half need to be computed
  • Sequentially this can easily be taken into account for one just does loops with sum over particles i, and then sums for force calculation over particles j <= i and then calculate algebraic form of Fij and then accumulates -- Force on i increments by Fij and Force on j decrements by Fij
Parallel version has two issues -- firstly one cannot use "owner-computes" rule directly and secondly one must worry about load blancing
Assuming for example that processors
assigned with block distribution in
column direction.
  • To calculate the force between
  • 2 particles will take N/Nproc iterations
  • in the longest running processor



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Oct 2 1998