X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/325f3e852ae3ca8c9e4c2a6d3ba26317c33b0ace..9d6ea602ef05872cef8d285db63abf6d5e836318:/docs/source/Start_Your_Own_Project.rst diff --git a/docs/source/Start_Your_Own_Project.rst b/docs/source/Start_Your_Own_Project.rst index f0ec5c6ddc..6297e2ee85 100644 --- a/docs/source/Start_Your_Own_Project.rst +++ b/docs/source/Start_Your_Own_Project.rst @@ -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