cuda.c: extract out copy_array_{to,from}_device
commita3d9f49027735c86acf44fd882fd5b1494eabc80
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 1 Nov 2014 09:10:57 +0000 (1 10:10 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 17 Apr 2015 09:07:11 +0000 (17 11:07 +0200)
tree0df41f4fc935fc2bcc1173b364fa21ae2fcf56c7
parentc97f8404048330a24a4f7a9d862e5fcfd3e53d58
cuda.c: extract out copy_array_{to,from}_device

We will be able to reuse these functions when we add nodes for copying
arrays to and from the device directly to the schedule tree.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
cuda.c