Converting int types to intptr_t types for pyopencl integration