Open main menu

CDOT Wiki β

Changes

GPU621/The Chapel Programming Language

830 bytes added, 13:29, 4 December 2020
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 ==
46
edits