Text-only Table of Contents (frame/ no frame)
What is OpenMP Previous Top Next

What is OpenMP?


diagram of serial and parallel threads
c Fortran example
call omp_set_num_threads(nthread) !requests "nthread" threads
!$OMP PARALLEL DO
DO i=1,N
DO j=1,M
.
.
.
END DO
END DO
!$OMP END PARALLEL DO


omp_set_num_threads(nthread); /* requests nthread threads */
#pragma omp parallel for
{
for (i=0; i<n; i++) {
for (j=0; j<m; j++) {
.
.
.
}
}
}






Previous Top Next


what_is_openmp.src  last modified Mar 23, 2009 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College