Open main menu

CDOT Wiki β

Changes

GPU621/The Chapel Programming Language

313 bytes removed, 13:48, 4 December 2020
m
Comparesion to MPI & OpenMP
== Comparesion to MPI & OpenMP ==
// OpenMP #pragma omp parallel { code
for(iter = 0 ; iter<niter; iter++) {
if(iter == 1) start_time();
#pragma omp parallel for
for(…) {} //application loop
}
stop_time(); }
// Corresponding Chapel code coforall t in 0..#numTasks { for iter in 0..#niter { if iter == 1 then start_time(); for … {} //application loop } stop_time(); }  // Better Chapel code
for iter in 0..#niter {
if iter == 1 then start_time();
46
edits