46
edits
Changes
m
→Code Comparesion to MPI & OpenMP
=== Numerical Libraries ===
== Code Comparesion to MPI & OpenMP == // OpenMP #pragma omp parallel { for(iter = 0 ; iter<niter; iter++) { if(iter == 1) start_time(); #pragma omp 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(); forall .. {} //application loop } stop_time(); }
== Pros and Cons of Using The Chapel ==