Not sure if this suggestion has already been made, but would it be
possible to add an __int__() method to GPUArray that would return the
output of the instance's gpudata.__int__() method? This would
somewhat facilitate manipulating GPUArray instances with
ctypes-wrapped library functions that expect a pointer to GPU memory.