High performance implementation of the OpenMP tasking feature
Abstract
A method and system for creating and executing tasks within a multithreaded application composed according to the OpenMP application programming interface (API). The method includes generating threads within a parallel region of the application, and setting a counter equal to the quantity of the threads. The method also includes, for each one of the plurality of threads, assigning an implicit task, and executing the implicit task. Further, the method includes, upon encountering a task construct, during execution of the implicit tack, for an explicit asynchronous task generating the explicit asynchronous task, adding the explicit asynchronous task to a first task queue, where the first task queue corresponds to the one of the plurality of threads; and incrementing the counter by one.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system, comprising: a processor; a memory; and a plurality of instructions stored in the memory that, when executed by the processor, perform the steps of: generating a plurality of threads within a parallel region of an application; setting a counter equal to a quantity of the plurality of threads; for each one of the plurality of threads: assigning an implicit task; executing the implicit task; upon encountering a task construct, during execution of the implicit task, for an explicit task: determining that a first task queue of a plurality of task queues is not full; setting an execution m
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (2)
- Frigo, Matteo, et al., "The Implementation of the Cilk-5 Multithreaded Language", http://supertech.csail.mit.edu/papers/cilk5.pdf, Published Jun. 1998 in Proceedings of the 1998 ACM SIGPLAN Conference on Programming Language Design and Implementation, (12 Pages).
- OpenMP Application Program Interface, Version 3.0 May 2008, http://openmp.org/mp-documents/spec30.pdf, Copyright a 1997-2008 OpenMP Architecture Review Board, (326 Pages).