|
@@ -495,6 +495,9 @@ int STARPU_ATTRIBUTE_WARN_UNUSED_RESULT _starpu_driver_copy_data_1_to_1(starpu_d
|
|
|
|
|
|
_STARPU_TRACE_START_DRIVER_COPY(src_node, dst_node, size, com_id);
|
|
|
ret_copy = copy_data_1_to_1_generic(handle, src_replicate, dst_replicate, req);
|
|
|
+ if (!req)
|
|
|
+ /* Synchronous, this is already finished */
|
|
|
+ _STARPU_TRACE_END_DRIVER_COPY(src_node, dst_node, size, com_id);
|
|
|
|
|
|
return ret_copy;
|
|
|
}
|