diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c index 8e6952a17f097ee3ad8de64e7f59c5bcf2b5c726..7d041181eb42b0dc65d291298fbd7e4eedc20bc0 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. **/