Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace non-breaking spaces.
[simgrid.git] / docs / source / Start_Your_Own_Project.rst
index f0ec5c6..6297e2e 100644 (file)
@@ -57,6 +57,15 @@ manually but your project will produce relevant error messages when
 trying to compile on a machine where SimGrid is not installed. Please
 also refer to the file header for more information.
 
+MPI projects should include ``find_package (MPI)`` in CMakeLists.txt. Then, the
+variables ``MPI_C_COMPILER``, ``MPI_CXX_COMPILER`` and ``MPI_Fortran_COMPILER`` should
+point to the full path of smpicc, smpicxx and smpiff respectively. Example:
+
+.. code-block:: shell
+
+   cmake -DMPI_C_COMPILER=/opt/simgrid/bin/smpicc -DMPI_CXX_COMPILER=/opt/simgrid/bin/smpicxx -DMPI_Fortran_COMPILER=/opt/simgrid/bin/smpiff .
+
+
 Building your project with Makefile
 -----------------------------------
 
@@ -126,7 +135,7 @@ If you want to build our Java examples in Eclipse, get the whole
 source code and open the archive on your disk. In Eclipse, select
 the menu "File / Import", and then in the wizard "General / Existing
 Project into Workspace". On the Next page, select the directory
-"examples/java" that you can find in the SimGrid source tree as a root
+"examples/deprecated/java" that you can find in the SimGrid source tree as a root
 directory and finish the creation.
 
 The file ``simgrid.jar`` must be in the root directory of the SimGrid