Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doku:time [2015/04/02 14:35] – [MPI internal functions] irdoku:time [2015/04/17 11:45] (current) – [Hybrid OMP and MPI] ir
Line 35: Line 35:
  
 === Examples === === Examples ===
-In the following example file, t1=MPI_WTIME() and t2=MPI_WTIME() enclose the region wich should be timed.+In this  {{:doku:mpitime.c|example file}}, t1=MPI_WTIME() and t2=MPI_WTIME() enclose the region wich should be timed.
 There are two possibilities. Either a MPI_Barrier can be set before each time call. Then the time measured is the time needed that all MPI processes are finished. Or t1 and t2 are defined without a barrier, yielding the execution times for the individual processes. There are two possibilities. Either a MPI_Barrier can be set before each time call. Then the time measured is the time needed that all MPI processes are finished. Or t1 and t2 are defined without a barrier, yielding the execution times for the individual processes.
 ==== omp internal calls ==== ==== omp internal calls ====
Line 54: Line 54:
 gives the amount of time that the CPU is busy for a particular task from one call to the next. gives the amount of time that the CPU is busy for a particular task from one call to the next.
  
 +===== Hybrid OMP and MPI ====== 
 +{{ :doku:mpi_omp:hybrid.png?400 |}}
 +{{ :doku:mpi_omp:hybridbarrier.png?400 |}}
 +{{:doku:mpi_omp:hybridtime.c|}}
 +====== Serial codes ====== 
 ==== fortran ==== ==== fortran ====
 <code> <code>
  • doku/time.1427985351.txt.gz
  • Last modified: 2015/04/02 14:35
  • by ir