From 44e2126f7a475caaefe681944560430d2324e0d8 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 3 Oct 2019 21:15:57 +0200 Subject: [PATCH] timer on windows WSL seems less precise and was counting 0ns for some events... which were then skipped as < 1e-6s, and the trace changed --- examples/smpi/trace_call_location/trace_call_location.tesh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/smpi/trace_call_location/trace_call_location.tesh b/examples/smpi/trace_call_location/trace_call_location.tesh index fa8df47a4c..6e32bf96c3 100644 --- a/examples/smpi/trace_call_location/trace_call_location.tesh +++ b/examples/smpi/trace_call_location/trace_call_location.tesh @@ -11,7 +11,7 @@ $ grep -q "12 0.* 2 1 7 .*trace_call_location\.c\" 14$" ${bindir:=.}/smpi_trace. $ rm -f ${bindir:=.}/smpi_trace.trace #the same, but with trace-ti -$ ${bindir:=.}/../../../smpi_script/bin/smpirun -trace-ti -trace-file ${bindir:=.}/smpi_trace.txt --cfg=tracing/smpi/sleeping:1 -hostfile ${srcdir:=.}/hostfile -platform ${platfdir}/small_platform.xml --cfg=smpi/trace-call-location:1 -np 3 ${bindir:=.}/smpi_trace_call_location --cfg=smpi/host-speed:1 --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning +$ ${bindir:=.}/../../../smpi_script/bin/smpirun -trace-ti -trace-file ${bindir:=.}/smpi_trace.txt --cfg=tracing/smpi/sleeping:1 -hostfile ${srcdir:=.}/hostfile -platform ${platfdir}/small_platform.xml --cfg=smpi/trace-call-location:1 -np 3 ${bindir:=.}/smpi_trace_call_location --cfg=smpi/host-speed:1 --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning --cfg=smpi/cpu-threshold:0 #Test replaying the trace, without altering the time. #We disable computation, but leave the sleep. @@ -22,5 +22,5 @@ $ ${bindir:=.}/../../../smpi_script/bin/smpirun -hostfile ${srcdir:=.}/hostfile $ ${bindir:=.}/../../../smpi_script/bin/smpirun -hostfile ${srcdir:=.}/hostfile -platform ${platfdir}/small_platform.xml --cfg=smpi/comp-adjustment-file:${srcdir:=.}/trace_call_location/adjust -np 3 -replay ${bindir:=.}/smpi_trace.txt ${bindir:=.}/../replay/smpi_replay --cfg=smpi/host-speed:1 --log=smpi_kernel.thres:warning --log=xbt_cfg.thres:warning --cfg=smpi/simulate-computation:no > [Fafard:2:(3) 1.003952] [smpi_replay/INFO] Simulation time 1.003952 -$ rm -f ${bindir:=.}/smpi_trace.tx* +#$ rm -f ${bindir:=.}/smpi_trace.tx* -- 2.20.1