callgrind.out.*
### Examples and traces
*.exe
-examples/msg/actions/actions
+examples/msg/actions/mpi_actions
examples/msg/actions/storage_actions
examples/msg/bittorrent/bittorrent
examples/msg/bittorrent/bittorrent_platfgen
-add_executable (actions actions.c)
-target_link_libraries(actions simgrid)
-add_executable (storage_actions storage_actions.c)
-target_link_libraries(storage_actions simgrid)
+foreach (example mpi storage)
+ add_executable (${example}_actions ${example}_actions.c)
+ target_link_libraries(${example}_actions simgrid)
-ADD_TESH_FACTORIES(msg-actions "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/actions --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/actions actions.tesh)
+ set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}_actions.tesh)
+ set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}_actions.c)
+ set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}_actions.txt)
+ set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}_deployment.xml)
-set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/actions.tesh PARENT_SCOPE)
-set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/deployment_split.xml
- ${CMAKE_CURRENT_SOURCE_DIR}/deployment.xml
- ${CMAKE_CURRENT_SOURCE_DIR}/storage_deployment.xml PARENT_SCOPE)
-set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/actions.c
- ${CMAKE_CURRENT_SOURCE_DIR}/storage_actions.c PARENT_SCOPE)
-set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/mpi_actions_shared.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/mpi_actions_split_p0.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/mpi_actions_split_p1.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/storage_actions.txt PARENT_SCOPE)
+ ADD_TESH_FACTORIES(msg-${example}-actions "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/actions --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/actions ${example}_actions.tesh)
+endforeach()
+
+set(examples_src ${examples_src} PARENT_SCOPE)
+set(tesh_files ${tesh_files} PARENT_SCOPE)
+set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/mpi_deployment_split.xml PARENT_SCOPE)
+set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/mpi_actions_split_p0.txt
+ ${CMAKE_CURRENT_SOURCE_DIR}/mpi_actions_split_p1.txt PARENT_SCOPE)
# A little tesh file testing most MPI-related actions
! output sort 19
-$ ${bindir:=.}/actions --log=actions.thres=verbose ${srcdir:=.}/../../platforms/small_platform_fatpipe.xml deployment_split.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+$ ${bindir:=.}/mpi_actions --log=actions.thres=verbose ${srcdir:=.}/../../platforms/small_platform_fatpipe.xml mpi_deployment_split.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
> WARNING: THIS BINARY IS KINDA DEPRECATED
> This example is still relevant if you want to learn about MSG-based trace replay, but if you want to simulate MPI-like traces, you should use the newer version that is in the examples/smpi/replay directory instead.
> [ 20.703314] (1:p0@Tremblay) p0 recv p1 20.703314
> [ 32.703314] (0:maestro@) Simulation time 32.7033
! output sort 19
-$ ${bindir:=.}/actions --log=actions.thres=verbose ${srcdir:=.}/../../platforms/small_platform_fatpipe.xml deployment.xml mpi_actions_shared.txt "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+$ ${bindir:=.}/mpi_actions --log=actions.thres=verbose ${srcdir:=.}/../../platforms/small_platform_fatpipe.xml mpi_deployment.xml mpi_actions.txt "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
> WARNING: THIS BINARY IS KINDA DEPRECATED
> This example is still relevant if you want to learn about MSG-based trace replay, but if you want to simulate MPI-like traces, you should use the newer version that is in the examples/smpi/replay directory instead.
> [ 0.000000] (1:p0@Tremblay) p0 comm_size 3 0.000000
<platform version="4">
<!-- Example file of how to use trace replay, with actions split in separate files, one per process.
Launch it like this:
- ./actions homogeneous_3_hosts.xml deployment_split.xml -->
+ ./mpi_actions homogeneous_3_hosts.xml mpi_deployment_split.xml -->
<process host="Tremblay" function="p0">
<argument value="mpi_actions_split_p0.txt"/>
--- /dev/null
+! output sort 19
+$ ${bindir:=.}/storage_actions --log=storage_actions.thres=verbose ${srcdir:=.}/../../platforms/storage/storage.xml storage_deployment.xml storage_actions.txt "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [ 0.000000] (1:p0@denise) p0 open /home/lib/libsimgrid.so.3.6.2 0.000000
+> [ 0.063552] (1:p0@denise) p0 read /home/lib/libsimgrid.so.3.6.2 12710497 0.063552
+> [ 0.063552] (1:p0@denise) p0 close /home/lib/libsimgrid.so.3.6.2 0.000000
+> [ 0.063552] (0:maestro@) Simulation time 0.0635525