Skip to content

Commit

Permalink
starpu_data_cpy: Make sure we copy between similar handles
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed Apr 30, 2024
1 parent 6f7e2e4 commit 85cb900
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/starpu_data_cpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ int _starpu_data_cpy(starpu_data_handle_t dst_handle, starpu_data_handle_t src_h

task->cl = &copy_cl;

STARPU_ASSERT(dst_handle->ops->interfaceid == src_handle->ops->interfaceid);
unsigned *interface_id;
_STARPU_MALLOC(interface_id, sizeof(*interface_id));
*interface_id = dst_handle->ops->interfaceid;
Expand Down

0 comments on commit 85cb900

Please sign in to comment.