Deprecated: Assigning the return value of new by reference is deprecated in /u/deptinfo/dalle/www/wiki2/cookbook/sourceblock.php on line 153

Warning: Cannot modify header information - headers already sent by (output started at /u/deptinfo/dalle/www/wiki2/cookbook/sourceblock.php:153) in /u/deptinfo/dalle/www/wiki2/pmwiki.php on line 885
Olivier Dalle's Corner | Songs / My Own SimGrid Tutorial

From Olivier Dalle's Corner

Songs: My Own SimGrid Tutorial

This page is a small starter page about using SimGrid for building the kind of simulation I am interested in: the simulation of very large scale distributed applications, typically P2P applications.

This material is provided as is and subject to change or deletion at any time.

Disclaimer: SimGrid can help you for many different problems. This tutorial aims at being as small and self-conatined as possible and will not discuss other options. See SG’s doc here for more….

This tutorial will follow these steps:

Install the SimGrid software elements

I am a Mac user so I will only describe the install on my MacBookPro (core i7, 8GB ram, MacOS 10.6.8). I will use SimGrid 3.9 (still under development).

I found the following instructions in the SG documentation pages:

1. Install the latest stable gcc version:

$ sudo port install gcc47
... lots of install blurbs ...

2. Configure shell to use previous version. To avopid mixing configs for various software, I like to make specific profile that I load before I work start working with a specific application:

$ cat > ~/.profile_SG << EOF
export CC=gcc-mp-4.7
export CXX=g++-mp-4.7
$ . ~/.profile_SG

3. get SG sources

$ git clone git:// simgrid

4. Prepare SG source files for building in a different directory (build) and to install in /opt/local:

$ mkdir build      # same level a simgrid dir
$ cd build
$ cmake -DCMAKE_C_COMPILER=gcc-mp-4.7  -DCMAKE_INSTALL_PREFIX=/opt/local ../simgrid/

5. Compile and install

$ make
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/local ../simgrid/   # for some reason this got lost
$ sudo make install

Run an SG example From the Distrib

Retrieved from
Page last modified on December 18, 2012, at 02:50 PM CET