A Pthreads Wrapper for Fortran 2003

A Pthreads Wrapper for Fortran 2003
复制标题

Fortran 2003 的 Pthreads 包装器

DOI:
10.1145/2558889
复制
发表时间:
2014
期刊:
ACM Transactions on Mathematical Software (TOMS)
影响因子:
--
通讯作者:
I. Sbalzarini
I. Sbalzarini
中科院分区:
--
文献类型:
--
作者:
O. Awile;I. Sbalzarini

文献摘要

被引文献

相似文献

随着多核处理器的出现,数值和数学软件依赖于并行性,以便从硬件性能的提高中受益。我们展示了 POSIX 线程的 Fortran 2003 包装器(称为 forthreads)的设计和使用。 Forthreads 是完整的,因为它尽可能为所有 pthreads 例程提供本机 Fortran 2003 接口。我们演示了 forthreads 在 SIMD 并行性和任务并行性中的使用和效率。我们提出了 forthreads/MPI 实现,可在 Fortran 2003 中启用混合共享/分布式内存并行性。我们的基准测试表明,forthreads 提供的性能与 OpenMP 相当,但具有更好的线程控制和更多的自由度。我们通过提供用于 POSIX Internet 套接字的多线程 Fortran 2003 库来演示后者,从而实现具有运行时控制的交互式数值模拟。
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.