Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a first draft for automatic privatization of global variables for smpi.
authorAugustin Degomme <degomme@idpann.imag.fr>
Fri, 21 Mar 2014 15:38:45 +0000 (16:38 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Fri, 21 Mar 2014 15:40:50 +0000 (16:40 +0100)
commit8e0201e83de6ce9132c74ee5face3e1ef47d4381
tree69fdb2b8a41ae8771d9b2c09eb59df4ee81fdf69
parent232b13fd2102c08d7793560bc02e9c25c3ba2070
Add a first draft for automatic privatization of global variables for smpi.
Activated with --cfg="smpi/privatize_global_variables":yes
This will read executable (using objdump for now), find addresses of .data and .bss segments and for each process (even 0 for now) copy all this data inside an mmaped zone
Each time the simulated process executes some code, or each time we copy data from these zones, the data segment is mmaped from the one of the corresponding process.
src/simgrid/sg_config.c
src/smpi/private.h
src/smpi/smpi_base.c
src/smpi/smpi_bench.c
src/smpi/smpi_global.c
src/smpi/smpi_mpi_dt.c