Forráskód Böngészése

use S4U's sg_host_get_property_value when available

Samuel Thibault 6 éve
szülő
commit
0f47dea35d
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      src/core/topology.c

+ 4 - 0
src/core/topology.c

@@ -2543,7 +2543,11 @@ static void _starpu_init_workers_binding_and_memory(struct _starpu_machine_confi
 					starpu_sg_host_t host = _starpu_simgrid_get_host_by_name(name);
 					STARPU_ASSERT(host);
 					_starpu_simgrid_memory_node_set_host(memory_node, host);
+#  ifdef STARPU_HAVE_SIMGRID_ACTOR_H
+					cuda_memcpy_peer = sg_host_get_property_value(host, "memcpy_peer");
+#  else
 					cuda_memcpy_peer = MSG_host_get_property_value(host, "memcpy_peer");
+#  endif
 #endif /* SIMGRID */
 					if (
 #ifdef STARPU_SIMGRID