encyclopegia.org

DOPIPE

DOPIPE parallelism is a method to perform loop-level parallelism by pipelining the statements in a loop. Pipelined parallelism may exist at different levels of abstraction like loops, functions and algorithmic stages. The extent of parallelism depends upon the programmers' ability to make best use of this concept. It also depends upon factors like identifying and separating the independent tasks and executing them parallelly.

DOPIPE parallelism is a method to perform loop-level parallelism by pipelining the statements in a loop. Pipelined parallelism may exist at different levels of abstraction like loops, functions and algorithmic stages. The extent of parallelism depends upon the programmers' ability to make best use of this concept. It also depends upon factors like identifying and separating the independent tasks and executing them parallelly. for (j=1; j If this code would have been executed sequentially, then the total time consumed would be equal to N * (T F0 + T F1 + T F2 ), where T F0 , T F1 and T F2 denote execution time for functions F0, F1 and F2 respectively per iteration. Now, if we parallelize the loop by pipelining the statements inside the loop in the following manner: for (j=1; j Since, F0 is an independent function, i.e. it does not have any loop-carried dependency (no dependence on j+1 or j-1 iterations). Neither it has any dependency across other statements in the loop. Hence, we can completely separate out this function and run it parallelly using DOALL parallelism. On the other hand, Statements F1 and F2 are dependent (explained above), therefore we split them into two different loops and execute them in a pipelined fashion. We use post(j) and wait(j) to synchronize between F1 and F2 loops. Starting from the first iteration of j , statement F1 gets executed in T F1 time. Meanwhile, F2 is not getting executed since it is waiting for the value z[j] to be produced by F1. When F1 completes its execution for iteration j , it posts the value using post(j) . After waiting for F1's execution, using wait(j) , F2 starts its execution since it has the value z[j] available for use. Also, since F1's execution is not restricted by F2, hence F1 executes j+1 simultaneously. The figure below shows the execution timeline of all the statements. From the figure, we see that the total time to execute F0 is T F0 , since all the iterations of F0 are executed in parallel. While for F1 and F2, the total execution time is equal to N * T F1 + T F2 (considering negligible synchronization time). This is considerably less than the time obtained during sequential execution.

References

No reference rows published for this article.

Cite this article

MLA

"DOPIPE." encyclopegia.org, 2025, https://encyclopegia.org/wiki/dopipe. Accessed 24 November 2026.

Chicago

"DOPIPE." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/dopipe.

APA

encyclopegia.org. (2025). DOPIPE. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/dopipe

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1314127507 · 0.5 · snapshot enwiki-001314127507

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.