gpu: add nodes for copying arrays to the schedule tree
commit56d180dd68b925d79f9c97d78fb54a167b0105c2
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 7 May 2014 15:42:21 +0000 (7 17:42 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 24 Apr 2015 08:02:39 +0000 (24 10:02 +0200)
treef57442e6ffd319ba012a0c1a5b0a600e4e4d1ab6
parent9befa4de81e83e851acdac4de3315a61275e5f0c
gpu: add nodes for copying arrays to the schedule tree

We currently map the entire scop to the device.  In the future
we will want to be able to only map a subtree of the schedule
tree to the device.  This means that the code for copying
the arrays to and from the device needs to be inserted around
that subtree.  Add appropriate nodes to the schedule tree
to ensure to obtain this effect.

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