46
edits
Changes
m
stop_time(); }
→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
}
// 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();