|
@@ -157,8 +157,6 @@ static int copy_data_1_to_1_generic(starpu_data_handle_t handle,
|
|
|
|
|
|
STARPU_ASSERT(src_replicate->allocated);
|
|
|
STARPU_ASSERT(dst_replicate->allocated);
|
|
|
- //int ret = 0;
|
|
|
-
|
|
|
|
|
|
#ifdef STARPU_SIMGRID
|
|
|
if (src_node == STARPU_MAIN_RAM || dst_node == STARPU_MAIN_RAM)
|
|
@@ -166,8 +164,9 @@ static int copy_data_1_to_1_generic(starpu_data_handle_t handle,
|
|
|
|
|
|
return _starpu_simgrid_transfer(handle->ops->get_size(handle), src_node, dst_node, req);
|
|
|
#else /* !SIMGRID */
|
|
|
- const struct starpu_data_copy_methods *copy_methods = handle->ops->copy_methods;
|
|
|
- enum starpu_node_kind src_kind = starpu_node_get_kind(src_node);
|
|
|
+ enum starpu_node_kind dst_kind = starpu_node_get_kind(dst_node);
|
|
|
+ void *src_interface = src_replicate->data_interface;
|
|
|
+ void *dst_interface = dst_replicate->data_interface;
|
|
|
|
|
|
#if defined(STARPU_USE_CUDA) && defined(STARPU_HAVE_CUDA_MEMCPY_PEER) && !defined(STARPU_SIMGRID)
|
|
|
enum starpu_node_kind src_kind = starpu_node_get_kind(src_node);
|