gpu_array_requires_device_allocation: check if device memory is accessed