Browse Source

fix build with simgrid MC

Samuel Thibault 7 years ago
parent
commit
8b0eb61938
1 changed files with 7 additions and 0 deletions
  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>