|Authors||K. Hinsen, H. P. Langtangen, O. Skavhaug and Å. Ødegård|
|Title||Using BSP and Python to Simplify Parallel Programming|
|Afilliation||Biomedical Computing, , Scientific Computing|
|Publication Type||Journal Article|
|Year of Publication||2006|
|Journal||Future Generation Computer Systems|
Scientific computing is usually associated with compiled languages for maximum efficiency. However, in a typical application program, only a small part of the code is time-critical and requires the efficiency of a compiled language. It is often advantageous to use interpreted high-level languages for the remaining tasks, adopting a mixed-language approach. This will be demonstrated for Python, an interpreted object-oriented high-level language that is well suited for scientific computing. Particular attention is paid to high-level parallel programming using Python and the BSP model. We explain the basics of BSP and how it differs from other parallel programming tools like MPI. Thereafter we present an application of Python and BSP for solving a partial differential equation from computational science, utilizing high-level design of libraries and mixed-language (Python-C or Python-Fortran) programming.