Project_19
Computer Memory and Arithmetic:
A Look under the Hood


Project 19 considers how computer memory is stored in a hierarchy of locations, including cache memory; how this effects the speed of results, and how a programmer can try to discover and take advantage of the storage pattern on a given computer.

As part of this investigation, we must learn to figure out how to do timings, try to expalin and deal with the variability in timings, and investigate the way the computer tries to anticipate what our next memory request will be.

The case study involves computing an MxN matrix-vector product y=A*x. We consider several alternative ways of computing this result, and we vary the problem sizes as well.

Reference:

  1. Dianne O'Leary,
    Computer Memory and Arithmetic: A Look under the Hood,
    Computing in Science and Engineering,
    Volume 8, Number 3, May/June 2006.
  2. Dianne O'Leary,
    Scientific Computing with Case Studies,
    SIAM, 2008,
    ISBN13: 978-0-898716-66-5,
    LC: QA401.O44.


You can go up one level to the Computational Science Projects page.


Last revised on 10 February 2009.