X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/695464b27af9494e46e22e7af44c2cacfc8fe804..354b481c19526a34cde110b3cadf49dbde8feec5:/src/surf/ptask_L07.cpp diff --git a/src/surf/ptask_L07.cpp b/src/surf/ptask_L07.cpp index 9039cff205..f7a89a700f 100644 --- a/src/surf/ptask_L07.cpp +++ b/src/surf/ptask_L07.cpp @@ -7,8 +7,11 @@ #include #include +#include "simgrid/config.h" #include "src/kernel/EngineImpl.hpp" +#if SIMGRID_HAVE_EIGEN3 #include "src/kernel/lmm/bmf.hpp" +#endif #include "src/kernel/resource/profile/Event.hpp" #include "src/surf/ptask_L07.hpp" @@ -33,6 +36,7 @@ void surf_host_model_init_ptask_L07() void surf_host_model_init_ptask_BMF() { +#if SIMGRID_HAVE_EIGEN3 XBT_CINFO(xbt_cfg, "Switching to the BMF model to handle parallel tasks."); bool select = simgrid::config::get_value("bmf/selective-update"); @@ -41,6 +45,9 @@ void surf_host_model_init_ptask_BMF() auto* engine = simgrid::kernel::EngineImpl::get_instance(); engine->add_model(host_model); engine->get_netzone_root()->set_host_model(host_model); +#else + xbt_die("Cannot use the BMF ptask model without installing Eigen3."); +#endif } namespace simgrid {