Selaa lähdekoodia

explain to use starpu_timing_now()

Samuel Thibault 12 vuotta sitten
vanhempi
commit
af12777ecb
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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 !!!
 @end smallexample
 @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.