gpu_array_requires_device_allocation: check if device memory is accessed
commit5ff129058b077d0db71accc19e09d0c076fd239d
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 3 Apr 2015 14:45:36 +0000 (3 16:45 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 30 Apr 2015 10:03:50 +0000 (30 12:03 +0200)
treecbf011ecc03122c23472fbcb50b7aaa21f941a41
parentcbce19569a6e5273fc2334c94217787f0bbb1c09
gpu_array_requires_device_allocation: check if device memory is accessed

That is, only allocate device memory corresponding to an array
if this device memory is accessed anywhere.

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