Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix build with enable_smpi=OFF.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Jun 2021 15:15:07 +0000 (17:15 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Jun 2021 15:15:07 +0000 (17:15 +0200)
src/kernel/actor/ActorImpl.cpp

index c70843f..150d6b1 100644 (file)
@@ -16,7 +16,9 @@
 #include "src/mc/mc_replay.hpp"
 #include "src/mc/remote/AppSide.hpp"
 #include "src/simix/smx_private.hpp"
+#if HAVE_SMPI
 #include "src/smpi/include/private.hpp"
+#endif
 #include "src/surf/HostImpl.hpp"
 #include "src/surf/cpu_interface.hpp"
 
@@ -308,8 +310,10 @@ void ActorImpl::yield()
     }
   }
 
+#if HAVE_SMPI
   if (not finished_)
     smpi_switch_data_segment(get_iface());
+#endif
 }
 
 /** This actor will be terminated automatically when the last non-daemon actor finishes */