gpu backend: declare local variables that are used on the host
commit3c51d8293df603b131ca3a3907e977675286c8b0
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 3 Apr 2015 12:34:39 +0000 (3 14:34 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 24 Apr 2015 08:03:28 +0000 (24 10:03 +0200)
tree43dfd85648bf9a37163bc95115e484275d95723b
parent263f4f36105e94cae50e48724559b191408b035c
gpu backend: declare local variables that are used on the host

Variables that are local to the scop are currently not being declared
because the code is either entirely mapped to the device or
sent to the cpu backend.  Since there cannot be any dataflow into
or out of a local variable from outside of the scop, these variables
should not have to be copied in or out of the device.
In future, however, we will allow some part(s) of the scop
to be executed on the host.  If any local array ends up getting
copied, then we need to make sure it is declared on the host.

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