A common set of compute primitives for PyCUDA and PyOpenCL