Explorar o código

fix build with simgrid MC

Samuel Thibault %!s(int64=7) %!d(string=hai) anos
pai
achega
8b0eb61938
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      tests/model-checking/starpu_barrier.c

+ 7 - 0
tests/model-checking/starpu_barrier.c

@@ -61,6 +61,13 @@ _starpu_simgrid_thread_start(int argc, char *argv[])
 	return 0;
 }
 
+static void _starpu_clock_gettime(struct timespec *ts)
+{
+	double now = MSG_get_clock();
+	ts->tv_sec = floor(now);
+	ts->tv_nsec = floor((now - ts->tv_sec) * 1000000000);
+}
+
 #include <common/barrier.c>
 #include <common/thread.c>