Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

A Pthreads Wrapper for Fortran 2003

A Pthreads Wrapper for Fortran 2003 A Pthreads Wrapper for Fortran 2003 OMAR AWILE and IVO F. SBALZARINI, ETH Zurich With the advent of multicore processors, numerical and mathematical software relies on parallelism in order to benefit from hardware performance increases. We present the design and use of a Fortran 2003 wrapper for POSIX threads, called forthreads. Forthreads is complete in the sense that is provides native Fortran 2003 interfaces to all pthreads routines where possible. We demonstrate the use and efficiency of forthreads for SIMD parallelism and task parallelism. We present forthreads/MPI implementations that enable hybrid shared-/distributed-memory parallelism in Fortran 2003. Our benchmarks show that forthreads offers performance comparable to that of OpenMP, but better thread control and more freedom. We demonstrate the latter by presenting a multithreaded Fortran 2003 library for POSIX Internet sockets, enabling interactive numerical simulations with runtime control. Categories and Subject Descriptors: D.1.3 [Concurrent Programming]: Parallel Programming; G.4 [Mathematical Software]: Parallel and Vector Implementations General Terms: Algorithms, Languages, Performance, Standardization Additional Key Words and Phrases: POSIX threads, pthreads, Fortran, Fortran 2003, scientific computing, shared-memory programming, mathematical software, parallel particle-mesh, PPM library ACM Reference Format: Awile, O. and Sbalzarini, I. F. 2014. A pthreads wrapper for Fortran 2003. ACM Trans. http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png ACM Transactions on Mathematical Software (TOMS) Association for Computing Machinery

Loading next page...
 
/lp/association-for-computing-machinery/a-pthreads-wrapper-for-fortran-2003-SgGQsQwWPC

References (42)

Publisher
Association for Computing Machinery
Copyright
Copyright © 2014 by ACM Inc.
ISSN
0098-3500
DOI
10.1145/2558889
Publisher site
See Article on Publisher Site

Abstract

A Pthreads Wrapper for Fortran 2003 OMAR AWILE and IVO F. SBALZARINI, ETH Zurich With the advent of multicore processors, numerical and mathematical software relies on parallelism in order to benefit from hardware performance increases. We present the design and use of a Fortran 2003 wrapper for POSIX threads, called forthreads. Forthreads is complete in the sense that is provides native Fortran 2003 interfaces to all pthreads routines where possible. We demonstrate the use and efficiency of forthreads for SIMD parallelism and task parallelism. We present forthreads/MPI implementations that enable hybrid shared-/distributed-memory parallelism in Fortran 2003. Our benchmarks show that forthreads offers performance comparable to that of OpenMP, but better thread control and more freedom. We demonstrate the latter by presenting a multithreaded Fortran 2003 library for POSIX Internet sockets, enabling interactive numerical simulations with runtime control. Categories and Subject Descriptors: D.1.3 [Concurrent Programming]: Parallel Programming; G.4 [Mathematical Software]: Parallel and Vector Implementations General Terms: Algorithms, Languages, Performance, Standardization Additional Key Words and Phrases: POSIX threads, pthreads, Fortran, Fortran 2003, scientific computing, shared-memory programming, mathematical software, parallel particle-mesh, PPM library ACM Reference Format: Awile, O. and Sbalzarini, I. F. 2014. A pthreads wrapper for Fortran 2003. ACM Trans.

Journal

ACM Transactions on Mathematical Software (TOMS)Association for Computing Machinery

Published: Apr 1, 2014

There are no references for this article.