We consider a complex of differential operators associated with an involutive system of vector fields on the torus. We present a complete characterization of the global Gevrey solvability in terms of Diophantine conditions involving exponential Liouville forms.