Browse Source

explain to use starpu_timing_now()

Samuel Thibault 12 years ago
parent
commit
af12777ecb
1 changed files with 5 additions and 0 deletions
  1. 5 0
      doc/chapters/perf-optimization.texi

+ 5 - 0
doc/chapters/perf-optimization.texi

@@ -491,3 +491,8 @@ $ STARPU_NCPU=12 STARPU_NCUDA=2 STARPU_NOPENCL=0 ./example --cfg=contexts/stack_
 TEST FAILED !!!
 TEST FAILED !!!
 @end smallexample
 @end smallexample
 @end cartouche
 @end cartouche
+
+Note: of course, if the application uses @code{gettimeofday} to make its
+performance measurements, the real time will be used, which will be bogus. To
+get the simulated time, it has to use @code{starpu_timing_now} which returns the
+virtual timestamp in ms.