ソースを参照

fix build with simgrid MC

Samuel Thibault 7 年 前
コミット
8b0eb61938
共有1 個のファイルを変更した7 個の追加0 個の削除を含む
  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>