Checked out object version of gp_cuda.py
Works and finally seems to give the correct result, but is probably slow.