However, from the reference point of the center axis of the cylinder, there is a net torque exerted by the friction force.
There is also a net torque exerted by the gravitational force from the reference point of the point of contact of the cylinder and the ramp.