13.07.2015 Views

A Brief Introduction to Fortran 77 - Polaris

A Brief Introduction to Fortran 77 - Polaris

A Brief Introduction to Fortran 77 - Polaris

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.2 The PARALLEL directiveThe parallel/end parallel directive pair defines aparallel region and constitutes as parallel construct.An OpenMP program begins execution as a single task, calledthe master thread. When a parallel construct is encountered,the master thread creates a team of threads. The statementsenclosed by the parallel construct, including routines calledfrom within the enclosed construct, are executed in parallel byeach thread in the team.At the end of the parallel construct the threads in the teamsynchronize and only the master thread continues execution.The general form of this construct is:C$omp parallel [parallel-clause[[,]parallel-clause] ...]parallel regionC$omp end parallelThere are several classes of parallel-clauses. Next, we discussthe private(list)clause.© 1998 David A. Padua44 of 118

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!