From 817735ef1688dae17e15babe613682f4af9df0b4 Mon Sep 17 00:00:00 2001
From: Samuel Thibault <samuel.thibault@inria.fr>
Date: Thu, 15 Sep 2016 18:19:05 +0000
Subject: [PATCH] Error/warn when enabling simulation in chameleon doesn't
 match simgrid support in starpu

---
 runtime/starpu/control/runtime_control.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c
index 8e6952a17..7d041181e 100644
--- a/runtime/starpu/control/runtime_control.c
+++ b/runtime/starpu/control/runtime_control.c
@@ -27,6 +27,15 @@
 #include <stdlib.h>
 #include "runtime/starpu/include/morse_starpu.h"
 
+#if defined(CHAMELEON_SIMULATION)
+# ifndef STARPU_SIMGRID
+#  error "Starpu was not built with simgrid support (--enable-simgrid). Can not run Chameleon with simulation support."
+# endif
+#else
+# ifdef STARPU_SIMGRID
+#  warning "Starpu was built with simgrid support. Better build Chameleon with simulation support (-DCHAMELEON_SIMULATION=YES)."
+# endif
+#endif
 /*******************************************************************************
  * Thread rank.
  **/
-- 
GitLab