cleanup cuda/buffer.go