gpu.c: add elements that are copied out but not written to copy_in
commit3e6bc2cfe9bebea5dc031b99324146df7290459c
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 22 May 2013 07:57:52 +0000 (22 09:57 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 22 May 2013 08:39:22 +0000 (22 10:39 +0200)
tree72d07edcb867da700cf84d891788d904b1bfc5ac
parent5ad44df8f81957cef90e39c38ea34b16c1494e36
gpu.c: add elements that are copied out but not written to copy_in

If an array element is copied out from the device, but not written
inside the kernel, then it should be copied in to the device first to ensure
that the value after kernel execution is the same as that before
the kernel execution.

Reported-by: Riyadh BAGHDADI <baghdadi.m.riyadh@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c
gpu.h