examples/msg/zmsg_test.trace
examples/s4u/basic/s4u_basic
examples/s4u/io/s4u_io
-examples/simdag/dax/dax_test
+examples/simdag/dax/sd_dax
examples/simdag/dot/dot_test
examples/simdag/dot/dot_test2
examples/simdag/dot/simulate_dot
-foreach(x availability fail typed_tasks io properties comm_throttling scheduling test)
+foreach(x availability dax fail typed_tasks io properties comm_throttling scheduling test)
add_executable (sd_${x} ${x}/sd_${x}.c)
target_link_libraries(sd_${x} simgrid)
set_target_properties(sd_${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.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}/scheduling/Montage_25.xml PARENT_SCOPE)
-set(bin_files ${bin_files} ${CMAKE_CURRENT_SOURCE_DIR}/platform_script.lua PARENT_SCOPE)
+add_executable (goal_test goal/goal_test.c)
+target_link_libraries(goal_test simgrid)
+set_target_properties(goal_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/goal)
-foreach(x availability fail typed_tasks io properties comm_throttling scheduling test)
+set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/goal/goal_test.c PARENT_SCOPE)
+set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/dax/simple_dax_with_cycle.tesh PARENT_SCOPE)
+set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/scheduling/Montage_25.xml
+ ${CMAKE_CURRENT_SOURCE_DIR}/dax/simple_dax_with_cycle.xml
+ ${CMAKE_CURRENT_SOURCE_DIR}/dax/smalldax.xml PARENT_SCOPE)
+set(bin_files ${bin_files} ${CMAKE_CURRENT_SOURCE_DIR}/platform_script.lua PARENT_SCOPE)
+
+foreach(x availability dax fail typed_tasks io properties comm_throttling scheduling test)
ADD_TESH(simdag-${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/simdag --cd ${CMAKE_BINARY_DIR}/examples/simdag ${CMAKE_HOME_DIRECTORY}/examples/simdag/${x}/sd_${x}.tesh)
endforeach()
+
+ADD_TESH(simdag-dax-cycle --setenv bindir=${CMAKE_BINARY_DIR}/examples/simdag/dax --cd ${CMAKE_HOME_DIRECTORY}/examples/simdag/dax simple_dax_with_cycle.tesh)
+++ /dev/null
-add_executable (dax_test dax_test.c)
-target_link_libraries(dax_test simgrid)
-
-ADD_TESH(simdag-dax --setenv bindir=${CMAKE_BINARY_DIR}/examples/simdag/dax --cd ${CMAKE_HOME_DIRECTORY}/examples/simdag/dax smalldax.tesh)
-ADD_TESH(simdag-dax-cycle --setenv bindir=${CMAKE_BINARY_DIR}/examples/simdag/dax --cd ${CMAKE_HOME_DIRECTORY}/examples/simdag/dax simple_dax_with_cycle.tesh)
-
-set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/simple_dax_with_cycle.tesh
- ${CMAKE_CURRENT_SOURCE_DIR}/smalldax.tesh PARENT_SCOPE)
-set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/simple_dax_with_cycle.xml
- ${CMAKE_CURRENT_SOURCE_DIR}/smalldax.xml PARENT_SCOPE)
-set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dax_test.c PARENT_SCOPE)
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/simdag.h"
+#include "xbt/file.h"
#include <stdio.h>
#include <string.h>
XBT_INFO("------------------- Run the schedule ---------------------------");
SD_simulate(-1);
XBT_INFO("------------------- Produce the trace file---------------------------");
- XBT_INFO("Producing the trace of the run into %s", tracefilename);
+ XBT_INFO("Producing the trace of the run into %s", xbt_basename(tracefilename));
FILE *out = fopen(tracefilename, "w");
xbt_assert(out, "Cannot write to %s", tracefilename);
free(tracefilename);
#! ./tesh
p Test the DAX loader on a small DAX instance
-$ $SG_TEST_EXENV ${bindir:=.}/dax_test --log=no_loc ${srcdir:=.}/../../platforms/2clusters.xml ./smalldax.xml
+$ $SG_TEST_EXENV ${bindir:=.}/dax/sd_dax --log=no_loc ${srcdir:=.}/../platforms/2clusters.xml ${srcdir:=.}/dax/smalldax.xml
> [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
> [0.000000] [sd_daxparse/WARNING] Ignore file o1 size redefinition from 1000000 to 304
> [0.000000] [sd_daxparse/WARNING] Ignore file o2 size redefinition from 1000000 to 304
> [0.000000] [test/INFO] ------------------- Schedule tasks ---------------------------
> [0.000000] [test/INFO] ------------------- Run the schedule ---------------------------
> [84.066238] [test/INFO] ------------------- Produce the trace file---------------------------
-> [84.066238] [test/INFO] Producing the trace of the run into ./smalldax.trace
+> [84.066238] [test/INFO] Producing the trace of the run into smalldax.trace
-$ cat ./smalldax.trace
+$ cat ${srcdir:=.}/dax/smalldax.trace
> [0.000000] C1-00 compute 0.000000 # root
> [0.016300] C1-01 compute 42000000000.000000 # 1@task1
> [0.016300] C1-02 compute 42000000000.000000 # 2@task2
> [0.016300] C1-01 recv C1-00 1000000.000000 # root_i1_1@task1
> [84.066238] C1-00 compute 0.000000 # end
-$ cmake -E remove -f ./dax.dot ./smalldax.trace
+$ cmake -E remove -f ${srcdir:=.}/dax.dot ${srcdir:=.}/dax/smalldax.trace
p Test the DAX loader with a DAX comprising a cycle.
! expect return 255
-$ $SG_TEST_EXENV ${bindir:=.}/dax_test --log=no_loc ${srcdir:=.}/../../platforms/2clusters.xml ./simple_dax_with_cycle.xml
+$ $SG_TEST_EXENV ${bindir:=.}/sd_dax --log=no_loc ${srcdir:=.}/../../platforms/2clusters.xml ./simple_dax_with_cycle.xml
> [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
> [0.000000] [sd_daxparse/WARNING] the task root is not marked
> [0.000000] [sd_daxparse/WARNING] the task 1@task1 is in a cycle
<?xml version="1.0" encoding="UTF-8"?>
-<adag xmlns="http://pegasus.isi.edu/schema/DAX"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://pegasus.isi.edu/schema/DAX
- http://pegasus.isi.edu/schema/dax-2.1.xsd"
- version="2.1" count="1" index="0" name="smalldax"
- jobCount="3" fileCount="0" childCount="1">
-
- <!-- Job and control dependencies go here -->
+<adag xmlns="http://pegasus.isi.edu/schema/DAX" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pegasus.isi.edu/schema/DAX http://pegasus.isi.edu/schema/dax-2.1.xsd"
+ version="2.1" count="1" index="0" name="smalldax" jobCount="4" fileCount="0" childCount="2">
<job id="1" namespace="SG" name="task1" version="1.0" runtime="10">
- <uses file="i1" link="input" register="true" transfer="true"
- optional="false" type="data" size="1000000"/>
- <uses file="o1" link="output" register="true" transfer="true"
- optional="false" type="data" size="1000000"/>
+ <uses file="i1" link="input" register="true" transfer="true" optional="false" type="data" size="1000000"/>
+ <uses file="o1" link="output" register="true" transfer="true" optional="false" type="data" size="1000000"/>
</job>
<job id="2" namespace="SG" name="task2" version="1.0" runtime="10">
- <uses file="i2" link="input" register="true" transfer="true"
- optional="false" type="data" size="1000000"/>
+ <uses file="i2" link="input" register="true" transfer="true" optional="false" type="data" size="1000000"/>
</job>
<job id="3" namespace="SG" name="task3" version="1.0" runtime="10">
- <uses file="o1" link="input" register="true" transfer="true"
- optional="false" type="data" size="1000000"/>
- <uses file="o3" link="output" register="true" transfer="true"
- optional="false" type="data" size="1000000"/>
+ <uses file="o1" link="input" register="true" transfer="true" optional="false" type="data" size="1000000"/>
+ <uses file="o3" link="output" register="true" transfer="true" optional="false" type="data" size="1000000"/>
</job>
- <!-- Control-flow dependencies -->
<child ref="3">
<parent ref="2"/>
</child>
<?xml version="1.0" encoding="UTF-8"?>
-<!-- generated: 2008-09-24T14:28:09-07:00 -->
-<!-- generated by: shishir [??] -->
-<adag xmlns="http://pegasus.isi.edu/schema/DAX"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://pegasus.isi.edu/schema/DAX
- http://pegasus.isi.edu/schema/dax-2.1.xsd"
- version="2.1" count="1" index="0" name="test" jobCount="25" fileCount="0" childCount="20">
+<adag xmlns="http://pegasus.isi.edu/schema/DAX" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pegasus.isi.edu/schema/DAX http://pegasus.isi.edu/schema/dax-2.1.xsd"
+ version="2.1" count="1" index="0" name="test" jobCount="3" fileCount="5" childCount="1">
<job id="1" namespace="SG" name="task1" version="1.0" runtime="10">
<uses file="i1" link="input" register="true" transfer="true" optional="false" type="data" size="1000000"/>
<uses file="o1" link="output" register="true" transfer="true" optional="false" type="data" size="1000000"/>
</job>
-
<job id="2" namespace="SG" name="task2" version="1.0" runtime="10">
<uses file="i2" link="input" register="true" transfer="true" optional="false" type="data" size="1000000"/>
<uses file="o2" link="output" register="true" transfer="true" optional="false" type="data" size="1000000"/>
</job>
-
<job id="3" namespace="SG" name="task1" version="1.0" runtime="10">
<uses file="o1" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
<uses file="o2" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
<uses file="o3" link="output" register="true" transfer="true" optional="false" type="data" size="4167312"/>
</job>
-<!-- part 3: list of control-flow dependencies (may be empty) -->
<child ref="3">
<parent ref="1"/>
<parent ref="2"/>
+++ /dev/null
-add_executable (goal_test goal_test.c)
-target_link_libraries(goal_test simgrid)
-set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/goal_test.c PARENT_SCOPE)
examples/msg/tracing/CMakeLists.txt
examples/s4u/CMakeLists.txt
examples/simdag/CMakeLists.txt
- examples/simdag/dax/CMakeLists.txt
examples/simdag/dot/CMakeLists.txt
- examples/simdag/goal/CMakeLists.txt
examples/smpi/CMakeLists.txt
examples/smpi/NAS/CMakeLists.txt
examples/smpi/smpi_msg_masterslave/CMakeLists.txt