pycuda shenanigans