|
@@ -404,7 +404,11 @@ static int copy_cuda_common(void *src_interface, unsigned src_node STARPU_ATTRIB
|
|
|
(char *)src_matrix->ptr, src_matrix->ld*elemsize,
|
|
|
src_matrix->nx*elemsize, src_matrix->ny, kind);
|
|
|
if (STARPU_UNLIKELY(cures))
|
|
|
- STARPU_CUDA_REPORT_ERROR(cures);
|
|
|
+ {
|
|
|
+ int ret = copy_any_to_any(src_interface, src_node, dst_interface, dst_node, (void *)&is_async);
|
|
|
+ if (ret == -EAGAIN) return ret;
|
|
|
+ if (ret) STARPU_CUDA_REPORT_ERROR(cures);
|
|
|
+ }
|
|
|
#endif
|
|
|
|
|
|
_STARPU_TRACE_DATA_COPY(src_node, dst_node, (size_t)src_matrix->nx*src_matrix->ny*src_matrix->elemsize);
|