More corrections to cuda interop implementation.