updating tps to use pycuda gpuarrays for memory management