Research Article

Performance of a Code Migration for the Simulation of Supersonic Ejector Flow to SMP, MIC, and GPU Using OpenMP, OpenMP+LEO, and OpenACC Directives

Listing 1

The parallel DO is implemented more efficiently than a general parallel region containing a loop.
!$OMP PARALLEL DO SHARED() &
!$OMP & FIRSTPRIVATE()
ā€ƒā€ƒ
!$OMP END PARALLEL