X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c48bd278b0adf914de5a934570bd16cfcb99dd55..8ad3be07848a402cc6a571e60ac1ccc02c46ea2b:/docs/source/Tutorial_MPI_Applications.rst diff --git a/docs/source/Tutorial_MPI_Applications.rst b/docs/source/Tutorial_MPI_Applications.rst index 192d40df1c..355464a603 100644 --- a/docs/source/Tutorial_MPI_Applications.rst +++ b/docs/source/Tutorial_MPI_Applications.rst @@ -499,7 +499,7 @@ intensive and take time, while being regular enough not to ruin simulation accuracy. Furthermore there should not be any MPI calls inside such parts of the code. -Use for this part the `gemm_mpi.c +Use for this part the `gemm_mpi.cpp `_ example, which is provided by the `PRACE Codevault repository `_. @@ -507,12 +507,12 @@ example, which is provided by the `PRACE Codevault repository The computing part of this example is the matrix multiplication routine .. literalinclude:: /tuto_smpi/gemm_mpi.cpp - :language: c + :language: cpp :lines: 4-19 .. code-block:: shell - $ smpicc -O3 gemm_mpi.cpp -o gemm + $ smpicxx -O3 gemm_mpi.cpp -o gemm $ time smpirun -np 16 -platform cluster_crossbar.xml -hostfile cluster_hostfile --cfg=smpi/display-timing:yes --cfg=smpi/running-power:1000000000 ./gemm This should end quite quickly, as the size of each matrix is only 1000x1000.