Getting more from your multicore: exploiting OpenMP from an open-source numerical scripting language

Authors

  • Michael S. Noble

    Corresponding author
    1. Kavli Institute for Astrophysics and Space Research, Massachusetts Institute of Technology, 70 Vassar Street, Room NE80-6081, Cambridge, MA 02139, U.S.A.
    • Kavli Institute for Astrophysics and Space Research, Massachusetts Institute of Technology, 70 Vassar Street, Room NE80-6081, Cambridge, MA 02139, U.S.A.
    Search for more papers by this author

Abstract

We introduce SLIRP, a module generator for the S-Lang numerical scripting language, with a focus on its vectorization capabilities. We demonstrate how both SLIRP and S-Lang were easily adapted to exploit the inherent parallelism of high-level mathematical languages with OpenMP, allowing general users to employ tightly coupled multiprocessors in scriptable research calculations while requiring no special knowledge of parallel programming. Motivated by examples in the ISIS astrophysical modeling and analysis tool, performance figures are presented for several machine and compiler configurations, demonstrating beneficial speedups for real-world operations. Copyright © 2008 John Wiley & Sons, Ltd.

Ancillary