X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bbf75823fbe657eda9739c3be6c1715c3041f056..268230ad6ae834e8749ee07226efc1913cfd2932:/examples/simdag/dot/test_simdag_dotload.tesh diff --git a/examples/simdag/dot/test_simdag_dotload.tesh b/examples/simdag/dot/test_simdag_dotload.tesh index 5a6aae00cc..5a9629fa9f 100644 --- a/examples/simdag/dot/test_simdag_dotload.tesh +++ b/examples/simdag/dot/test_simdag_dotload.tesh @@ -13,7 +13,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] 0 > [0.000000] [sd_task/INFO] root->5 > [0.000000] [sd_task/INFO] Displaying task 0 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000129 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -22,7 +22,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 0->1 > [0.000000] [sd_task/INFO] Displaying task 1 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000131 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -31,7 +31,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 1->2 > [0.000000] [sd_task/INFO] Displaying task 2 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000121 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -40,7 +40,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 2->3 > [0.000000] [sd_task/INFO] Displaying task 3 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000231 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -49,7 +49,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 4 > [0.000000] [sd_task/INFO] Displaying task 4 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000005 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -58,7 +58,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 4->5 > [0.000000] [sd_task/INFO] Displaying task 5 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000046 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 2 @@ -68,7 +68,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 6 > [0.000000] [sd_task/INFO] Displaying task 6 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000092 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -77,7 +77,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 6->7 > [0.000000] [sd_task/INFO] Displaying task 7 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000041 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -87,7 +87,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] 7->end > [0.000000] [sd_task/INFO] 7->8 > [0.000000] [sd_task/INFO] Displaying task 8 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000250 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -96,7 +96,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 9 > [0.000000] [sd_task/INFO] Displaying task 9 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 10000000079 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -105,7 +105,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] end > [0.000000] [sd_task/INFO] Displaying task 2->3 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: end-to-end communication > [0.000000] [sd_task/INFO] - amount: 10002 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -114,7 +114,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 3 > [0.000000] [sd_task/INFO] Displaying task 6->7 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: end-to-end communication > [0.000000] [sd_task/INFO] - amount: 10005 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -123,7 +123,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 7 > [0.000000] [sd_task/INFO] Displaying task root->5 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: end-to-end communication > [0.000000] [sd_task/INFO] - amount: 10014000 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -132,7 +132,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 5 > [0.000000] [sd_task/INFO] Displaying task 1->2 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: end-to-end communication > [0.000000] [sd_task/INFO] - amount: 10004 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -141,7 +141,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 2 > [0.000000] [sd_task/INFO] Displaying task 7->end -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: end-to-end communication > [0.000000] [sd_task/INFO] - amount: 10014000 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -150,7 +150,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] end > [0.000000] [sd_task/INFO] Displaying task 0->1 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: end-to-end communication > [0.000000] [sd_task/INFO] - amount: 10001 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -159,7 +159,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 1 > [0.000000] [sd_task/INFO] Displaying task 4->5 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: end-to-end communication > [0.000000] [sd_task/INFO] - amount: 10029 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -168,7 +168,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 5 > [0.000000] [sd_task/INFO] Displaying task 7->8 -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: end-to-end communication > [0.000000] [sd_task/INFO] - amount: 10000 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 1 @@ -177,7 +177,7 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] - post-dependencies: > [0.000000] [sd_task/INFO] 8 > [0.000000] [sd_task/INFO] Displaying task end -> [0.000000] [sd_task/INFO] - state: not runnable +> [0.000000] [sd_task/INFO] - state: not scheduled not runnable > [0.000000] [sd_task/INFO] - kind: sequential computation > [0.000000] [sd_task/INFO] - amount: 0 > [0.000000] [sd_task/INFO] - Dependencies to satisfy: 2 @@ -186,43 +186,43 @@ $ $SG_TEST_EXENV ./dot_test ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag.dot > [0.000000] [sd_task/INFO] 7->end > [0.000000] [test/INFO] ------------------- Schedule tasks --------------------------- > [0.000000] [test/INFO] ------------------- Run the schedule --------------------------- -> [131.443480] [test/INFO] ------------------- Produce the trace file--------------------------- -> [131.443480] [test/INFO] Producing the trace of the run into dag.trace +> [60.002281] [test/INFO] ------------------- Produce the trace file--------------------------- +> [60.002281] [test/INFO] Producing the trace of the run into dag.trace $ cat ${srcdir:=.}/dag.trace > [0.000000] C2-05 compute 0.000000 # root > [0.000000] C2-06 compute 10000000129.452715 # 0 -> [2.000600] C2-07 compute 10000000131.133657 # 1 -> [4.001200] C2-08 compute 10000000121.124870 # 2 -> [6.001800] C2-09 compute 10000000230.608025 # 3 -> [8.001800] C1-00 compute 10000000004.994019 # 4 -> [50.721440] C1-01 compute 10000000046.016401 # 5 -> [60.721440] C1-02 compute 10000000091.598791 # 6 -> [70.722040] C1-03 compute 10000000040.679438 # 7 -> [80.722640] C1-04 compute 10000000250.490017 # 8 -> [90.722641] C2-05 compute 10000000079.267649 # 9 -> [6.001200] C2-08 send C2-09 10001.781645 # 2->3 -> [6.001800] C2-09 recv C2-08 10001.781645 # 2->3 -> [70.721440] C1-02 send C1-03 10004.920415 # 6->7 -> [70.722040] C1-03 recv C1-02 10004.920415 # 6->7 +> [2.000380] C2-07 compute 10000000131.133657 # 1 +> [4.000760] C2-08 compute 10000000121.124870 # 2 +> [6.001140] C2-09 compute 10000000230.608025 # 3 +> [8.001140] C1-00 compute 10000000004.994019 # 4 +> [18.001520] C1-01 compute 10000000046.016401 # 5 +> [28.001520] C1-02 compute 10000000091.598791 # 6 +> [38.001901] C1-03 compute 10000000040.679438 # 7 +> [48.002281] C1-04 compute 10000000250.490017 # 8 +> [58.002281] C2-05 compute 10000000079.267649 # 9 +> [6.000760] C2-08 send C2-09 10001.781645 # 2->3 +> [6.001140] C2-09 recv C2-08 10001.781645 # 2->3 +> [38.001521] C1-02 send C1-03 10004.920415 # 6->7 +> [38.001901] C1-03 recv C1-02 10004.920415 # 6->7 > [0.000000] C2-05 send C1-01 10014000.000000 # root->5 -> [50.721440] C1-01 recv C2-05 10014000.000000 # root->5 -> [4.000600] C2-07 send C2-08 10004.164631 # 1->2 -> [4.001200] C2-08 recv C2-07 10004.164631 # 1->2 -> [80.722040] C1-03 send C2-05 10014000.000000 # 7->end -> [131.443480] C2-05 recv C1-03 10014000.000000 # 7->end +> [0.292217] C1-01 recv C2-05 10014000.000000 # root->5 +> [4.000380] C2-07 send C2-08 10004.164631 # 1->2 +> [4.000760] C2-08 recv C2-07 10004.164631 # 1->2 +> [48.001901] C1-03 send C2-05 10014000.000000 # 7->end +> [48.294118] C2-05 recv C1-03 10014000.000000 # 7->end > [2.000000] C2-06 send C2-07 10001.389601 # 0->1 -> [2.000600] C2-07 recv C2-06 10001.389601 # 0->1 -> [18.001800] C1-00 send C1-01 10029.262823 # 4->5 -> [18.002401] C1-01 recv C1-00 10029.262823 # 4->5 -> [80.722040] C1-03 send C1-04 10000.234049 # 7->8 -> [80.722640] C1-04 recv C1-03 10000.234049 # 7->8 -> [131.443480] C2-05 compute 0.000000 # end +> [2.000380] C2-07 recv C2-06 10001.389601 # 0->1 +> [18.001140] C1-00 send C1-01 10029.262823 # 4->5 +> [18.001520] C1-01 recv C1-00 10029.262823 # 4->5 +> [48.001901] C1-03 send C1-04 10000.234049 # 7->8 +> [48.002281] C1-04 recv C1-03 10000.234049 # 7->8 +> [60.002281] C2-05 compute 0.000000 # end $ rm -f dag.trace ! expect signal SIGABRT -$ $SG_TEST_EXENV ./simulate_dot --log=no_loc "--log=sd_dotparse.thres:verbose" ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_bad_schedule.dot +$ $SG_TEST_EXENV ./simulate_dot --log=no_loc "--log=sd_dotparse.thres:verbose" ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_bad_schedule.dot > [0.000000] [surf_workstation/INFO] surf_workstation_model_init_ptask_L07 > [0.000000] [sd_dotparse/VERBOSE] The schedule is ignored, there are not enough computers > [0.000000] [sd_dotparse/WARNING] is not an integer @@ -236,7 +236,7 @@ $ $SG_TEST_EXENV ./simulate_dot --log=no_loc "--log=sd_dotparse.thres:verbose" > [0.000000] [sd_dotparse/WARNING] The scheduling is ignored > [0.000000] [xbt/CRITICAL] The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose -$ $SG_TEST_EXENV ./simulate_dot --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_good_schedule.dot +$ $SG_TEST_EXENV ./simulate_dot --log=no_loc ${srcdir:=.}/../2clusters.xml ${srcdir:=.}/dag_with_good_schedule.dot > [0.000000] [surf_workstation/INFO] surf_workstation_model_init_ptask_L07 > [0.000000] [test/INFO] ------------------- Display all tasks of the loaded DAG --------------------------- > [0.000000] [sd_task/INFO] Displaying task root @@ -436,38 +436,39 @@ $ $SG_TEST_EXENV ./simulate_dot --log=no_loc ${srcdir:=.}/../2clusters.xml ${src > [0.000000] [sd_task/INFO] 7->end > [0.000000] [sd_task/INFO] 7 > [0.000000] [test/INFO] ------------------- Run the schedule --------------------------- -> [18.001306] [test/INFO] ------------------- Produce the trace file--------------------------- -> [18.001306] [test/INFO] Producing the trace of the run into dag_with_good_schedule.trace +> [18.000866] [test/INFO] ------------------- Produce the trace file--------------------------- +> [18.000866] [test/INFO] Producing the trace of the run into dag_with_good_schedule.trace $ cat ${srcdir:=.}/dag_with_good_schedule.trace > [0.000000] C2-05 compute 0.000000 # root > [0.000000] C2-06 compute 10000000129.452715 # 0 > [0.000000] C2-05 compute 10000000131.133657 # 1 -> [2.000600] C2-06 compute 10000000121.124870 # 2 -> [4.000635] C2-06 compute 10000000230.608025 # 3 -> [6.000635] C2-05 compute 10000000004.994019 # 4 -> [8.000670] C2-05 compute 10000000046.016401 # 5 -> [10.000670] C2-05 compute 10000000091.598791 # 6 -> [12.000706] C2-05 compute 10000000040.679438 # 7 -> [14.001306] C2-06 compute 10000000250.490017 # 8 -> [16.001306] C2-06 compute 10000000079.267649 # 9 -> [4.000600] C2-06 send C2-06 10001.781645 # 2->3 -> [4.000635] C2-06 recv C2-06 10001.781645 # 2->3 -> [12.000670] C2-05 send C2-05 10004.920415 # 6->7 -> [12.000706] C2-05 recv C2-05 10004.920415 # 6->7 +> [2.000380] C2-06 compute 10000000121.124870 # 2 +> [4.000415] C2-06 compute 10000000230.608025 # 3 +> [6.000415] C2-05 compute 10000000004.994019 # 4 +> [8.000450] C2-05 compute 10000000046.016401 # 5 +> [10.000450] C2-05 compute 10000000091.598791 # 6 +> [12.000485] C2-05 compute 10000000040.679438 # 7 +> [14.000865] C2-06 compute 10000000250.490017 # 8 +> [16.000866] C2-06 compute 10000000079.267649 # 9 +> [4.000380] C2-06 send C2-06 10001.781645 # 2->3 +> [4.000415] C2-06 recv C2-06 10001.781645 # 2->3 +> [12.000450] C2-05 send C2-05 10004.920415 # 6->7 +> [12.000485] C2-05 recv C2-05 10004.920415 # 6->7 > [0.000000] C2-05 send C2-05 10014000.000000 # root->5 > [0.020123] C2-05 recv C2-05 10014000.000000 # root->5 > [2.000000] C2-05 send C2-06 10004.164631 # 1->2 -> [2.000600] C2-06 recv C2-05 10004.164631 # 1->2 -> [14.000706] C2-05 send C2-05 10014000.000000 # 7->end -> [14.020829] C2-05 recv C2-05 10014000.000000 # 7->end +> [2.000380] C2-06 recv C2-05 10004.164631 # 1->2 +> [14.000485] C2-05 send C2-05 10014000.000000 # 7->end +> [14.020609] C2-05 recv C2-05 10014000.000000 # 7->end > [2.000000] C2-06 send C2-06 10001.389601 # 0->2 > [2.000035] C2-06 recv C2-06 10001.389601 # 0->2 -> [8.000635] C2-05 send C2-05 10029.262823 # 4->5 -> [8.000670] C2-05 recv C2-05 10029.262823 # 4->5 -> [14.000706] C2-05 send C2-06 10000.234049 # 7->8 -> [14.001306] C2-06 recv C2-05 10000.234049 # 7->8 -> [18.001306] C2-05 compute 0.000000 # end +> [8.000415] C2-05 send C2-05 10029.262823 # 4->5 +> [8.000450] C2-05 recv C2-05 10029.262823 # 4->5 +> [14.000485] C2-05 send C2-06 10000.234049 # 7->8 +> [14.000865] C2-06 recv C2-05 10000.234049 # 7->8 +> [18.000866] C2-05 compute 0.000000 # end + $ rm -f ${srcdir:=.}/dag_with_good_schedule.trace