09.06.2013 Views

Il sistema di calcolo ad alte prestazioni del CINECA: evoluzione di ...

Il sistema di calcolo ad alte prestazioni del CINECA: evoluzione di ...

Il sistema di calcolo ad alte prestazioni del CINECA: evoluzione di ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Hybrid pseudo code<br />

call MPI_INIT (ierr)<br />

call MPI_COMM_RANK (…)<br />

call MPI_COMM_SIZE (…)<br />

… some computation and MPI communication<br />

call OMP_SET_NUM_THREADS(4)<br />

!$OMP PARALLEL<br />

!$OMP DO<br />

do i=1,n<br />

… computation<br />

enddo<br />

!$OMP END DO<br />

!$OMP END PARALLEL<br />

… some computation and MPI communication<br />

call MPI_FINALIZE (ierr)<br />

www.cineca.it 19

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

Saved successfully!

Ooh no, something went wrong!