Chapter 9. SPMD and MPMD Using Templates and the MPI

 

“There must be an essentially non-algorithmic ingredient in the action of consciousness.”

 
 --Roger Penrose, The Emperor’s New Mind

Templates support the notion of parameterized programming. The basic idea of parameterized programming is to maximize software reuse by implementing software designs in as general a form as possible. Function templates support generic procedural abstractions and class templates support generic data abstractions. Typically, computer programs are already general solutions to specific problems. A program that adds two numbers is usually ...

Get Parallel and Distributed Programming Using C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.