add support for len and off in GPU-accelerated pendulum